Index |
StaticResource
for a Binding<UserControl DataContext="{DynamicResource MyViewModelResource}">
<UserControl.Resources>
<local:MyViewModel x:Key="MyViewModelResource"/>
</UserControl.Resources>
<Button Content="{Binding ButtonText, Source={StaticResource MyViewModelResource}}"/>
</UserControl>
© SphereSoft.NET, Holger Boskugel, Berlin, Germany spheresoft.net