root / trunk / Pithos.Client.WPF / FileProperties / FilePropertiesView.xaml @ 7b0a5fec
History | View | Annotate | Download (5.9 kB)
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" |
6 |
mc:Ignorable="d" |
7 |
d:DesignHeight="300" d:DesignWidth="300" |
8 |
Background="#FFD4D0C8" Height="481"> |
9 |
<Window.Resources> |
10 |
<ResourceDictionary> |
11 |
<ResourceDictionary.MergedDictionaries> |
12 |
<ResourceDictionary Source="..\PithosStyles.xaml" /> |
13 |
</ResourceDictionary.MergedDictionaries> |
14 |
</ResourceDictionary> |
15 |
</Window.Resources> |
16 |
<Grid> |
17 |
<Grid.RowDefinitions> |
18 |
<RowDefinition Height="Auto"/> |
19 |
<RowDefinition Height="Auto"/> |
20 |
<RowDefinition Height="*"/> |
21 |
<RowDefinition Height="Auto"/> |
22 |
</Grid.RowDefinitions> |
23 |
|
24 |
<Grid Grid.Row="0"> |
25 |
<Grid.ColumnDefinitions> |
26 |
<ColumnDefinition Width="Auto"/> |
27 |
<ColumnDefinition Width="*"/> |
28 |
<ColumnDefinition Width="Auto"/> |
29 |
</Grid.ColumnDefinitions> |
30 |
<Image x:Name="FileIcon" Width="48" Height="48" Margin="5" Grid.Column="0" Stretch="None"/> |
31 |
<StackPanel Margin="5" Grid.Column="1"> |
32 |
<TextBlock x:Name="FileName" Grid.Row="0" Text="File Name" FontSize="16" FontWeight="Bold"/> |
33 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
34 |
<TextBlock Text="Container: " /> |
35 |
<TextBlock x:Name="Container" Text="Container" /> |
36 |
</StackPanel> |
37 |
</StackPanel> |
38 |
<TextBlock x:Name="ShortSize" Text="345 KB" FontWeight="Bold" FontSize="14" Grid.Column="2" /> |
39 |
</Grid> |
40 |
<GroupBox Header="General" Grid.Row="1"> |
41 |
<Grid> |
42 |
<Grid.Resources> |
43 |
<Style x:Key="NameColumnStyle" TargetType="TextBlock"> |
44 |
<Setter Property="HorizontalAlignment" Value="Right"/> |
45 |
<Setter Property="Margin" Value="5,2"/> |
46 |
</Style> |
47 |
<Style x:Key="ValueColumnStyle" TargetType="TextBlock"> |
48 |
<Setter Property="HorizontalAlignment" Value="Left"/> |
49 |
<Setter Property="Margin" Value="5,2"/> |
50 |
</Style> |
51 |
</Grid.Resources> |
52 |
<Grid.ColumnDefinitions> |
53 |
<ColumnDefinition Width="Auto" /> |
54 |
<ColumnDefinition Width="*"/> |
55 |
</Grid.ColumnDefinitions> |
56 |
<Grid.RowDefinitions> |
57 |
<RowDefinition/> |
58 |
<RowDefinition/> |
59 |
<RowDefinition/> |
60 |
<RowDefinition/> |
61 |
<RowDefinition/> |
62 |
<RowDefinition/> |
63 |
</Grid.RowDefinitions> |
64 |
<TextBlock Text="Kind :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
65 |
<TextBlock Text="Size :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
66 |
<TextBlock Text="Where :" Grid.Row="2" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
67 |
<TextBlock Text="Modified :" Grid.Row="3" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
68 |
<TextBlock Text="Modified By :" Grid.Row="4" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
69 |
<TextBlock Text="Version :" Grid.Row="5" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/> |
70 |
<TextBlock x:Name="Kind" Text="application/pdf" Grid.Row="0" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
71 |
<TextBlock x:Name="Size" Text="345 KB (345,332 bytes)" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
72 |
<TextBlock x:Name="Where" Text="pithos/somefile.pdf" Grid.Row="2" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
73 |
<TextBlock x:Name="Modified" Text="28/10/2011 11:34 AM" Grid.Row="3" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
74 |
<TextBlock x:Name="ModifiedBy" Text="SomeUser" Grid.Row="4" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
75 |
<TextBlock x:Name="Version" Text="2345456" Grid.Row="5" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/> |
76 |
</Grid> |
77 |
</GroupBox> |
78 |
<GroupBox Header="Metadata" Grid.Row="2" > |
79 |
<ListView x:Name="GeneralProperties"> |
80 |
<ListView.View> |
81 |
<GridView> |
82 |
<GridViewColumn > |
83 |
<GridViewColumn.CellTemplate> |
84 |
<DataTemplate> |
85 |
<Button Content="-" Width="20"/> |
86 |
</DataTemplate> |
87 |
</GridViewColumn.CellTemplate> |
88 |
</GridViewColumn> |
89 |
<GridViewColumn Header="Name"/> |
90 |
<GridViewColumn Header="Value" /> |
91 |
</GridView> |
92 |
</ListView.View> |
93 |
<ListViewItem Content="Moo"> |
94 |
</ListViewItem> |
95 |
</ListView> |
96 |
</GroupBox> |
97 |
<StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Right"> |
98 |
<Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
99 |
<Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
100 |
<Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" /> |
101 |
</StackPanel> |
102 |
|
103 |
</Grid> |
104 |
</Window> |