DevExpress MVVM: custom interface [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm searching a way to do what for me would be simple without mvvm, but I'm working with this pattern, and so...
I have a gridcontrol, where I load a set of records. Then, when user click, I populated a propertyGridControl It works, but the result is... so... ugly!!
I have made an image of my wanted result:
In this second image, as you can see, user can edit the data, with field grouped in mini areas.
Which is best way to change from first picture to the second, respecting the mvvm pattern? User interface? template? or what? are there any working example?

Here is my control where I load custom propertyGrid. It has element DockSite(actipro element) where I bind custom propertyGrid:
<docking:DockSite viewModels:DockSiteViewModelBehavior.IsManaged="true" CanDocumentWindowsRaft="True" ItemContainerRetentionMode="Wrapped"
DocumentItemsSource="{Binding DocumentItems}"
ToolItemsSource="{Binding ToolItems}"/>
In in the viewModel (in constructor) I just add my propertyGrid:
_toolItems.Add(new PropertyGridToolWindow
{
Title = "Properties",
ViewModel = {DefaultDock = Dock.Right, DockGroup = "2", IsInitiallyAutoHidden = true}
});
and _toolItems are:
private readonly ObservableCollection<PropertyGridToolWindow> _toolItems = new ObservableCollection<PropertyGridToolWindow>();

Related

Change array property's items names in GDI+ application in Visual Studio [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
In a GDI+ application on Visual Studio, I want to change the item names of the colors property, which is an array. Right now, I can see them as [0] & [1], which makes it difficult for me to see what they represent. I would prefer to set personalized names for them.
Also, if possible, I would like to disable the ... button on the right of the colorsproperty, where I can add, remove and change the colors.
This is all shown in the picture below.
This is an array, it is named like this. If you want to have names, you could use a tupple or a pair or a dictionnary in your object as a property. In the current state, it is impossible.

How to get field value in page_load event in ASP.Net? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have created the text box using JavaScript in document.ready function and append with existing custom control using its class name in ASP.Net.
How can I get the text box value in page_load event?
So the control you have created is not a control in ASP.NET sense of things. Strictly speaking, this is just an page element, ASP.NET does not know anything about it.
However if this was a textbox, it apparently became a part of a form, so there is a good chance you can access it's value from the Request object:
string textBoxValue = Request.Form.GetValues("textBoxName");
Note 1. To have this value in the request, you need to make sure the textbox has name attribute set up: name='textBoxName'
Note 2. This is definitely not a common or encouraged practice in ASP.NET world. Have you considered manipulating visibility of a server-side textbox?

WinForm/C# - Add data in a DataGridView [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I need some control which can change data row or can add new data row in a DataGridView.
You knwo we have two ways: one using the same row of the gridview and second to have some gridcontrol which when we click in the row of the grid expands the control to set data and save t to the grid. And in new data the same. Like in Telerik but using a free control.
Second case it is what I am looking for.
Could you please tell me the best control to do this?
If i understood you correctly, this is what you are looking for.

Textbox readonly but editable on add new, SQL bound windows form C# [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to see a TextBox value only for a TextBox when moving through the sql table items
But when I click on the Add new button the TextBox must be editable for the new item
Just change the TextBox property ReadOnly to false in the click button.
I think that if you add a event to add on the bindingnavigator you can change ReadOnly property of the textbox
In the button OnClick action change the TextBox property ReadOnly into false. And return it back to true when another condition is satisfied (of your choice).

How to start a command from a usercontrol to a window [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
So I am making a webbrowser. I made my own address bar usercontrol, it is in the same solution as the main window. This is what I want to happen.
I have an event called getcurrentbrowser() in the MainWindowClass,
But I need it to be called from the Addressbar class,
And then change the webbrowser's source in the Addressbar class,
And this command is launched by an image.
I think you should add a property like Source to MainWindowsClass and another to AddressBar Control.
Then Bind Source Property of WebBrowser and AddresssBar to MainWindowClass.Source Property with Mode=TwoWay

Categories

Resources