A control with no background color set (explicitly or through styles etc) will default to having a background color of null – making it not hit-testable.
If you set the background to “Transparent” (or anything other than null ({x:Null}
)) then it will be able to pick up the mouse events
More Related Contents:
- Binding to static property
- Why does the binding update without implementing INotifyPropertyChanged?
- How to create custom window chrome in wpf?
- OneWayToSource binding from readonly property in XAML
- How can I apply a custom sort rule to a WPF DataGrid?
- What approaches are available to dummy design-time data in WPF?
- What does the WPF star do (Width=”100*”)
- WPF CommandParameter is NULL first time CanExecute is called
- Calling a parameterized constructor from XAML
- How to make overlay control above all other controls?
- Setting a property with an EventTrigger
- DataTrigger where value is NOT null?
- Is there a way to use data-template inheritance in WPF?
- Trouble referencing a Resource Dictionary that contains a Merged Dictionary
- WPF: XAML property declarations not being set via Setters?
- WPF TreeView: How to style selected items with rounded corners like in Explorer
- How can I reduce RadioButton binding code?
- TextBox TextTrimming
- Creating an instance of a nested class in XAML
- Different views / data template based on member variable
- Difference between {Binding PropertyName} and {Binding Path=PropertyName}
- WPF: Changing Resources (colors) from the App.xaml during runtime
- How to change MahApps.Metro dialog content template width?
- How to set DataGrid’s row Background, based on a property value using data bindings
- What is the difference for TargetType=”{x:Type Button}” and TargetType=”Button”?
- App.xaml file does not get parsed if my app does not set a StartupUri?
- How to disable a databound ListBox item based on a property value?
- How to access a control from a ContextMenu menuitem via the visual tree?
- Can you define multiple TargetTypes for one XAML style?
- How can I tell my DataTemplate to bind to a property in the PARENT ViewModel?