aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/ScreenLockView.xaml
blob: 7e5ca75076a35b63e5e8730c0f0e36f2fba94021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<UserControl x:Class="Tango.PPC.UI.Dialogs.ScreenLockView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
              xmlns:local="clr-namespace:Tango.PPC.UI.Dialogs"
             xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Background="{StaticResource TangoPrimaryBackgroundBrush}"  d:DesignHeight="555" d:DesignWidth="560" Width="600" Height="250" d:DataContext="{d:DesignInstance Type=local:ScreenLockViewVM, IsDesignTimeCreatable=False}">

    <UserControl.InputBindings>
        <KeyBinding Key="Return" Command="{Binding OKCommand}"></KeyBinding>
    </UserControl.InputBindings>
    <Grid Margin="10">
        <DockPanel>
            <StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal">
                <touch:TouchButton Command="{Binding CloseCommand}" Style="{StaticResource TangoMessageBoxButton}" DockPanel.Dock="Right" Width="120" Height="50" VerticalAlignment="Bottom">CANCEL</touch:TouchButton>
                <touch:TouchButton Command="{Binding OKCommand}" Style="{StaticResource TangoMessageBoxButton}" DockPanel.Dock="Right" Width="120" Height="50" VerticalAlignment="Bottom">OK</touch:TouchButton>
            </StackPanel>
            <DockPanel>
                <touch:TouchIcon Foreground="{StaticResource TangoErrorBrush}" Icon="Lock" VerticalAlignment="Top" Height="65"></touch:TouchIcon>
                <StackPanel Margin="20 0 0 0">
                    <TextBlock FontSize="{StaticResource TangoHeaderFontSize}">Screen Locked</TextBlock>
                    <TextBlock Margin="0 10 0 0" TextWrapping="Wrap">Please enter the password to unlock the screen.</TextBlock>
                    <touch:TouchTextBox x:Name="txtPassword" Margin="0 30 40 0" IsPassword="True" KeyboardAction="Go" Text="{Binding Password,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
                </StackPanel>
            </DockPanel>
        </DockPanel>
    </Grid>
</UserControl>
class="n">DoubleArray init_value = DOUBLE_ARRAY__INIT; *message = init_value; } size_t double_array__get_packed_size (const DoubleArray *message) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t double_array__pack (const DoubleArray *message, uint8_t *out) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t double_array__pack_to_buffer (const DoubleArray *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } DoubleArray * double_array__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (DoubleArray *) protobuf_c_message_unpack (&double_array__descriptor, allocator, len, data); } void double_array__free_unpacked (DoubleArray *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &double_array__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor double_array__field_descriptors[1] = { { "Data", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DoubleArray, n_data), offsetof(DoubleArray, data), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned double_array__field_indices_by_name[] = { 0, /* field[0] = Data */ }; static const ProtobufCIntRange double_array__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }; const ProtobufCMessageDescriptor double_array__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "DoubleArray", "DoubleArray", "DoubleArray", "", sizeof(DoubleArray), 1, double_array__field_descriptors, double_array__field_indices_by_name, 1, double_array__number_ranges, (ProtobufCMessageInit) double_array__init, NULL,NULL,NULL /* reserved[123] */ };