How to start a command from a usercontrol to a window [closed] - c#

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

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 create Numeric UpDown in UWP? [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 am creating a derived class of TextBox for numeric data entry. I would like to add 2 buttons at the right side, like the X button in some TextBox controls to increment or decrement the value.
How can I do it?
What you are looking for is a Numeric Updown. See this question for how to implement your own
Where is the WPF Numeric UpDown control?

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.

Title border panel with c# [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 8 years ago.
Improve this question
How can I add a border with title to a panel using c# like this:
see this pic.
Open the toolbox
Select the GroupBox control and drag it onto your form
Set the groupbox Text property to the desired caption
Drag other controls inside the groupbox
What you looking for is called GroupBox
For more information about GroupBox refer to this link.

DevExpress MVVM: custom interface [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 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>();

Categories

Resources