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