1 <Window x:Class="Pithos.Client.WPF.FileProperties.ContainerPropertiesView"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cal="http://www.caliburnproject.org"
4 xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
5 Title="ContainerPropertiesView" Height="500" Width="300"
6 Icon="/Pithos;component/Images/PithosTaskbar.png"
7 Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}">
10 <ResourceDictionary.MergedDictionaries>
11 <ResourceDictionary Source="..\PithosStyles.xaml" />
12 </ResourceDictionary.MergedDictionaries>
15 <extToolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="Loading Container Info ..." >
18 <RowDefinition Height="Auto"/>
19 <RowDefinition Height="*"/>
20 <RowDefinition Height="Auto"/>
21 </Grid.RowDefinitions>
22 <Grid Grid.Row="0" Margin="5">
23 <Grid.ColumnDefinitions>
24 <ColumnDefinition Width="Auto"/>
25 <ColumnDefinition Width="*"/>
26 <ColumnDefinition Width="Auto"/>
27 </Grid.ColumnDefinitions>
28 <Image x:Name="FileIcon" Margin="5" Grid.Column="0" Stretch="None" Source="/Pithos;component/Images/Container.png" />
29 <TextBlock x:Name="ContainerName" Margin="5" Grid.Column="1" Text="Container Name" FontSize="16" FontWeight="Bold"/>
30 <TextBlock x:Name="ShortSize" Margin="5" Text="345 KB" FontWeight="Bold" FontSize="14" Grid.Column="2" />
32 <TabControl Grid.Row="1">
33 <TabItem Header="General">
37 <Style x:Key="NameColumnStyle" TargetType="TextBlock">
38 <Setter Property="HorizontalAlignment" Value="Right"/>
39 <Setter Property="VerticalAlignment" Value="Top"/>
40 <Setter Property="Margin" Value="5,2"/>
42 <Style x:Key="ValueColumnStyle" TargetType="TextBlock">
43 <Setter Property="HorizontalAlignment" Value="Left"/>
44 <Setter Property="VerticalAlignment" Value="Top"/>
45 <Setter Property="Margin" Value="5,2"/>
48 <Grid.ColumnDefinitions>
49 <ColumnDefinition Width="Auto" />
50 <ColumnDefinition Width="*"/>
51 </Grid.ColumnDefinitions>
53 <RowDefinition Height="Auto"/>
54 <RowDefinition Height="Auto"/>
55 <RowDefinition Height="Auto"/>
56 <RowDefinition Height="Auto"/>
57 <RowDefinition Height="Auto"/>
58 <RowDefinition Height="Auto"/>
59 </Grid.RowDefinitions>
60 <TextBlock Text="Count :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
61 <TextBlock Text="Size :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
62 <TextBlock Text="Modified :" Grid.Row="3" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
63 <TextBlock Text="Block Size :" Grid.Row="4" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
64 <TextBlock Text="Block Hash :" Grid.Row="5" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
65 <TextBlock x:Name="Count" Text="123" Grid.Row="0" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
66 <TextBlock x:Name="Size" Text="345 KB (345,332 bytes)" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
67 <TextBlock x:Name="Modified" Text="28/10/2011 11:34 AM" Grid.Row="3" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
68 <TextBlock x:Name="BlockSize" Text="4012354486" Grid.Row="4" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
69 <TextBlock x:Name="BlockHash" Text="2345456" Grid.Row="5" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
73 <TabItem Header="Metadata">
74 <DataGrid ItemsSource="{Binding Tags}" x:Name="Tags"
75 AutoGenerateColumns="False" CanUserAddRows="True" >
77 <DataGridTemplateColumn >
78 <DataGridTemplateColumn.CellTemplate>
80 <Button Content=" - " Command="DataGrid.DeleteCommand"/>
82 </DataGridTemplateColumn.CellTemplate>
83 </DataGridTemplateColumn>
84 <DataGridTextColumn Binding="{Binding Name}" Header="Key" />
85 <DataGridTextColumn Binding="{Binding Value}" Header="Value" />
89 <TabItem Header="Policies">
94 <Style x:Key="NameColumnStyle" TargetType="TextBlock">
95 <Setter Property="HorizontalAlignment" Value="Right"/>
96 <Setter Property="VerticalAlignment" Value="Top"/>
97 <Setter Property="Margin" Value="5,2"/>
99 <Style x:Key="ValueColumnStyle" TargetType="TextBlock">
100 <Setter Property="HorizontalAlignment" Value="Left"/>
101 <Setter Property="VerticalAlignment" Value="Top"/>
102 <Setter Property="Margin" Value="5,2"/>
105 <Grid.ColumnDefinitions>
106 <ColumnDefinition Width="Auto" />
107 <ColumnDefinition Width="*"/>
108 </Grid.ColumnDefinitions>
109 <Grid.RowDefinitions>
110 <RowDefinition Height="Auto"/>
111 <RowDefinition Height="Auto"/>
112 <RowDefinition Height="Auto"/>
113 <RowDefinition Height="Auto"/>
114 <RowDefinition Height="Auto"/>
115 <RowDefinition Height="Auto"/>
116 </Grid.RowDefinitions>
117 <TextBlock Text="Quota :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
118 <TextBlock Text="Versioning :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
120 <TextBox x:Name="Quota" Text="123" Grid.Row="0" Grid.Column="1" />
121 <ComboBox x:Name="Versions" Text="345 KB (345,332 bytes)" Grid.Row="1" Grid.Column="1" />
127 <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right">
128 <Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
129 <Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
130 <Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" />
134 </extToolkit:BusyIndicator>