I am trying to create a DataGrid with two text columns and a template column as follows: <UserControl ... Name="TcpNtcpSliders" ...> & ...
I am trying to create a DataGrid with two text columns and a template column as follows: <UserControl ... Name="TcpNtcpSliders" ...> & ...
I have this UserControl xaml: and its code behind where I define a DependencyProperty to edit the line color: Then I have this other UserControl ...
I have the following DependencyProperty: Now as you can see giving it a reference type as a default value will only work once, as soon as i create ...
I have a WPF User Control in which I place another WPF user control. Note that I only post the relevant things here to understand it. The important ...
I recentrly discovered "reusable controls" in WPF and I have a project where they seem to provide me with a solution to a problem I have. Let me sket ...
I notice that the root element in any XAML file (in WPF) seems to be one of: Window Page UserControl ResourceDictionary Application I t ...
Background I am making a custom control that has multiple ListBox's. I want to make this control MVVM compliant, so I am keeping any XAML and the cod ...
The XAML of my UserControl with name "Clinical_Protocol": The dependency property for ItemsSource of the DataGrid in the code behind: internal Obs ...
How would I properly bound to ItemsSource column via Dependency property of control (Datagrid), in order to set It's DataTrigger working? My goal tha ...
I have a custom user control that has a checkbox and a button with backing dependency properties. I also have a window with an ItemsControl and I bin ...
I have a user control and within I defined the following property: public string MyProperty { get { return (string)GetValue(MyPropertyProperty) ...
I'm using a beavior in a TextBox control to filter input via a regex. For this I added a dependency property to get the regex value. When I set direct ...
I'm new both to WinUI and XAML and I'm creating a WinUI 3 Library that contains various CustomControl. They're all independent and can be used stand ...
I have a custom control myCustomControl.Xaml And a cs file myCustomControl.xaml.cs And then I have mainPage.xaml where I set customId I dont ...
I wanted to create a textbox that can search for files and also keeps track of previously used files. So I made a user control with a DependecyPropert ...
I have a Style in a custom control, in which I am trying to set an attached property on a Label. The Style <Style x:Key="DayNumberStyle" TargetTy ...
I want to update Name property of a class whenever matching ID changes, I get the matching Name from web reference. For example: So I have multipl ...
I am trying to figure out which FrameworkPropertyMetadataOptions flag to use for Window type. public static readonly DependencyProperty RootWindowPro ...
I created a custom UserControl where among other controls I have the following In the code both binding are declared as follows The above contro ...
This InvalidOperationException with message "Specified element is already the logical child of another element, disconnect it first" is strange cause ...