August 2012
Intermediate to advanced
490 pages
9h 14m
English
Now, we need to make the tabs dynamic and wire them up to the customer list box. To do this follow these steps:
MainWindow.xaml as follows:</Expander.Header> <StackPanel> <ListBox ItemsSource="{Binding Customers}" DisplayMemberPath="CompanyName" SelectedValuePath="CustomerID" VerticalAlignment="Top" SelectedValue="{Binding SelectedCustomerID}" Height="180" Width="250" /> <ContentControl Margin="0, 3"> <Hyperlink Click="Hyperlink_Click"> <TextBlock Text="Show Details" /> </Hyperlink> </ContentControl> </StackPanel> </Expander>
using statement for Northwind.ViewModel in MainWindow.xaml.cs. MainWindow in MainWindow.xaml.cs.private MainWindowViewModel ViewModel { get { return ...Read now
Unlock full access