Statistics
| Branch: | Revision:

root / trunk / Pithos.Client.WPF / SelectiveSynch / SelectiveSynchView.xaml @ 759bd3c4

History | View | Annotate | Download (3.1 kB)

1
<Window x:Class="Pithos.Client.WPF.SelectiveSynch.SelectiveSynchView"
2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
        xmlns:local="clr-namespace:Pithos.Client.WPF.SelectiveSynch"
5
        xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
6
        xmlns:Converters="clr-namespace:Pithos.Client.WPF.Converters" 
7
        Title="Selective Synch" Height="300" Width="300" 
8
        ShowInTaskbar="true"
9
        WindowStartupLocation="CenterScreen"
10
        Icon="/Pithos.Client.WPF;component/Images/PithosTaskbar.png"
11
        Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}">
12
    <Window.Resources>
13
        <ResourceDictionary>
14
            <ResourceDictionary.MergedDictionaries>
15
                <ResourceDictionary Source="..\PithosStyles.xaml" />
16
            </ResourceDictionary.MergedDictionaries>
17
            <Converters:NullToVisibilityConverter x:Key="NullToVisible" />
18
            <Style x:Key="TreeItemStyle" TargetType="TreeViewItem">
19
                <Setter Property="IsExpanded" Value="True" />
20
                <Setter Property="IsSelected" Value="{Binding IsInitiallySelected, Mode=OneTime}" />
21
                <Setter Property="KeyboardNavigation.AcceptsReturn" Value="True" />
22
                <Setter Property="local:VirtualToggleButton.IsVirtualToggleButton" Value="True" />
23
                <Setter Property="local:VirtualToggleButton.IsChecked" Value="{Binding IsChecked}" />
24
            </Style>
25
            <HierarchicalDataTemplate x:Key="CheckboxStyle" DataType="{x:Type local:DirectoryRecord}"
26
                                    ItemsSource="{Binding Directories}" >
27
                <StackPanel Orientation="Horizontal">
28
                    <CheckBox
29
            Focusable="False" 
30
            IsChecked="{Binding IsChecked}" 
31
            VerticalAlignment="Center"
32
            />
33
                    <ContentPresenter 
34
            Content="{Binding DisplayName, Mode=OneTime}" 
35
            Margin="2,0"
36
            />
37
                </StackPanel>
38
            </HierarchicalDataTemplate>
39

    
40
        </ResourceDictionary>
41

    
42

    
43
    </Window.Resources>
44
    <Grid>
45
        <Grid.RowDefinitions>
46
            <RowDefinition Height="*"/>
47
            <RowDefinition Height="Auto"/>
48
        </Grid.RowDefinitions>
49
        <extToolkit:BusyIndicator Name="IsBusy" Grid.Row="0" BusyContent="Retrieving folders ..." DisplayAfter="0">
50
            <TreeView  Name="RootNodes" 
51
                  ItemContainerStyle="{StaticResource TreeItemStyle}" 
52
                  ItemTemplate="{StaticResource CheckboxStyle}">
53
            </TreeView>
54
        </extToolkit:BusyIndicator>
55
        <StackPanel Grid.Row="1">
56
            <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
57
                <Button Name="SaveChanges" Content="OK" Margin="5,5,10,5"  Style="{StaticResource ButtonStyle}"/>
58
                <Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5"  Style="{StaticResource ButtonStyle}"/>                
59
            </StackPanel>
60
        </StackPanel>
61
    </Grid>
62
</Window>