Revision c92e02f3 trunk/Pithos.Client.WPF/FileProperties/ContainerPropertiesView.xaml
b/trunk/Pithos.Client.WPF/FileProperties/ContainerPropertiesView.xaml | ||
---|---|---|
1 | 1 |
<Window x:Class="Pithos.Client.WPF.FileProperties.ContainerPropertiesView" |
2 | 2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 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" |
|
4 | 5 |
Title="ContainerPropertiesView" Height="500" Width="300" |
5 | 6 |
Icon="/Pithos.Client.WPF;component/Images/PithosTaskbar.png" |
6 | 7 |
Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}"> |
... | ... | |
11 | 12 |
</ResourceDictionary.MergedDictionaries> |
12 | 13 |
</ResourceDictionary> |
13 | 14 |
</Window.Resources> |
15 |
<extToolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="Loading Container Info ..." > |
|
14 | 16 |
<Grid> |
15 | 17 |
<Grid.RowDefinitions> |
16 | 18 |
<RowDefinition Height="Auto"/> |
17 |
<RowDefinition Height="Auto"/> |
|
18 |
<RowDefinition Height="*"/> |
|
19 | 19 |
<RowDefinition Height="*"/> |
20 | 20 |
<RowDefinition Height="Auto"/> |
21 | 21 |
</Grid.RowDefinitions> |
... | ... | |
29 | 29 |
<TextBlock x:Name="ContainerName" Margin="5" Grid.Column="1" Text="Container Name" FontSize="16" FontWeight="Bold"/> |
30 | 30 |
<TextBlock x:Name="ShortSize" Margin="5" Text="345 KB" FontWeight="Bold" FontSize="14" Grid.Column="2" /> |
31 | 31 |
</Grid> |
32 |
<GroupBox Header="General" Grid.Row="1" Margin="5"> |
|
32 |
<TabControl Grid.Row="1"> |
|
33 |
<TabItem Header="General"> |
|
34 |
|
|
33 | 35 |
<Grid> |
34 | 36 |
<Grid.Resources> |
35 | 37 |
<Style x:Key="NameColumnStyle" TargetType="TextBlock"> |
36 | 38 |
<Setter Property="HorizontalAlignment" Value="Right"/> |
37 |
<Setter Property="Margin" Value="5,2"/> |
|
39 |
<Setter Property="VerticalAlignment" Value="Top"/> |
|
40 |
<Setter Property="Margin" Value="5,2"/> |
|
38 | 41 |
</Style> |
39 | 42 |
<Style x:Key="ValueColumnStyle" TargetType="TextBlock"> |
40 | 43 |
<Setter Property="HorizontalAlignment" Value="Left"/> |
41 |
<Setter Property="Margin" Value="5,2"/> |
|
44 |
<Setter Property="VerticalAlignment" Value="Top"/> |
|
45 |
<Setter Property="Margin" Value="5,2"/> |
|
42 | 46 |
</Style> |
43 | 47 |
</Grid.Resources> |
44 | 48 |
<Grid.ColumnDefinitions> |
... | ... | |
46 | 50 |
<ColumnDefinition Width="*"/> |
47 | 51 |
</Grid.ColumnDefinitions> |
48 | 52 |
<Grid.RowDefinitions> |
49 |
<RowDefinition/> |
|
50 |
<RowDefinition/>
|
|
51 |
<RowDefinition/>
|
|
52 |
<RowDefinition/>
|
|
53 |
<RowDefinition/>
|
|
54 |
<RowDefinition/>
|
|
53 |
<RowDefinition Height="Auto"/>
|
|
54 |
<RowDefinition Height="Auto"/>
|
|
55 |
<RowDefinition Height="Auto"/>
|
|
56 |
<RowDefinition Height="Auto"/>
|
|
57 |
<RowDefinition Height="Auto"/>
|
|
58 |
<RowDefinition Height="Auto"/>
|
|
55 | 59 |
</Grid.RowDefinitions> |
56 | 60 |
<TextBlock Text="Count :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
57 | 61 |
<TextBlock Text="Size :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
... | ... | |
64 | 68 |
<TextBlock x:Name="BlockSize" Text="4012354486" Grid.Row="4" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
65 | 69 |
<TextBlock x:Name="BlockHash" Text="2345456" Grid.Row="5" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
66 | 70 |
</Grid> |
67 |
</GroupBox> |
|
68 |
<GroupBox Header="Metadata" Grid.Row="2" > |
|
69 |
<DataGrid ItemsSource="{Binding Tags}" |
|
70 |
AutoGenerateColumns="False" CanUserAddRows="True" > |
|
71 |
<DataGrid.Columns> |
|
72 |
<DataGridTextColumn Binding="{Binding Name}" Header="Name" /> |
|
73 |
<DataGridTextColumn Binding="{Binding Value}" Header="Value" /> |
|
74 |
</DataGrid.Columns> |
|
75 |
</DataGrid> |
|
76 |
</GroupBox> |
|
77 |
<GroupBox Header="Policies" Grid.Row="3" > |
|
78 |
<DataGrid ItemsSource="{Binding Policies}" |
|
71 |
|
|
72 |
</TabItem> |
|
73 |
<TabItem Header="Metadata"> |
|
74 |
<DataGrid ItemsSource="{Binding Tags}" x:Name="Tags" |
|
79 | 75 |
AutoGenerateColumns="False" CanUserAddRows="True" > |
80 |
<DataGrid.Columns> |
|
81 |
<DataGridTextColumn Binding="{Binding Name}" Header="Name" /> |
|
82 |
<DataGridTextColumn Binding="{Binding Value}" Header="Value" /> |
|
83 |
</DataGrid.Columns> |
|
84 |
</DataGrid> |
|
85 |
</GroupBox> |
|
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 |
|
|
86 | 124 |
|
87 |
<StackPanel Orientation="Horizontal" Grid.Row="4" HorizontalAlignment="Right"> |
|
125 |
</TabItem> |
|
126 |
</TabControl> |
|
127 |
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right"> |
|
88 | 128 |
<Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
89 | 129 |
<Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
90 | 130 |
<Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" /> |
91 | 131 |
</StackPanel> |
92 | 132 |
|
93 | 133 |
</Grid> |
134 |
</extToolkit:BusyIndicator> |
|
94 | 135 |
</Window> |
Also available in: Unified diff