root / trunk / Pithos.Client.WPF / FileProperties / ContainerPropertiesView.xaml @ 1e4f1775
History | View | Annotate | Download (8.4 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="507" Width="400" |
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 |
<StackPanel> |
75 |
<StackPanel Orientation="Horizontal"> |
76 |
<TextBox x:Name="CurrentTag_Name" Width="145" Margin="5" Grid.Row="6"/> |
77 |
<TextBox x:Name="CurrentTag_Value" Width="145" Margin="5" Grid.Row="6"/> |
78 |
<Button x:Name="AddTag" Content="Update" Margin="5"/> |
79 |
</StackPanel> |
80 |
<DataGrid x:Name="Tags" AutoGenerateColumns="False" GridLinesVisibility="None" |
81 |
IsReadOnly="False" |
82 |
CanUserDeleteRows="True" |
83 |
CanUserAddRows="False"> |
84 |
<DataGrid.Columns> |
85 |
<DataGridTextColumn Binding="{Binding Name}" Header="Key" MinWidth="150" IsReadOnly="True"/> |
86 |
<DataGridTextColumn Binding="{Binding Value}" Header="Value" MinWidth="100" IsReadOnly="True"/> |
87 |
</DataGrid.Columns> |
88 |
</DataGrid> |
89 |
<Button x:Name="DeleteTag" Content="Delete" |
90 |
Command="DataGrid.DeleteCommand" CommandTarget="{Binding ElementName=Tags}" |
91 |
Style="{StaticResource ResourceKey=ButtonStyle}" HorizontalAlignment="Left" /> |
92 |
</StackPanel> |
93 |
</TabItem> |
94 |
<TabItem Header="Policies"> |
95 |
|
96 |
|
97 |
<Grid> |
98 |
<Grid.Resources> |
99 |
<Style x:Key="NameColumnStyle" TargetType="TextBlock"> |
100 |
<Setter Property="HorizontalAlignment" Value="Right"/> |
101 |
<Setter Property="VerticalAlignment" Value="Top"/> |
102 |
<Setter Property="Margin" Value="5,2"/> |
103 |
</Style> |
104 |
<Style x:Key="ValueColumnStyle" TargetType="TextBlock"> |
105 |
<Setter Property="HorizontalAlignment" Value="Left"/> |
106 |
<Setter Property="VerticalAlignment" Value="Top"/> |
107 |
<Setter Property="Margin" Value="5,2"/> |
108 |
</Style> |
109 |
</Grid.Resources> |
110 |
<Grid.ColumnDefinitions> |
111 |
<ColumnDefinition Width="Auto" /> |
112 |
<ColumnDefinition Width="*"/> |
113 |
</Grid.ColumnDefinitions> |
114 |
<Grid.RowDefinitions> |
115 |
<RowDefinition Height="Auto"/> |
116 |
<RowDefinition Height="Auto"/> |
117 |
<RowDefinition Height="Auto"/> |
118 |
<RowDefinition Height="Auto"/> |
119 |
<RowDefinition Height="Auto"/> |
120 |
<RowDefinition Height="Auto"/> |
121 |
</Grid.RowDefinitions> |
122 |
<TextBlock Text="Quota :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
123 |
<TextBlock Text="Versioning :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
124 |
|
125 |
<TextBox x:Name="Quota" Text="123" Grid.Row="0" Grid.Column="1" /> |
126 |
<ComboBox x:Name="Versions" Text="345 KB (345,332 bytes)" Grid.Row="1" Grid.Column="1" /> |
127 |
</Grid> |
128 |
|
129 |
|
130 |
</TabItem> |
131 |
</TabControl> |
132 |
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right"> |
133 |
<Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
134 |
<Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
135 |
<Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" /> |
136 |
</StackPanel> |
137 |
|
138 |
</Grid> |
139 |
</extToolkit:BusyIndicator> |
140 |
</Window> |