I have two components Parent Component and Child component, I have an API that takes place in the Parent component and the response value is passed to ...
I have two components Parent Component and Child component, I have an API that takes place in the Parent component and the response value is passed to ...
I'm using a MouseLeftButtonDown on a Border inside a Style. I get this error: The event 'MouseLeftButtonDown' cannot be specified on a Target tag ...
While porting a WPF project from .NET Framework to .NET Core I ran into a problem with the XAML-Designer in VS2019 v16.3.10. It keeps throwing XDG0062 ...
I have a template with a Style that uses an EventSetter to set a common event handler to some Hyperlinks. But I want to handle this event not in the r ...
I have made a custom event handler in my usercontrol: when I want to handle the event like this, everything works fine: I wanted to do it like t ...
I have ListBox that is supposed to show a list of Fields. When empty, I wanted to have inside the ListBox a "Add Field" button. So, I created a Style ...
Hi I have a wpf project which binding datagrid to module like this: This works fine. Now I want to add some features including setting an event the ...
I have a WPF TreeView control, which gets hierarchical data by binding. To control the visual output in the control I use Hierarchical Data Templates. ...
I have defined a Style for a Button in WPF. In that style, I want the button's background to be changed when it is clicked. For example: and in the ...
I have a simple WPF application with a ListBox of items. For the simplicity of this example, I made it a list of strings, but in reality, it will be a ...
i m using EventSetter inside Style tag in xaml and Handling MouseEnter event. But the problem is that the mouse enter event is only visible for a mome ...
I want to set (e.g.) FontSize for all Hyperlinks in my window. This is my MainWindow's XAML content: If I add the style explicitly it works... (i.e ...
Im trying to create something like this - I have an observable collection of points. Each point has a position and a colour. When any points positi ...
MSDN says on event setters: Event setters cannot be used in a style that is contained in a theme resource dictionary. This is because a theme reso ...
Hallo i have a problem with an eventsetter. My Window: My CrefoChartTreeViewItemStyle.xaml I get the Error Message when i Compile: What do ...
A complete example But when I run the app, an exception is thown: Handler type is not valid what's wrong with this code? ...
iv'e got several itemscontrols which i need to attach an event handler for their PreviewMouseLeftButtonDown event only when a certain condition is met ...
How to assign a command to the Handler in EventSetter, I want to to write this: ...
I have a ItemsControl with a collection of objects. I wan't to be able to click the object and then get a panels with more info. So I decided to styl ...
I have styled a window to replace the standard Chrome and I want to handle the Activated and Deactivated events using EventSetters. I get an error ".. ...