Skip to main content
-1 votes
2 answers
128 views

I'm quite new to WPF so it would be better that I will describe the intent: I have multiple User Controls inside the main window. Each User Control has its own buttons, that I would like to bind to ...
Altair Jones's user avatar
0 votes
1 answer
158 views

I am just learning WPF and C#. I followed this tutorial but cannot assign my custom WPF command. I get the following error: Schweregrad Code Beschreibung Projekt Datei Zeile ...
Thorsten Erdmann's user avatar
1 vote
1 answer
87 views

In context of : .NET Core WPF application I would like to : Create custom Command Class for what : Binding basic custom action on Button click I try lot of things but I always error generated in ...
miltone's user avatar
  • 4,816
1 vote
3 answers
6k views

I am using a command binding for a button in Maui. The button's IsEnabled property does not work because of the command binding. Even if IsEnable is set to true, the command is not fired. How can I ...
Frank Mehlhop's user avatar
2 votes
1 answer
54 views

The repo https://github.com/francotiveron/WpfApp1 contains the following projects: A C# WPF library (WpfLibrary1) <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <...
Franco Tiveron's user avatar
-1 votes
2 answers
989 views

Revised: I apologize for missing some important descriptions in the first version, now the problem should be well-defined: so I'm making a toy CAD program with following views: MainWindow.xaml ...
Hank's user avatar
  • 23
2 votes
0 answers
59 views

We have a case where we have two externally-defined RoutedUICommand objects (i.e. we don't own them thus we can't change them) which come pre-wired to the same CTRL+N key binding. We can address that ...
Mark A. Donohoe's user avatar
-3 votes
2 answers
114 views

My following code is Implementing a custom WPF Command. I have bonded only the first button (titled Exit) with the CommandBinding so that when Exit button is clicked and e.CanExecute is true in ...
nam's user avatar
  • 24.3k
0 votes
3 answers
252 views

I am newbie and I am not familiar enough with delegates and lambda statements. So it might too simple but here is my issue: I am trying to implement async subscription method with 2 argument by using ...
TiTus's user avatar
  • 77
0 votes
1 answer
324 views

I have a WPF UserControl with a ViewModel as DataContext. This ViewModel also contains RelayCommands. From the control I can call these commands (e.g. with a button) <Button Command="{Binding ...
Markus's user avatar
  • 3
1 vote
1 answer
684 views

I created a ContentView, called Switch, to host this slider as a custom control mainly so I can reuse the on and off visual states. The ContentView contains a Label (which is there just for debugging)...
John Mc's user avatar
  • 223
0 votes
1 answer
341 views

I am using Caliburn Micro in a WPF project where I want plugin components to be able to populate a toolbar. Each plugin gets a top level menu item and can populate it with submenus if they choose. <...
Carl-Johan Andersson's user avatar
0 votes
1 answer
373 views

I have multiple DataTemplates with a TextBox inside and they are selected with a DataTemplateSelector. The TextBoxes represent nodes within a tree. When I click on a TextBox at runtime, the command ...
LauraRavenclaw's user avatar
0 votes
1 answer
141 views

I have a xaml without a x:Class, this xaml has command bindings for some buttons. I want to add a new button and add some functionality to this button. If I add x:Class, I get the error this class ...
Decano's user avatar
  • 93
1 vote
1 answer
497 views

Microsoft documentation shows how to inherit from a ControlTemplate and use a ContentPresenter. It shows how to use string properties to populate string bound items in the template. (e.g. HeaderText)...
John Mc's user avatar
  • 223

15 30 50 per page
1
2 3 4 5
14