Advertisement
Tosker

ContactBook Part 7 - BookView

Jul 10th, 2018
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.50 KB | None | 0 0
  1. <UserControl x:Class="SimpleContactBook.Views.BookView"
  2.             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6.             xmlns:local="clr-namespace:SimpleContactBook.Views"
  7.             xmlns:v="clr-namespace:SimpleContactBook.Views"
  8.             mc:Ignorable="d"
  9.             d:DesignHeight="450" d:DesignWidth="800">
  10.     <Grid Background="White">
  11.         <Grid.ColumnDefinitions>
  12.             <ColumnDefinition Width="225"/>
  13.             <ColumnDefinition/>
  14.         </Grid.ColumnDefinitions>
  15.  
  16.         <Grid Grid.Column="0">
  17.             <ListView ItemsSource="{Binding ContactsVM.Contacts}" SelectedItem="{Binding ContactsVM.SelectedContact}">
  18.                 <ListView.ItemTemplate>
  19.                     <DataTemplate>
  20.                         <v:ContactItemView/>
  21.                     </DataTemplate>
  22.                 </ListView.ItemTemplate>
  23.             </ListView>
  24.         </Grid>
  25.  
  26.         <Grid Grid.Column="1">
  27.             <ScrollViewer>
  28.                 <ContentControl>
  29.                     <ContentControl.Content>
  30.                         <v:DetailsView DataContext="{Binding ContactsVM}"/>
  31.                     </ContentControl.Content>
  32.                 </ContentControl>
  33.             </ScrollViewer>
  34.         </Grid>
  35.     </Grid>
  36. </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement