Click here to Skip to main content
15,890,897 members
Everything / DelegateCommand

DelegateCommand

DelegateCommand

Great Reads

by Mr.PoorEnglish
Organize your DelegateCommands hierarchical in one Viewmodel-Object - A Style generates a proper Menu from that. You also can set individual CommandBindings, to Buttons or MenuItems.
by Shweta Lodha
About major building blocks in layman terms, in order to make it easier to understand for beginners.

Latest Articles

by Mr.PoorEnglish
Organize your DelegateCommands hierarchical in one Viewmodel-Object - A Style generates a proper Menu from that. You also can set individual CommandBindings, to Buttons or MenuItems.
by Shweta Lodha
About major building blocks in layman terms, in order to make it easier to understand for beginners.

All Articles

Sort by Score

DelegateCommand 

14 Jan 2016 by Mr.PoorEnglish
Organize your DelegateCommands hierarchical in one Viewmodel-Object - A Style generates a proper Menu from that. You also can set individual CommandBindings, to Buttons or MenuItems.
15 Nov 2014 by Duke Carey
Thanks Stephan. I studied your solution for a while, and it looks like it may work. However, I have a dozen or so DelegateCommands sprinkled through the solution in other view models and admit that I'm reluctant to either insert a single RelayCommand into the solution or convert all the...
26 Jul 2020 by Member 14686752
The client is in c# and the server is in C++. Client is as follows: client.cs namespace clinetspace { public class client { [DllImport("Server.dll")] static public extern void CallServer(IntPtr obj, int a); ...
27 Mar 2014 by Divakar Raj M
I am trying to interactively change button properties in the UI visually. I have a sole button in my Windows Forms application and this is my code for the button clickprivate void button1_Click(object sender, EventArgs e) { button1.BackColor = Color.Red; ...
26 Jun 2014 by Sergey Alexandrovich Kryukov
Please see my comment to the question. The problem is not really formulated. Well, you want to do something, so what? why not doing it the way you want?However, this could be related to the popular question about form collaboration. The most robust solution is implementation of an...
16 Jan 2018 by Richard Deeming
The button's parent is the , not the user control. You could either use the button's NamingContainer: Dim laFiguraSeleccioanda As MiControl = DirectCast(DirectCast(sender, Control).NamingContainer, MiControl) Or, you could modify the code which raises the event so that it passes the...
16 Jan 2018 by Cuijos
Hello to everyone, How are you? Have a great day. I'm trying to code a Web Solution to add some WebUserControls dinamically and cacht their Click Event. I read some forums like this and I found out that for that it was necesary to Delegate my click event from my Control and reasign thru...
14 Nov 2013 by Shweta Lodha
About major building blocks in layman terms, in order to make it easier to understand for beginners.
13 Nov 2014 by Duke Carey
I'm certain that this is a stupidly simple oversight on my part, but I can't get it to work. I have a button with a command property bound to a DelegateCommand that will not enable when I want.Pretty standard DelegateCommand class public class DelegateCommand : ICommand { ...
25 Jul 2020 by Shao Voon Wong
The C# client can do polling. While polling is easy to do, it is inefficient and a waste of CPU cycles. C++ server can create event(CreateEvent[^]) and signal the event handle whatever there is data to be received. C# client will create object...
27 Mar 2014 by OriginalGriff
Simple: don't use Sleep at all.Sleep suspends the current thread, so it does absolutely nothing until the time period has expired. Since it is the UI thread (or you wouldn't be in the Click event handler) that means that the thread that updates the display is suspended - so the display won't...
27 Mar 2014 by Raul Iloc
You should invoke button1.Refresh() after each change of color, but before Thread.Sleeep()!
26 Jun 2014 by tuanngocpt
Hi All!i meet some problem about delegate, Please help me.I have form main and form child. In form child have a label anh func "Settext" to change text in lable. In form main have a button, when i click button will create a new form child ( i can create n form child). And form main have...
17 Jun 2013 by ChrisTopherus
Hi,i'm writing an application using PRISM. I have a few long running processes where i need to give feedback to the ui. For the purpose of seperation i want to seperate the processcode from my viewmodels. at the moment, i am using classes that implement the ICommand interface and the...