aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingView.xaml
blob: 41017f6297e37b658c8e1a2b875b32d331c4306f (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<UserControl x:Class="Tango.PPC.UI.Views.RestartingView"
             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:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:vm="clr-namespace:Tango.PPC.UI.ViewModels"
             xmlns:fx="clr-namespace:Tango.SharedUI.Effects;assembly=Tango.SharedUI"
             xmlns:gif="clr-namespace:Tango.AnimatedGif;assembly=Tango.AnimatedGif"
			 xmlns:global="clr-namespace:Tango.PPC.UI"
             xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:local="clr-namespace:Tango.PPC.UI.Views"
             mc:Ignorable="d" 
             d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:RestartingViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.RestartingViewVM}">
    <Grid>
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
            <Grid Margin="0 100 0 0">
                <Image Source="/Images/machine.png" Stretch="Uniform" Width="250" RenderOptions.BitmapScalingMode="Fant"></Image>
                <touch:TouchBusyIndicator Foreground="{StaticResource TangoGrayBrush}" Width="350" Height="350" IsIndeterminate="{Binding IsVisible}" />
            </Grid>

            <TextBlock Margin="0 40 0 0" HorizontalAlignment="Center" FontSize="{StaticResource TangoTitleFontSize}" Foreground="{StaticResource TangoGrayTextBrush}">
                <Run>v</Run><Run Text="{Binding ApplicationManager.Version,Mode=OneWay}"></Run>
            </TextBlock>
            <TextBlock FontSize="{StaticResource TangoHeaderFontSize}" Margin="0 100 0 0" HorizontalAlignment="Center" Width="170">
                <TextBlock.Style>
                    <Style TargetType="TextBlock">
                        <Setter Property="Text" Value="Restarting"></Setter>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding IsVisible}" Value="True">
                                <DataTrigger.EnterActions>
                                    <BeginStoryboard x:Name="storyRes">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Text" RepeatBehavior="5x">
                                                <DiscreteObjectKeyFrame KeyTime="00:00:0.2" Value="Restarting." />
                                                <DiscreteObjectKeyFrame KeyTime="00:00:0.6" Value="Restarting.." />
                                                <DiscreteObjectKeyFrame KeyTime="00:00:0.9" Value="Restarting..." />
                                                <DiscreteObjectKeyFrame KeyTime="00:00:1.4" Value="Restarting..." />
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </BeginStoryboard>
                                </DataTrigger.EnterActions>
                                <DataTrigger.ExitActions>
                                    <RemoveStoryboard BeginStoryboardName="storyRes" />
                                </DataTrigger.ExitActions>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </TextBlock.Style>
            </TextBlock>
        </StackPanel>
    </Grid>
</UserControl>
="cpf"><google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/generated_enum_reflection.h> // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { namespace Printing { } // namespace Printing } // namespace PMR } // namespace Tango namespace Tango { namespace PMR { namespace Printing { namespace protobuf_DispenserStepDivision_2eproto { // Internal implementation detail -- do not call these. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[]; static const ::google::protobuf::uint32 offsets[]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static void InitDefaultsImpl(); }; void AddDescriptors(); void InitDefaults(); } // namespace protobuf_DispenserStepDivision_2eproto enum DispenserStepDivision { Auto = 0, D1 = 1, D2 = 2, D4 = 4, D8 = 8, D16 = 16, D32 = 32, D64 = 64, D128 = 128, DispenserStepDivision_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, DispenserStepDivision_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool DispenserStepDivision_IsValid(int value); const DispenserStepDivision DispenserStepDivision_MIN = Auto; const DispenserStepDivision DispenserStepDivision_MAX = D128; const int DispenserStepDivision_ARRAYSIZE = DispenserStepDivision_MAX + 1; const ::google::protobuf::EnumDescriptor* DispenserStepDivision_descriptor(); inline const ::std::string& DispenserStepDivision_Name(DispenserStepDivision value) { return ::google::protobuf::internal::NameOfEnum( DispenserStepDivision_descriptor(), value); } inline bool DispenserStepDivision_Parse( const ::std::string& name, DispenserStepDivision* value) { return ::google::protobuf::internal::ParseNamedEnum<DispenserStepDivision>( DispenserStepDivision_descriptor(), name, value); } // =================================================================== // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Printing } // namespace PMR } // namespace Tango namespace google { namespace protobuf { template <> struct is_proto_enum< ::Tango::PMR::Printing::DispenserStepDivision> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Tango::PMR::Printing::DispenserStepDivision>() { return ::Tango::PMR::Printing::DispenserStepDivision_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_DispenserStepDivision_2eproto__INCLUDED