Statistics
| Branch: | Revision:

root / trunk / Pithos.Client.WPF / FileProperties / ContainerPropertiesView.xaml @ 20e9a378

History | View | Annotate | Download (5.5 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
        Title="ContainerPropertiesView" Height="500" Width="300"
5
        Icon="/Pithos.Client.WPF;component/Images/PithosTaskbar.png"
6
        Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}">
7
    <Window.Resources>
8
        <ResourceDictionary>
9
            <ResourceDictionary.MergedDictionaries>
10
                <ResourceDictionary Source="..\PithosStyles.xaml" />
11
            </ResourceDictionary.MergedDictionaries>
12
        </ResourceDictionary>
13
    </Window.Resources>
14
    <Grid>
15
        <Grid.RowDefinitions>
16
            <RowDefinition Height="Auto"/>
17
            <RowDefinition Height="Auto"/>
18
            <RowDefinition Height="*"/>
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="/Pithos.Client.WPF;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
        <GroupBox Header="General" Grid.Row="1" Margin="5">
33
            <Grid>
34
                <Grid.Resources>
35
                    <Style x:Key="NameColumnStyle" TargetType="TextBlock">
36
                        <Setter Property="HorizontalAlignment" Value="Right"/>
37
                        <Setter Property="Margin" Value="5,2"/>
38
                    </Style>
39
                    <Style x:Key="ValueColumnStyle" TargetType="TextBlock">
40
                        <Setter Property="HorizontalAlignment" Value="Left"/>
41
                        <Setter Property="Margin" Value="5,2"/>
42
                    </Style>
43
                </Grid.Resources>
44
                <Grid.ColumnDefinitions>
45
                    <ColumnDefinition Width="Auto" />
46
                    <ColumnDefinition Width="*"/>
47
                </Grid.ColumnDefinitions>
48
                <Grid.RowDefinitions>
49
                    <RowDefinition/>
50
                    <RowDefinition/>
51
                    <RowDefinition/>
52
                    <RowDefinition/>
53
                    <RowDefinition/>
54
                    <RowDefinition/>
55
                </Grid.RowDefinitions>
56
                <TextBlock Text="Count :" Grid.Row="0" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
57
                <TextBlock Text="Size :" Grid.Row="1" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
58
                <TextBlock Text="Modified :" Grid.Row="3" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
59
                <TextBlock Text="Block Size :" Grid.Row="4" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
60
                <TextBlock Text="Block Hash :" Grid.Row="5" Grid.Column="0" Style="{StaticResource ResourceKey=NameColumnStyle}"/>
61
                <TextBlock x:Name="Count" Text="123" Grid.Row="0" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
62
                <TextBlock x:Name="Size" Text="345 KB (345,332 bytes)" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
63
                <TextBlock x:Name="Modified" Text="28/10/2011 11:34 AM" Grid.Row="3" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
64
                <TextBlock x:Name="BlockSize" Text="4012354486" Grid.Row="4" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
65
                <TextBlock x:Name="BlockHash" Text="2345456" Grid.Row="5" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
66
            </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}" 
79
                    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>
86

    
87
        <StackPanel Orientation="Horizontal" Grid.Row="4" HorizontalAlignment="Right">
88
            <Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
89
            <Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
90
            <Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" />
91
        </StackPanel>
92

    
93
    </Grid>
94
</Window>