--- /dev/null
+<Window x:Class="Pithos.Client.WPF.SelectiveSynch.SelectiveSynchView"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="clr-namespace:Pithos.Client.WPF.SelectiveSynch" Title="Selective Synch" Height="300" Width="300" >
+ <Window.Resources>
+
+ <Style x:Key="TreeItemStyle" TargetType="TreeViewItem">
+ <Setter Property="IsExpanded" Value="True" />
+ <Setter Property="IsSelected" Value="{Binding IsInitiallySelected, Mode=OneTime}" />
+ <Setter Property="KeyboardNavigation.AcceptsReturn" Value="True" />
+ <Setter Property="local:VirtualToggleButton.IsVirtualToggleButton" Value="True" />
+ <Setter Property="local:VirtualToggleButton.IsChecked" Value="{Binding IsChecked}" />
+ </Style>
+
+ <HierarchicalDataTemplate x:Key="CheckboxStyle" DataType="{x:Type local:DirectoryRecord}"
+ ItemsSource="{Binding Directories}" >
+ <StackPanel Orientation="Horizontal">
+ <CheckBox
+ Focusable="False"
+ IsChecked="{Binding IsChecked}"
+ VerticalAlignment="Center"
+ />
+ <ContentPresenter
+ Content="{Binding Info.Name, Mode=OneTime}"
+ Margin="2,0"
+ />
+ </StackPanel>
+ </HierarchicalDataTemplate>
+
+ </Window.Resources>
+ <Grid>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="*"/>
+ <RowDefinition Height="Auto"/>
+ </Grid.RowDefinitions>
+ <TreeView Grid.Row="0" Name="PithosDirectory"
+ ItemContainerStyle="{StaticResource TreeItemStyle}"
+ ItemTemplate="{StaticResource CheckboxStyle}">
+ </TreeView>
+ <StackPanel Grid.Row="1">
+ <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
+ <Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" />
+ <Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" />
+ </StackPanel>
+ </StackPanel>
+ </Grid>
+</Window>