delegatecommand
In WPF/Prism, what happens with a CompositeCommand when a DelegateCommand.RaiseCanExecuteChanged is fired?
Say that I have a CompositeCommand with a lot of DelegateCommands registered. If one of the child DelegateCommands fires up RaiseCanExecuteChanged, this will result in firing the event CompositeC开发[详细]
2023-01-27 04:00 分类:问答When does the ui detach from commands?
I\'m really scratching my head with this one. I have a mainwindow which opens a dialog. After the dialog closes, the CanExecute method on commands bound in the dialog are still executing. This is caus[详细]
2023-01-24 00:04 分类:问答In which namespace is the DelegateCommand in?
I am trying to work out an example from ".NET Domain Driven Design with C#", which contains a code example where you can see declared some attributes of type DelegateCommand.[详细]
2023-01-08 13:32 分类:问答Simplifying RelayCommand/DelegateCommand in WPF MVVM ViewModels
If you\'re doing MVVM 开发者_Go百科and using commands, you\'ll often see ICommand properties on the ViewModel that are backed by private RelayCommand or DelegateCommand fields, like this example from[详细]
2023-01-04 11:07 分类:问答Memory leak in WPF app due to DelegateCommand
I just finished desktop apps written in WPF and c# using MVVM pattern. In this app I used Delegate Command implementation to wrap the ICommands properties exposed in my ModelView. The problem is these[详细]
2023-01-03 07:18 分类:问答How can you unit test a DelegateCommand
I am trying to un开发者_高级运维it test my ViewModel and my SaveItem(save, CanSave) delegate command.I want to ensure that CanSave is called and returns the correct value given certain conditions.Basi[详细]
2022-12-30 13:37 分类:问答DelegateCommand vs RoutedCommand and gestures - WPF
is there anyway for DelegateCommand\'s to support gestures when building a composite WPF app?I\'m trying to create a command used by a MenuItem and also a Button, which can be accessed through a keybo[详细]
2022-12-20 13:03 分类:问答Attach commands to TreeView in wpf using prism
How do I use a DelegateCommand in a TreeView to get the Expanded event? Should I be using the DelegateCommand or is there another wa开发者_如何学运维y?[详细]
2022-12-13 20:48 分类:问答WPF ToggleButton and DelegateCommand
Is there a way to determine if a ToggleButton is Checked/Unchecked via DelegateCommands? TIA, mike XAML code below.I\'m using ItemsControl and binding to a collection.I\'m basically wanting a way to[详细]
2022-12-12 18:02 分类:问答WPF CommandParameter binding and canExecute
I have a template for treeView item: <HierarchicalDataTemplate x:Key=\"RatesTemplate\"> <StackPanel Orientation=\"Horizontal\">[详细]
2022-12-11 21:30 分类:问答