|
<local:ExtendedSfMulti SelectedIndex="2" DisplayMember="PB" ValueMember="PA" /> |
|
<Window.Resources>
<local:ViewModelBase x:Key=" viewModelBase"/>
</Window.Resources>
<Grid>
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Width="416" >
<TextBox>Custom control 1 WITH VIEWMODEL:</TextBox>
<local:ExtendedSfMulti01 SelectedValue="{Binding Source={StaticResource viewModelBase}, Path=MasterCollection.A}" DisplayMember="PC" ValueMember="PA" />
<TextBox>Custom control 2 WITH VIEWMODEL:</TextBox>
<local:ExtendedSfMulti02 SelectedValue="{Binding Source={StaticResource viewModelBase}, Path=MasterCollection.B}" DisplayMember="WC" ValueMember="WA" />
<TextBox>Custom control WITHOUT VIEWMODEL:</TextBox>
<local:ExtendedSfMultiNOVM SelectedValue="{Binding Source={StaticResource viewModelBase}, Path=MasterCollection.C}" DisplayMember="PC" ValueMember="PA" />
</StackPanel>
</Grid> |