Binding doesn't work on DependencyObject created in XAML
问题 I'm trying to pass multiple CommandParameters in XAML with the use of a custom class. I have created a class called ValueCommandArgs that inherits from DependencyObject and has two DepencyProperties (lets call them Value1 and Value2 for this example). The button which is supposed to call a command and pass this object looks like this: <Button Command="{Binding ChangeValueCommand}" Content="Execute Command"> <Button.CommandParameter> <args:ValueCommandArgs Value1="{Binding TestValue1}" Value2=