root / trunk / Pithos.Client.WPF / FileProperties / ContainerPropertiesView.xaml @ becb4f44
History | View | Annotate | Download (7.9 kB)
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="/PithosPlus;component/Images/PithosTaskbar.png" |
7 |
Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}"> |
8 |
<Window.Resources> |
9 |
<ResourceDictionary> |
10 |
<ResourceDictionary.MergedDictionaries> |
11 |
<ResourceDictionary Source="..\PithosStyles.xaml" /> |
12 |
</ResourceDictionary.MergedDictionaries> |
13 |
</ResourceDictionary> |
14 |
</Window.Resources> |
15 |
<extToolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="Loading Container Info ..." > |
16 |
<Grid> |
17 |
<Grid.RowDefinitions> |
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="/PithosPlus;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" /> |
31 |
</Grid> |
32 |
<TabControl Grid.Row="1"> |
33 |
<TabItem Header="General"> |
34 |
|
35 |
<Grid> |
36 |
<Grid.Resources> |
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"/> |
41 |
</Style> |
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"/> |
46 |
</Style> |
47 |
</Grid.Resources> |
48 |
<Grid.ColumnDefinitions> |
49 |
<ColumnDefinition Width="Auto" /> |
50 |
<ColumnDefinition Width="*"/> |
51 |
</Grid.ColumnDefinitions> |
52 |
<Grid.RowDefinitions> |
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}"/> |
70 |
</Grid> |
71 |
|
72 |
</TabItem> |
73 |
<TabItem Header="Metadata"> |
74 |
<DataGrid ItemsSource="{Binding Tags}" x:Name="Tags" |
75 |
AutoGenerateColumns="False" CanUserAddRows="True" > |
76 |
<DataGrid.Columns> |
77 |
<DataGridTemplateColumn > |
78 |
<DataGridTemplateColumn.CellTemplate> |
79 |
<DataTemplate> |
80 |
<Button Content=" - " Command="DataGrid.DeleteCommand"/> |
81 |
</DataTemplate> |
82 |
</DataGridTemplateColumn.CellTemplate> |
83 |
</DataGridTemplateColumn> |
84 |
<DataGridTextColumn Binding="{Binding Name}" Header="Key" /> |
85 |
<DataGridTextColumn Binding="{Binding Value}" Header="Value" /> |
86 |
</DataGrid.Columns> |
87 |
</DataGrid> |
88 |
</TabItem> |
89 |
<TabItem Header="Policies"> |
90 |
|
91 |
|
92 |
<Grid> |
93 |
<Grid.Resources> |
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"/> |
98 |
</Style> |
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"/> |
103 |
</Style> |
104 |
</Grid.Resources> |
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}"/> |
119 |
|
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" /> |
122 |
</Grid> |
123 |
|
124 |
|
125 |
</TabItem> |
126 |
</TabControl> |
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}" /> |
131 |
</StackPanel> |
132 |
|
133 |
</Grid> |
134 |
</extToolkit:BusyIndicator> |
135 |
</Window> |