In WPF, is it possible to bind a property of class which is other assembly to the control which is in different assembly .Please help. Thanks
Yea, you can reference that assembly to your wpf project, than add a namespace in xaml like this
<UserControl xmlns:custom="clr-namespace:SampleClass;assembly=SampleLibrary"...
than add that class to UserControl's resources
<UserControl.Resources>
<custom:SampleClass x:Key="myClass"/>
</UserControl.Resources>
than bind to it's property
<TextBox Text={Binding Source={StaticResource myClass},Path=MyProperty}/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With