Revision 2115e2a5 trunk/Pithos.Client.WPF/FileProperties/FilePropertiesView.xaml
b/trunk/Pithos.Client.WPF/FileProperties/FilePropertiesView.xaml | ||
---|---|---|
1 |
<Window x:Class="Pithos.Client.WPF.FilePropertiesView" |
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
4 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org" |
|
1 |
<Window x:Class="Pithos.Client.WPF.FilePropertiesView"
|
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
4 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org"
|
|
6 | 6 |
xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" |
7 |
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" mc:Ignorable="d" |
|
8 |
d:DesignHeight="300" d:DesignWidth="400" Width="400" |
|
9 |
Height="400" Icon="/PithosPlus;component/Images/PithosTaskbar.png" |
|
10 |
Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}" WindowStartupLocation="CenterScreen" Topmost="False" |
|
11 |
x:Name="ThisView"> |
|
12 |
<Window.Resources> |
|
13 |
<ResourceDictionary> |
|
14 |
<ResourceDictionary.MergedDictionaries> |
|
15 |
<ResourceDictionary Source="..\PithosStyles.xaml" /> |
|
16 |
</ResourceDictionary.MergedDictionaries> |
|
17 |
<BooleanToVisibilityConverter x:Key="BoolToVisible" /> |
|
18 |
</ResourceDictionary> |
|
19 |
</Window.Resources> |
|
20 |
<xctk:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="{Binding BusyMessage}" > |
|
21 |
<Grid> |
|
22 |
<Grid.RowDefinitions> |
|
23 |
<RowDefinition Height="Auto"/> |
|
24 |
<RowDefinition Height="*"/> |
|
25 |
<RowDefinition Height="Auto"/> |
|
26 |
</Grid.RowDefinitions> |
|
27 |
|
|
28 |
<Grid Grid.Row="0"> |
|
29 |
<Grid.ColumnDefinitions> |
|
30 |
<ColumnDefinition Width="Auto"/> |
|
31 |
<ColumnDefinition Width="*"/> |
|
32 |
<ColumnDefinition Width="Auto"/> |
|
33 |
</Grid.ColumnDefinitions> |
|
34 |
<Image x:Name="FileIcon" Width="48" Height="48" Margin="5" Grid.Column="0" Stretch="None"/> |
|
35 |
<StackPanel Margin="5" Grid.Column="1"> |
|
36 |
<TextBlock x:Name="FileName" Grid.Row="0" Text="File Name" FontSize="16" FontWeight="Bold"/> |
|
37 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
|
38 |
<TextBlock Text="Container: " /> |
|
39 |
<TextBlock x:Name="Container" Text="Container" /> |
|
40 |
</StackPanel> |
|
41 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
|
42 |
<TextBlock Text="Sync Status: " /> |
|
43 |
<TextBlock x:Name="SynchStatus" Text="Normal" /> |
|
44 |
</StackPanel> |
|
45 |
|
|
46 |
</StackPanel> |
|
47 |
<TextBlock x:Name="ShortSize" Text="345 KB" FontWeight="Bold" FontSize="14" Grid.Column="2" HorizontalAlignment="Left" Margin="5"/> |
|
48 |
</Grid> |
|
49 |
<TabControl Grid.Row="1"> |
|
50 |
<TabItem Header="General"> |
|
51 |
<Grid> |
|
52 |
<Grid.Resources> |
|
53 |
<Style x:Key="NameColumnStyle" TargetType="TextBlock"> |
|
54 |
<Setter Property="HorizontalAlignment" Value="Right"/> |
|
55 |
<Setter Property="Margin" Value="5,2"/> |
|
56 |
</Style> |
|
57 |
<Style x:Key="ValueColumnStyle" TargetType="TextBlock"> |
|
58 |
<Setter Property="HorizontalAlignment" Value="Left"/> |
|
59 |
<Setter Property="Margin" Value="5,2"/> |
|
60 |
</Style> |
|
61 |
</Grid.Resources> |
|
62 |
<Grid.ColumnDefinitions> |
|
63 |
<ColumnDefinition Width="Auto" /> |
|
64 |
<ColumnDefinition Width="*"/> |
|
65 |
</Grid.ColumnDefinitions> |
|
66 |
<Grid.RowDefinitions> |
|
67 |
<RowDefinition Height="Auto"/> |
|
68 |
<RowDefinition Height="Auto"/> |
|
69 |
<RowDefinition Height="Auto"/> |
|
70 |
<RowDefinition Height="Auto"/> |
|
71 |
<RowDefinition Height="Auto"/> |
|
72 |
<RowDefinition Height="Auto"/> |
|
73 |
<RowDefinition Height="Auto"/> |
|
74 |
<RowDefinition Height="Auto"/> |
|
75 |
<RowDefinition Height="Auto"/> |
|
76 |
</Grid.RowDefinitions> |
|
77 |
<TextBlock Text="Kind :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
78 |
<TextBlock Text="Size :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
79 |
<TextBlock Text="Where :" Grid.Row="2" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
80 |
<TextBlock Text="Modified :" Grid.Row="3" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
81 |
<TextBlock Text="Modified By :" Grid.Row="4" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
82 |
<TextBlock Text="Version :" Grid.Row="5" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
83 |
<TextBlock x:Name="Kind" Text="application/pdf" Grid.Row="0" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
84 |
<TextBlock x:Name="Size" Text="345 KB (345,332 bytes)" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
85 |
<TextBlock x:Name="Where" Text="pithos/somefile.pdf" Grid.Row="2" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
86 |
<TextBlock x:Name="Modified" Text="28/10/2011 11:34 AM" Grid.Row="3" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
87 |
<TextBlock x:Name="ModifiedBy" Text="SomeUser" Grid.Row="4" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
88 |
<TextBlock x:Name="Version" Text="2345456" Grid.Row="5" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
89 |
</Grid> |
|
90 |
</TabItem> |
|
91 |
<TabItem Header="Metadata"> |
|
92 |
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
|
93 |
<Grid.RowDefinitions> |
|
94 |
<RowDefinition Height="Auto"/> |
|
95 |
<RowDefinition/> |
|
96 |
<RowDefinition Height="Auto"/> |
|
97 |
</Grid.RowDefinitions> |
|
98 |
|
|
99 |
<StackPanel Orientation="Horizontal" Grid.Row="0"> |
|
100 |
<TextBox x:Name="CurrentTag_Name" Width="145" Margin="5" Grid.Row="6"/> |
|
101 |
<TextBox x:Name="CurrentTag_Value" Width="145" Margin="5" Grid.Row="6"/> |
|
102 |
<Button x:Name="AddTag" Content="Update" Margin="5"/> |
|
103 |
</StackPanel> |
|
104 |
<DataGrid x:Name="Tags" AutoGenerateColumns="False" GridLinesVisibility="None" |
|
105 |
IsReadOnly="False" Grid.Row="1" |
|
106 |
CanUserDeleteRows="True" |
|
107 |
CanUserAddRows="False"> |
|
108 |
<DataGrid.Columns> |
|
109 |
<DataGridTextColumn Binding="{Binding Name}" Header="Key" MinWidth="150" IsReadOnly="True"/> |
|
110 |
<DataGridTextColumn Binding="{Binding Value}" Header="Value" MinWidth="100" IsReadOnly="True"/> |
|
111 |
</DataGrid.Columns> |
|
112 |
</DataGrid> |
|
113 |
<Button x:Name="DeleteTag" Content="Delete" Grid.Row="2" |
|
114 |
Command="DataGrid.DeleteCommand" CommandTarget="{Binding ElementName=Tags}" |
|
115 |
Style="{StaticResource ResourceKey=ButtonStyle}" HorizontalAlignment="Left" /> |
|
116 |
</Grid> |
|
117 |
</TabItem> |
|
118 |
<TabItem Header="Permissions"> |
|
119 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> |
|
120 |
<Grid.RowDefinitions> |
|
121 |
<RowDefinition Height="Auto"/> |
|
122 |
<RowDefinition Height="Auto"/> |
|
123 |
<RowDefinition Height="Auto"/> |
|
124 |
<RowDefinition/> |
|
125 |
<RowDefinition Height="Auto"/> |
|
126 |
</Grid.RowDefinitions> |
|
127 |
<CheckBox x:Name="IsPublic" Content="Public" Margin="5" Grid.Row="0"/> |
|
128 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
|
129 |
<TextBox x:Name="CurrentPermission_UserName" Width="195" Margin="5" Grid.Row="6"/> |
|
130 |
<RadioButton x:Name="CurrentPermission_Read" Content="Read" Margin="5" Grid.Row="7"/> |
|
131 |
<RadioButton x:Name="CurrentPermission_Write" Content="Write" Margin="5" Grid.Row="8"/> |
|
132 |
<Button x:Name="AddPermission" Content="Update" Margin="5"/> |
|
133 |
</StackPanel> |
|
134 |
<TextBlock Margin="5" Grid.Row="2" Visibility="{Binding Path=IsPublic,FallbackValue=Collapsed, Converter={StaticResource BoolToVisible}}"> |
|
135 |
<Run Text="Public URL:" /> |
|
136 |
<Run Text="{Binding PublicUrl,FallbackValue='http://someurl'}" /> |
|
137 |
</TextBlock> |
|
138 |
<DataGrid x:Name="Permissions" AutoGenerateColumns="False" Grid.Row="3" |
|
139 |
GridLinesVisibility="None" |
|
140 |
IsReadOnly="False" |
|
141 |
CanUserDeleteRows="True" |
|
142 |
CanUserAddRows="False" |
|
143 |
> |
|
144 |
<DataGrid.Columns> |
|
145 |
<DataGridTextColumn Binding="{Binding UserName}" Header="Name" MinWidth="150" IsReadOnly="True" /> |
|
146 |
<DataGridTextColumn Binding="{Binding Value}" Header="Permission" IsReadOnly="True"/> |
|
147 |
</DataGrid.Columns> |
|
148 |
</DataGrid> |
|
149 |
<Button x:Name="DeletePermission" Content="Delete" Grid.Row="4" |
|
150 |
Command="DataGrid.DeleteCommand" CommandTarget="{Binding ElementName=Permissions}" |
|
151 |
Style="{StaticResource ResourceKey=ButtonStyle}" HorizontalAlignment="Left" /> |
|
152 |
</Grid> |
|
153 |
</TabItem> |
|
154 |
<!--<TabItem Header="Other"> |
|
155 |
<Grid> |
|
156 |
<Grid.Resources> |
|
157 |
<Style x:Key="NameColumnStyle" TargetType="TextBlock"> |
|
158 |
<Setter Property="HorizontalAlignment" Value="Right"/> |
|
159 |
<Setter Property="Margin" Value="5,2"/> |
|
160 |
</Style> |
|
161 |
<Style x:Key="ValueColumnStyle" TargetType="TextBox"> |
|
162 |
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
|
163 |
<Setter Property="VerticalAlignment" Value="Top"/> |
|
164 |
<Setter Property="Margin" Value="5,2"/> |
|
165 |
</Style> |
|
166 |
</Grid.Resources> |
|
167 |
<Grid.ColumnDefinitions> |
|
168 |
<ColumnDefinition Width="Auto" /> |
|
169 |
<ColumnDefinition Width="*"/> |
|
170 |
</Grid.ColumnDefinitions> |
|
171 |
<Grid.RowDefinitions> |
|
172 |
<RowDefinition Height="Auto"/> |
|
173 |
<RowDefinition Height="Auto"/> |
|
174 |
<RowDefinition Height="Auto"/> |
|
175 |
</Grid.RowDefinitions> |
|
176 |
<TextBlock Text="Content Encoding :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
177 |
<TextBlock Text="Content Disposition :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
178 |
<TextBlock Text="Manifest :" Grid.Row="2" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
179 |
<TextBox x:Name="ContentEncoding" Text="text/utf8" Grid.Row="0" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
180 |
<TextBox x:Name="ContentDisposition" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
181 |
<TextBox x:Name="Manifest" Grid.Row="2" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
182 |
</Grid> |
|
183 |
</TabItem>--> |
|
184 |
</TabControl> |
|
185 |
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right"> |
|
186 |
<Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}" IsDefault="False" /> |
|
187 |
<Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}" IsCancel="True" /> |
|
188 |
<Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" /> |
|
189 |
</StackPanel> |
|
190 |
|
|
191 |
</Grid> |
|
192 |
</xctk:BusyIndicator> |
|
193 |
</Window> |
|
7 |
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" mc:Ignorable="d" |
|
8 |
d:DesignHeight="300" d:DesignWidth="400" Width="400" |
|
9 |
Height="400" Icon="/PithosPlus;component/Images/PithosTaskbar.png" |
|
10 |
Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}" WindowStartupLocation="CenterScreen" Topmost="False" |
|
11 |
x:Name="ThisView"> |
|
12 |
<Window.Resources> |
|
13 |
<ResourceDictionary> |
|
14 |
<ResourceDictionary.MergedDictionaries> |
|
15 |
<ResourceDictionary Source="..\PithosStyles.xaml" /> |
|
16 |
</ResourceDictionary.MergedDictionaries> |
|
17 |
<BooleanToVisibilityConverter x:Key="BoolToVisible" /> |
|
18 |
</ResourceDictionary> |
|
19 |
</Window.Resources> |
|
20 |
<xctk:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="{Binding BusyMessage}" > |
|
21 |
<Grid> |
|
22 |
<Grid.RowDefinitions> |
|
23 |
<RowDefinition Height="Auto"/> |
|
24 |
<RowDefinition Height="*"/> |
|
25 |
<RowDefinition Height="Auto"/> |
|
26 |
</Grid.RowDefinitions> |
|
27 |
|
|
28 |
<Grid Grid.Row="0"> |
|
29 |
<Grid.ColumnDefinitions> |
|
30 |
<ColumnDefinition Width="Auto"/> |
|
31 |
<ColumnDefinition Width="*"/> |
|
32 |
<ColumnDefinition Width="Auto"/> |
|
33 |
</Grid.ColumnDefinitions> |
|
34 |
<Image x:Name="FileIcon" Width="48" Height="48" Margin="5" Grid.Column="0" Stretch="None"/> |
|
35 |
<StackPanel Margin="5" Grid.Column="1"> |
|
36 |
<TextBlock x:Name="FileName" Grid.Row="0" Text="File Name" FontSize="16" FontWeight="Bold"/> |
|
37 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
|
38 |
<TextBlock Text="Container: " /> |
|
39 |
<TextBlock x:Name="Container" Text="Container" /> |
|
40 |
</StackPanel> |
|
41 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
|
42 |
<TextBlock Text="Sync Status: " /> |
|
43 |
<TextBlock x:Name="SynchStatus" Text="Normal" /> |
|
44 |
</StackPanel> |
|
45 |
|
|
46 |
</StackPanel> |
|
47 |
<TextBlock x:Name="ShortSize" Text="345 KB" FontWeight="Bold" FontSize="14" Grid.Column="2" HorizontalAlignment="Left" Margin="5"/> |
|
48 |
</Grid> |
|
49 |
<TabControl Grid.Row="1"> |
|
50 |
<TabItem Header="General"> |
|
51 |
<Grid> |
|
52 |
<Grid.Resources> |
|
53 |
<Style x:Key="NameColumnStyle" TargetType="TextBlock"> |
|
54 |
<Setter Property="HorizontalAlignment" Value="Right"/> |
|
55 |
<Setter Property="Margin" Value="5,2"/> |
|
56 |
</Style> |
|
57 |
<Style x:Key="ValueColumnStyle" TargetType="TextBlock"> |
|
58 |
<Setter Property="HorizontalAlignment" Value="Left"/> |
|
59 |
<Setter Property="Margin" Value="5,2"/> |
|
60 |
</Style> |
|
61 |
</Grid.Resources> |
|
62 |
<Grid.ColumnDefinitions> |
|
63 |
<ColumnDefinition Width="Auto" /> |
|
64 |
<ColumnDefinition Width="*"/> |
|
65 |
</Grid.ColumnDefinitions> |
|
66 |
<Grid.RowDefinitions> |
|
67 |
<RowDefinition Height="Auto"/> |
|
68 |
<RowDefinition Height="Auto"/> |
|
69 |
<RowDefinition Height="Auto"/> |
|
70 |
<RowDefinition Height="Auto"/> |
|
71 |
<RowDefinition Height="Auto"/> |
|
72 |
<RowDefinition Height="Auto"/> |
|
73 |
<RowDefinition Height="Auto"/> |
|
74 |
<RowDefinition Height="Auto"/> |
|
75 |
<RowDefinition Height="Auto"/> |
|
76 |
</Grid.RowDefinitions> |
|
77 |
<TextBlock Text="Kind :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
78 |
<TextBlock Text="Size :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
79 |
<TextBlock Text="Where :" Grid.Row="2" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
80 |
<TextBlock Text="Modified :" Grid.Row="3" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
81 |
<TextBlock Text="Modified By :" Grid.Row="4" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
82 |
<TextBlock Text="Version :" Grid.Row="5" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
83 |
<TextBlock x:Name="Kind" Text="application/pdf" Grid.Row="0" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
84 |
<TextBlock x:Name="Size" Text="345 KB (345,332 bytes)" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
85 |
<TextBlock x:Name="Where" Text="pithos/somefile.pdf" Grid.Row="2" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
86 |
<TextBlock x:Name="Modified" Text="28/10/2011 11:34 AM" Grid.Row="3" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
87 |
<TextBlock x:Name="ModifiedBy" Text="SomeUser" Grid.Row="4" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
88 |
<TextBlock x:Name="Version" Text="2345456" Grid.Row="5" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
89 |
</Grid> |
|
90 |
</TabItem> |
|
91 |
<TabItem Header="Metadata"> |
|
92 |
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
|
93 |
<Grid.RowDefinitions> |
|
94 |
<RowDefinition Height="Auto"/> |
|
95 |
<RowDefinition/> |
|
96 |
<RowDefinition Height="Auto"/> |
|
97 |
</Grid.RowDefinitions> |
|
98 |
|
|
99 |
<StackPanel Orientation="Horizontal" Grid.Row="0"> |
|
100 |
<TextBox x:Name="CurrentTag_Name" Width="145" Margin="5" Grid.Row="6"/> |
|
101 |
<TextBox x:Name="CurrentTag_Value" Width="145" Margin="5" Grid.Row="6"/> |
|
102 |
<Button x:Name="AddTag" Content="Update" Margin="5"/> |
|
103 |
</StackPanel> |
|
104 |
<DataGrid x:Name="Tags" AutoGenerateColumns="False" GridLinesVisibility="None" |
|
105 |
IsReadOnly="False" Grid.Row="1" |
|
106 |
CanUserDeleteRows="True" |
|
107 |
CanUserAddRows="False"> |
|
108 |
<DataGrid.Columns> |
|
109 |
<DataGridTextColumn Binding="{Binding Name}" Header="Key" MinWidth="150" IsReadOnly="True"/> |
|
110 |
<DataGridTextColumn Binding="{Binding Value}" Header="Value" MinWidth="100" IsReadOnly="True"/> |
|
111 |
</DataGrid.Columns> |
|
112 |
</DataGrid> |
|
113 |
<Button x:Name="DeleteTag" Content="Delete" Grid.Row="2" |
|
114 |
Command="DataGrid.DeleteCommand" CommandTarget="{Binding ElementName=Tags}" |
|
115 |
Style="{StaticResource ResourceKey=ButtonStyle}" HorizontalAlignment="Left" /> |
|
116 |
</Grid> |
|
117 |
</TabItem> |
|
118 |
<TabItem Header="Permissions"> |
|
119 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> |
|
120 |
<Grid.RowDefinitions> |
|
121 |
<RowDefinition Height="Auto"/> |
|
122 |
<RowDefinition Height="Auto"/> |
|
123 |
<RowDefinition Height="Auto"/> |
|
124 |
<RowDefinition/> |
|
125 |
<RowDefinition Height="Auto"/> |
|
126 |
</Grid.RowDefinitions> |
|
127 |
<CheckBox x:Name="IsPublic" Content="Public" Margin="5" Grid.Row="0"/> |
|
128 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
|
129 |
<TextBox x:Name="CurrentPermission_UserName" Width="195" Margin="5" Grid.Row="6"/> |
|
130 |
<RadioButton x:Name="CurrentPermission_Read" Content="Read" Margin="5" Grid.Row="7"/> |
|
131 |
<RadioButton x:Name="CurrentPermission_Write" Content="Write" Margin="5" Grid.Row="8"/> |
|
132 |
<Button x:Name="AddPermission" Content="Update" Margin="5"/> |
|
133 |
</StackPanel> |
|
134 |
<TextBlock Margin="5" Grid.Row="2" Visibility="{Binding Path=IsPublic,FallbackValue=Collapsed, Converter={StaticResource BoolToVisible}}"> |
|
135 |
<Run Text="Public URL:" /> |
|
136 |
<Run Text="{Binding PublicUrl,FallbackValue='http://someurl'}" /> |
|
137 |
</TextBlock> |
|
138 |
<DataGrid x:Name="Permissions" AutoGenerateColumns="False" Grid.Row="3" |
|
139 |
GridLinesVisibility="None" |
|
140 |
IsReadOnly="False" |
|
141 |
CanUserDeleteRows="True" |
|
142 |
CanUserAddRows="False" |
|
143 |
> |
|
144 |
<DataGrid.Columns> |
|
145 |
<DataGridTextColumn Binding="{Binding UserName}" Header="Name" MinWidth="150" IsReadOnly="True" /> |
|
146 |
<DataGridTextColumn Binding="{Binding Value}" Header="Permission" IsReadOnly="True"/> |
|
147 |
</DataGrid.Columns> |
|
148 |
</DataGrid> |
|
149 |
<Button x:Name="DeletePermission" Content="Delete" Grid.Row="4" |
|
150 |
Command="DataGrid.DeleteCommand" CommandTarget="{Binding ElementName=Permissions}" |
|
151 |
Style="{StaticResource ResourceKey=ButtonStyle}" HorizontalAlignment="Left" /> |
|
152 |
</Grid> |
|
153 |
</TabItem> |
|
154 |
<!--<TabItem Header="Other"> |
|
155 |
<Grid> |
|
156 |
<Grid.Resources> |
|
157 |
<Style x:Key="NameColumnStyle" TargetType="TextBlock"> |
|
158 |
<Setter Property="HorizontalAlignment" Value="Right"/> |
|
159 |
<Setter Property="Margin" Value="5,2"/> |
|
160 |
</Style> |
|
161 |
<Style x:Key="ValueColumnStyle" TargetType="TextBox"> |
|
162 |
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
|
163 |
<Setter Property="VerticalAlignment" Value="Top"/> |
|
164 |
<Setter Property="Margin" Value="5,2"/> |
|
165 |
</Style> |
|
166 |
</Grid.Resources> |
|
167 |
<Grid.ColumnDefinitions> |
|
168 |
<ColumnDefinition Width="Auto" /> |
|
169 |
<ColumnDefinition Width="*"/> |
|
170 |
</Grid.ColumnDefinitions> |
|
171 |
<Grid.RowDefinitions> |
|
172 |
<RowDefinition Height="Auto"/> |
|
173 |
<RowDefinition Height="Auto"/> |
|
174 |
<RowDefinition Height="Auto"/> |
|
175 |
</Grid.RowDefinitions> |
|
176 |
<TextBlock Text="Content Encoding :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
177 |
<TextBlock Text="Content Disposition :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
178 |
<TextBlock Text="Manifest :" Grid.Row="2" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
|
179 |
<TextBox x:Name="ContentEncoding" Text="text/utf8" Grid.Row="0" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
180 |
<TextBox x:Name="ContentDisposition" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
181 |
<TextBox x:Name="Manifest" Grid.Row="2" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
|
182 |
</Grid> |
|
183 |
</TabItem>--> |
|
184 |
</TabControl> |
|
185 |
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right"> |
|
186 |
<Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}" IsDefault="False" /> |
|
187 |
<Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}" IsCancel="True" /> |
|
188 |
<Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" /> |
|
189 |
</StackPanel> |
|
190 |
|
|
191 |
</Grid> |
|
192 |
</xctk:BusyIndicator> |
|
193 |
</Window> |
Also available in: Unified diff