commandbinding
WPF Command bindings - how can I get to event handlers
Hi Is there any way to choose from where XAML should use command bindings event handlers? I added copule of command binding to my cusotm control, however functions which are resonsible for execute and[详细]
2023-02-01 06:21 分类:问答WPF/MVVM - how to handle double-click on TreeViewItems in the ViewModel?
(Note - this is a re-post as my first question got posted under wrong headline: Here Sorry!) I have a standard WPF treeview and have bound items to view model classes.[详细]
2023-01-31 19:25 分类:问答WPF Application Command Bindings doesn't work
Hi I have a strange problem with CommandBindings in WPF. I add CommandBindings in constructor of object. The command bindings looks like that[详细]
2023-01-30 02:27 分类:问答Command Binding issues in AvalonDock
I have created an application where there\'s a series of command bindings attached to the MainWindow of my application:[详细]
2023-01-24 05:17 分类:问答Command Binding not working when the host control is added programatically in wpf
This is weird. I have a UserControl (MyControl) with a button ins开发者_如何学运维ide. I have added a command to this button whose command target is another user control which is again added to the sa[详细]
2023-01-23 03:01 分类:问答How to force a RibbonButton to be alway enabled?
I have a Microsoft Ribbonbar inside a Window, and every RibbonButton is associated to a specific command like this:[详细]
2023-01-21 11:29 分类:问答CanExecute method going to false problem
Well, in our application this usually works fine. But at some point, none of the CanExecute methods fire (even if I explicitly call CommandManager.InvalidateRequerySuggested(), the CanExecute methods[详细]
2023-01-14 09:53 分类:问答How to make sender to be a Button and not the MainWindow in WPF CommandBinding?
The Button in WPF MainWindow has normal command attribute. When clicked the handler method receives sender. But the sender is always MainWidow. How to get sender to be a Button ? I need it to be a par[详细]
2023-01-14 04:52 分类:问答Issue adding ribbon buttons directly to quick access toolbar
I am trying to add a Ribbon Button directly to the Quick Access Toolbar by using the CanAddToQuickAccessToolBarDirectly property. I have read in order to do this a command must be enabled on the butto[详细]
2023-01-13 12:53 分类:问答WPF Routed Command with Bindings per-Tab
I intended to disable and enable the Buttons outside the TabControl, just like those inside the TabItem when the current tab is changed. But the CommandBindings of the TabItem do not seem to impact \"[详细]
2023-01-09 03:51 分类:问答