UI/FormControlManagePrivacyStatus.xaml
author Thomas
Tue, 03 Apr 2018 10:17:13 +0200
branchOUT-369
changeset 2100 91f72cbed562
parent 1548 f45d44448548
permissions -rw-r--r--
Close branch OUT-369
Dean@1069
     1
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Dean@1069
     2
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Dean@1069
     3
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Dean@1069
     4
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Dean@1069
     5
             xmlns:core="clr-namespace:System;assembly=mscorlib"
Dean@1069
     6
             xmlns:local="clr-namespace:pEp.UI"
Dean@1069
     7
             x:Class="pEp.UI.FormControlManagePrivacyStatus"
Dean@1069
     8
             x:ClassModifier="internal"
Dean@1069
     9
             mc:Ignorable="d"
Dean@1069
    10
             Height="300"
Dean@1069
    11
             Width="450">
Dean@1069
    12
    <UserControl.Resources>
Dean@1086
    13
        <ResourceDictionary>
Dean@1086
    14
            <ResourceDictionary.MergedDictionaries>
Dean@1086
    15
                <ResourceDictionary Source="pack://application:,,,/pEp;component/Resources/Dictionary.xaml" />
Dean@1086
    16
            </ResourceDictionary.MergedDictionaries>
Dean@1086
    17
        </ResourceDictionary>
Dean@1069
    18
    </UserControl.Resources>
Dean@1069
    19
    <Grid Margin="5">
Dean@1069
    20
        <Grid.ColumnDefinitions>
Dean@1069
    21
            <ColumnDefinition Width="*" />
Dean@1069
    22
            <ColumnDefinition Width="*" />
Dean@1069
    23
        </Grid.ColumnDefinitions>
Dean@1069
    24
        <Grid.RowDefinitions>
Dean@1069
    25
            <RowDefinition Height="Auto" />
Dean@1070
    26
            <RowDefinition Height="Auto"
Dean@1072
    27
                           MinHeight="55" />
Dean@1069
    28
            <RowDefinition Height="*" />
Dean@1069
    29
            <RowDefinition Height="Auto" />
Dean@1069
    30
        </Grid.RowDefinitions>
Dean@1069
    31
Dean@1069
    32
        <!-- Rating section -->
Thomas@1548
    33
        <Grid Grid.Column="0"
Thomas@1548
    34
              Grid.ColumnSpan="2"
Thomas@1548
    35
              Grid.Row="0">
Thomas@1548
    36
            <Grid.Margin>
Thomas@1548
    37
                <Thickness Bottom="{StaticResource Spacing}"
Thomas@1548
    38
                           Left="0"
Thomas@1548
    39
                           Right="0"
Thomas@1548
    40
                           Top="0" />
Thomas@1548
    41
            </Grid.Margin>
Thomas@1548
    42
            <local:PrivacyView HorizontalAlignment="Stretch"
Thomas@1548
    43
                               VerticalAlignment="Center"
Thomas@1548
    44
                               Mode="Indicator"
Thomas@1548
    45
                               Rating="{Binding Rating}" />
Thomas@1548
    46
        </Grid>
Dean@1069
    47
Dean@1069
    48
        <!-- Explanation/Suggestion section -->
Dean@1069
    49
        <StackPanel Grid.Column="0"
Dean@1069
    50
                    Grid.Row="1"
Dean@1069
    51
                    Margin="0,0,5,0">
Dean@1072
    52
            <TextBlock Text="{Binding Path=ExplanationTitle, FallbackValue=Explanation}"
Dean@1069
    53
                       FontWeight="Bold" />
Dean@1069
    54
            <Separator />
Dean@1072
    55
            <TextBlock Text="{Binding Path=Explanation, FallbackValue=&lt;explanation&gt;}"
Dean@1069
    56
                       TextWrapping="Wrap" />
Dean@1069
    57
        </StackPanel>
Dean@1069
    58
        <StackPanel Grid.Column="1"
Dean@1069
    59
                    Grid.Row="1"
Dean@1069
    60
                    Margin="5,0,0,0">
Dean@1072
    61
            <TextBlock Text="{Binding Path=SuggestionTitle, FallbackValue=Suggestion}"
Dean@1069
    62
                       FontWeight="Bold" />
Dean@1069
    63
            <Separator />
Dean@1072
    64
            <TextBlock Text="{Binding Path=Suggestion, FallbackValue=&lt;suggestion&gt;}"
Dean@1069
    65
                       TextWrapping="Wrap" />
Dean@1069
    66
        </StackPanel>
Dean@1069
    67
Dean@1069
    68
        <!-- Identities List -->
Dean@1069
    69
        <Grid Grid.Column="0"
Dean@1069
    70
              Grid.ColumnSpan="2"
Dean@1069
    71
              Grid.Row="2">
Dean@1069
    72
            <Grid.Margin>
Dean@1069
    73
                <Thickness Bottom="0"
Dean@1069
    74
                           Left="0"
Dean@1069
    75
                           Right="0"
Dean@1069
    76
                           Top="{StaticResource Spacing}" />
Dean@1069
    77
            </Grid.Margin>
Dean@1069
    78
            <Grid.RowDefinitions>
Dean@1069
    79
                <RowDefinition Height="Auto" />
Dean@1069
    80
                <RowDefinition Height="*" />
Dean@1069
    81
            </Grid.RowDefinitions>
Dean@1072
    82
            <TextBlock Grid.Row="0"
Dean@1072
    83
                       Text="{Binding IdentitiesTitle, FallbackValue=&lt;identities&gt;}"
Dean@1070
    84
                       FontWeight="Bold"
Dean@1072
    85
                       Margin="0,0,0,2" />
Dean@1069
    86
            <local:SelectionBox x:Name="SelectionBoxIdentities"
Dean@1069
    87
                                Grid.Row="1"
Dean@1069
    88
                                HorizontalAlignment="Stretch"
Dean@1072
    89
                                VerticalAlignment="Stretch"
Dean@1072
    90
                                Items="{Binding Identities}"
Dean@1072
    91
                                SelectedIndex="{Binding SelectedIdentityIndex, Mode=TwoWay}" />
Dean@1069
    92
        </Grid>
Dean@1069
    93
Dean@1069
    94
        <!-- Button/Footer section -->
Dean@1069
    95
        <Grid Grid.Column="0"
Dean@1069
    96
              Grid.ColumnSpan="2"
Dean@1069
    97
              Grid.Row="3">
Dean@1069
    98
            <Grid.Margin>
Dean@1069
    99
                <Thickness Bottom="0"
Dean@1069
   100
                           Left="0"
Dean@1069
   101
                           Right="0"
Dean@1069
   102
                           Top="{StaticResource Spacing}" />
Dean@1069
   103
            </Grid.Margin>
Dean@1069
   104
            <Grid.ColumnDefinitions>
Dean@1069
   105
                <ColumnDefinition Width="*" />
Dean@1069
   106
                <ColumnDefinition Width="Auto" />
Dean@1069
   107
            </Grid.ColumnDefinitions>
Dean@1069
   108
            <TextBlock x:Name="TextBlockTrustwords"
Dean@1069
   109
                       Grid.Column="0"
Dean@1072
   110
                       Text="{Binding Path=Trustwords, FallbackValue=&lt;trustwords&gt;}"
Dean@1069
   111
                       TextWrapping="Wrap"
Dean@1069
   112
                       HorizontalAlignment="Stretch"
Dean@1069
   113
                       VerticalAlignment="Stretch">
Dean@1069
   114
                <TextBlock.Margin>
Dean@1069
   115
                    <Thickness Bottom="0"
Dean@1069
   116
                               Left="0"
Dean@1069
   117
                               Right="{StaticResource Spacing}"
Dean@1069
   118
                               Top="0" />
Dean@1069
   119
                </TextBlock.Margin>
Dean@1069
   120
            </TextBlock>
Dean@1072
   121
            <Button Name="ButtonClose"
Dean@1069
   122
                    Grid.Column="1"
Dean@1073
   123
                    Content="{Binding Path=CloseText, FallbackValue=Close}"
Dean@1069
   124
                    MinHeight="28"
Dean@1069
   125
                    MinWidth="110"
Dean@1069
   126
                    VerticalAlignment="Center"
Dean@1072
   127
                    HorizontalAlignment="Right"
Dean@1086
   128
                    Padding="{StaticResource ButtonPaddingStandard}"
Thomas@1548
   129
                    Click="ButtonClose_Click" IsCancel="True" IsDefault="True" />
Dean@1069
   130
        </Grid>
Dean@1069
   131
    </Grid>
Dean@1069
   132
</UserControl>