Here is my xaml source code. I get an error saying binding can only be set in dependency property of dependency object. But I don't know what caused ...
Here is my xaml source code. I get an error saying binding can only be set in dependency property of dependency object. But I don't know what caused ...
I'm trying to get the Window instance which is hosting a UIElement instance in WinUI 3. There's a helper method in the Window class in .NET (see this ...
I have a Visual Studio 2019 UWP project with a XAML page using dependency properties for binding values. It's all working fine in debug mode but not i ...
Can we implement dependency property in a class that does not inherit from DependencyObject? If yes what is the difference? ...
I'm adding a custom string DependencyProperty to a WPF UserControl that will be bound to a string property in my business object that contains rtf. M ...
I have a struct class that records a value and a check, which simply says whether it is good or bad. I want to create a TextBlock whose bac ...
In defining a base class inheriting an the Animatable, class, I have discovered what I am finding to be some odd behavior. When I create a Child Depe ...
I was confronted with a StackOverflowException that made me discover that DependencyObject does not handle equality correctly ?! When the DependencyP ...
I have a FileInfo type DependencyProperty and in the PropertyChangedCallback, I can't cast the DependencyObject to FileInfo type. Error is: Can ...
I have a mainwindow that I spawn to start my application that drives a series of user controls. By default, the main window has one usercontrol inside ...
I need to send Binding values to a ValidationRule. I am using a DependencyObject, but the values are always null. Here is my DependencyObject Here ...
I keep getting a "A 'Binding' can only be set on a DependencyProperty of a DependencyObject." error in my XAML file and running the application isn't ...
I try to create Command which inherit from DependencyObject and ICommand. I have the following code: and When I press Test button Command and Af ...
I'm trying to convert an library from wpf to uwp. I'm almost done but now there is the LogicalTreeViewHelper which doesn't exist in UWP anymore. does ...
This is a continuation of a question here: Trying to setup a custom DependencyObject. Clearly missing something. It's not practical to edit the origin ...
I have the following in a UWP app. Notice that my Element descends from DependencyObject, not from a Control, Panel, etc. But when I call the test met ...
In my class have two methods async GetDataAsync and not sync GetData(). why throws exception? With sync method all works. Message: "Must create Dep ...
I have the following behavior that sets the color formatting of a GridControl which works fine if I set a static ColorScaleFormat. I however need to d ...
I have a UserControl that consists of several child controls lets call it MyUserControl. So it contains a textbox among other controls as child. If I ...
I have a property changed callback and in it i need to perform some validation. I am going to take a new value and validate it against a set of other ...