root / trunk / Pithos.Client.WPF / SelectiveSynch / SelectiveSynchView.xaml @ eb81e47d
History | View | Annotate | Download (3.2 kB)
1 | d3a13891 | Panagiotis Kanavos | <Window x:Class="Pithos.Client.WPF.SelectiveSynch.SelectiveSynchView" |
---|---|---|---|
2 | d3a13891 | Panagiotis Kanavos | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | d3a13891 | Panagiotis Kanavos | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 759bd3c4 | Panagiotis Kanavos | xmlns:local="clr-namespace:Pithos.Client.WPF.SelectiveSynch" |
5 | 759bd3c4 | Panagiotis Kanavos | xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" |
6 | 759bd3c4 | Panagiotis Kanavos | xmlns:Converters="clr-namespace:Pithos.Client.WPF.Converters" |
7 | f4a72cb8 | pkanavos | Title="Selective Synch" Height="500" Width="500" |
8 | 759bd3c4 | Panagiotis Kanavos | ShowInTaskbar="true" |
9 | 759bd3c4 | Panagiotis Kanavos | WindowStartupLocation="CenterScreen" |
10 | becb4f44 | Panagiotis Kanavos | Icon="/PithosPlus;component/Images/PithosTaskbar.png" |
11 | 759bd3c4 | Panagiotis Kanavos | Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}"> |
12 | 759bd3c4 | Panagiotis Kanavos | <Window.Resources> |
13 | 759bd3c4 | Panagiotis Kanavos | <ResourceDictionary> |
14 | 759bd3c4 | Panagiotis Kanavos | <ResourceDictionary.MergedDictionaries> |
15 | 759bd3c4 | Panagiotis Kanavos | <ResourceDictionary Source="..\PithosStyles.xaml" /> |
16 | 759bd3c4 | Panagiotis Kanavos | </ResourceDictionary.MergedDictionaries> |
17 | 759bd3c4 | Panagiotis Kanavos | <Converters:NullToVisibilityConverter x:Key="NullToVisible" /> |
18 | 759bd3c4 | Panagiotis Kanavos | <Style x:Key="TreeItemStyle" TargetType="TreeViewItem"> |
19 | 759bd3c4 | Panagiotis Kanavos | <Setter Property="IsExpanded" Value="True" /> |
20 | 759bd3c4 | Panagiotis Kanavos | <Setter Property="IsSelected" Value="{Binding IsInitiallySelected, Mode=OneTime}" /> |
21 | 759bd3c4 | Panagiotis Kanavos | <Setter Property="KeyboardNavigation.AcceptsReturn" Value="True" /> |
22 | 759bd3c4 | Panagiotis Kanavos | <Setter Property="local:VirtualToggleButton.IsVirtualToggleButton" Value="True" /> |
23 | 759bd3c4 | Panagiotis Kanavos | <Setter Property="local:VirtualToggleButton.IsChecked" Value="{Binding IsChecked}" /> |
24 | 759bd3c4 | Panagiotis Kanavos | </Style> |
25 | 759bd3c4 | Panagiotis Kanavos | <HierarchicalDataTemplate x:Key="CheckboxStyle" DataType="{x:Type local:DirectoryRecord}" |
26 | d3a13891 | Panagiotis Kanavos | ItemsSource="{Binding Directories}" > |
27 | 759bd3c4 | Panagiotis Kanavos | <StackPanel Orientation="Horizontal"> |
28 | 759bd3c4 | Panagiotis Kanavos | <CheckBox |
29 | e0b2f16a | pkanavos | Focusable="False" IsThreeState="True" |
30 | d3a13891 | Panagiotis Kanavos | IsChecked="{Binding IsChecked}" |
31 | d3a13891 | Panagiotis Kanavos | VerticalAlignment="Center" |
32 | d3a13891 | Panagiotis Kanavos | /> |
33 | 759bd3c4 | Panagiotis Kanavos | <ContentPresenter |
34 | 759bd3c4 | Panagiotis Kanavos | Content="{Binding DisplayName, Mode=OneTime}" |
35 | d3a13891 | Panagiotis Kanavos | Margin="2,0" |
36 | d3a13891 | Panagiotis Kanavos | /> |
37 | 759bd3c4 | Panagiotis Kanavos | </StackPanel> |
38 | 759bd3c4 | Panagiotis Kanavos | </HierarchicalDataTemplate> |
39 | 759bd3c4 | Panagiotis Kanavos | |
40 | 759bd3c4 | Panagiotis Kanavos | </ResourceDictionary> |
41 | 759bd3c4 | Panagiotis Kanavos | |
42 | d3a13891 | Panagiotis Kanavos | |
43 | d3a13891 | Panagiotis Kanavos | </Window.Resources> |
44 | cbefd298 | pkanavos | <extToolkit:BusyIndicator Name="IsBusy" BusyContent="Retrieving folders ..." DisplayAfter="0"> |
45 | cbefd298 | pkanavos | <Grid> |
46 | d3a13891 | Panagiotis Kanavos | <Grid.RowDefinitions> |
47 | d3a13891 | Panagiotis Kanavos | <RowDefinition Height="*"/> |
48 | d3a13891 | Panagiotis Kanavos | <RowDefinition Height="Auto"/> |
49 | d3a13891 | Panagiotis Kanavos | </Grid.RowDefinitions> |
50 | eb81e47d | pkanavos | <TreeView Name="RootNodes" Margin="5" Grid.Row="0" |
51 | cbefd298 | pkanavos | ItemContainerStyle="{StaticResource TreeItemStyle}" |
52 | cbefd298 | pkanavos | ItemTemplate="{StaticResource CheckboxStyle}" |
53 | cbefd298 | pkanavos | IsEnabled="{Binding IsEnabled}" > |
54 | cbefd298 | pkanavos | </TreeView> |
55 | eb81e47d | pkanavos | <StackPanel Grid.Row="1"> |
56 | d3a13891 | Panagiotis Kanavos | <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right"> |
57 | 759bd3c4 | Panagiotis Kanavos | <Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
58 | 759bd3c4 | Panagiotis Kanavos | <Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
59 | d3a13891 | Panagiotis Kanavos | </StackPanel> |
60 | d3a13891 | Panagiotis Kanavos | </StackPanel> |
61 | d3a13891 | Panagiotis Kanavos | </Grid> |
62 | cbefd298 | pkanavos | </extToolkit:BusyIndicator> |
63 | d3a13891 | Panagiotis Kanavos | </Window> |