|
|
@@ -0,0 +1,447 @@
|
|
|
+<Window x:Class="LauncherIcarus.MainWindow"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:local="clr-namespace:LauncherIcarus"
|
|
|
+ xmlns:local1="clr-namespace:LauncherIcarus.Daemon"
|
|
|
+ xmlns:model="clr-namespace:LauncherIcarus.Model"
|
|
|
+ MouseMove="Window_MouseMove" WindowStyle="None" ResizeMode="NoResize" ShowInTaskbar="true"
|
|
|
+ WindowStartupLocation="CenterScreen" Title="MainWindow" Height="500" Width="900">
|
|
|
+ <FrameworkElement.Resources>
|
|
|
+ <ImageBrush x:Key="close_icon" ImageSource="Data/Img/close_hover.png" Stretch="Fill"/>
|
|
|
+ <ImageBrush x:Key="minimizer_icon" ImageSource="Data/Img/minimizer_hover.png" Stretch="Fill"/>
|
|
|
+ <ImageBrush x:Key="access_icon" ImageSource="Data/Img/acessar_hover.png" Stretch="Fill"/>
|
|
|
+ <ImageBrush x:Key="start_icon" ImageSource="Data/Img/iniciar_hover.png" Stretch="Fill"/>
|
|
|
+ <ImageBrush x:Key="start_icon_locked" ImageSource="Data/Img/iniciar_bw.png" Stretch="Fill"/>
|
|
|
+ <ImageBrush x:Key="start_icon_updating" ImageSource="Data/Img/atualizando.png" Stretch="Fill"/>
|
|
|
+ <ImageBrush x:Key="start_icon_verifing" ImageSource="Data/Img/verificando.png" Stretch="Fill"/>
|
|
|
+ <ImageBrush x:Key="verify_icon" ImageSource="Data/Img/verificar_hover.png" Stretch="Fill"/>
|
|
|
+ <Style x:Key="FocusVisual">
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate>
|
|
|
+ <Rectangle Margin="2" SnapsToDevicePixels="true"
|
|
|
+ Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1"
|
|
|
+ StrokeDashArray="1 2"/>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
|
|
|
+ <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
|
|
|
+ <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
|
|
|
+ <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
|
|
|
+ <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
|
|
|
+ <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
|
|
|
+ <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
|
|
|
+ <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
|
|
|
+ <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
|
|
|
+ <Style x:Key="closeButtonStyle" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="FrameworkElement.FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
|
+ <Setter Property="Control.Background" Value="{StaticResource Button.Static.Background}"/>
|
|
|
+ <Setter Property="Control.BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
|
+ <Setter Property="Control.Foreground"
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
|
+ <Setter Property="Control.BorderThickness" Value="1"/>
|
|
|
+ <Setter Property="Control.HorizontalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.VerticalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.Padding" Value="1"/>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Border x:Name="border" BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Control.BorderThickness}"
|
|
|
+ Background="{TemplateBinding Control.Background}" SnapsToDevicePixels="true">
|
|
|
+ <ContentPresenter x:Name="contentPresenter" Focusable="false"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="true"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="Button.IsDefaulted" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
|
|
|
+ Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsMouseOver" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource close_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.MouseOver.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="ButtonBase.IsPressed" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource close_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Pressed.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="false">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Background}"
|
|
|
+ Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Border}" Property="Border.BorderBrush"/>
|
|
|
+ <Setter TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"
|
|
|
+ Property="TextElement.Foreground"/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="minimizerButtonStyle" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="FrameworkElement.FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
|
+ <Setter Property="Control.Background" Value="{StaticResource Button.Static.Background}"/>
|
|
|
+ <Setter Property="Control.BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
|
+ <Setter Property="Control.Foreground"
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
|
+ <Setter Property="Control.BorderThickness" Value="1"/>
|
|
|
+ <Setter Property="Control.HorizontalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.VerticalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.Padding" Value="1"/>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Border x:Name="border" BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Control.BorderThickness}"
|
|
|
+ Background="{TemplateBinding Control.Background}" SnapsToDevicePixels="true">
|
|
|
+ <ContentPresenter x:Name="contentPresenter" Focusable="false"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="true"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="Button.IsDefaulted" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
|
|
|
+ Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsMouseOver" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource minimizer_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.MouseOver.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="ButtonBase.IsPressed" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource minimizer_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Pressed.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="false">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Background}"
|
|
|
+ Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Border}" Property="Border.BorderBrush"/>
|
|
|
+ <Setter TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"
|
|
|
+ Property="TextElement.Foreground"/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="accessButtonStyle" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="FrameworkElement.FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
|
+ <Setter Property="Control.Background" Value="{StaticResource Button.Static.Background}"/>
|
|
|
+ <Setter Property="Control.BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
|
+ <Setter Property="Control.Foreground"
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
|
+ <Setter Property="Control.BorderThickness" Value="1"/>
|
|
|
+ <Setter Property="Control.HorizontalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.VerticalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.Padding" Value="1"/>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Border x:Name="border" BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Control.BorderThickness}"
|
|
|
+ Background="{TemplateBinding Control.Background}" SnapsToDevicePixels="true">
|
|
|
+ <ContentPresenter x:Name="contentPresenter" Focusable="false"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="true"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="Button.IsDefaulted" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
|
|
|
+ Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsMouseOver" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource access_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.MouseOver.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="ButtonBase.IsPressed" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource access_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Pressed.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="false">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Background}"
|
|
|
+ Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Border}" Property="Border.BorderBrush"/>
|
|
|
+ <Setter TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"
|
|
|
+ Property="TextElement.Foreground"/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="startButtonStyle" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="FrameworkElement.FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
|
+ <Setter Property="Control.Background" Value="{StaticResource Button.Static.Background}"/>
|
|
|
+ <Setter Property="Control.BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
|
+ <Setter Property="Control.Foreground"
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
|
+ <Setter Property="Control.BorderThickness" Value="1"/>
|
|
|
+ <Setter Property="Control.HorizontalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.VerticalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.Padding" Value="1"/>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Border x:Name="border" BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Control.BorderThickness}"
|
|
|
+ Background="{TemplateBinding Control.Background}" SnapsToDevicePixels="true">
|
|
|
+ <ContentPresenter x:Name="contentPresenter" Focusable="false"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="true"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <DataTrigger Value="False" Binding="{Binding Path=IsLogged}">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource start_icon_locked}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <MultiDataTrigger>
|
|
|
+ <MultiDataTrigger.Conditions>
|
|
|
+ <Condition Binding="{Binding Path=IsLogged}" Value="true"/>
|
|
|
+ <Condition Binding="{Binding Path=IsUpdating}" Value="true"/>
|
|
|
+ </MultiDataTrigger.Conditions>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource start_icon_updating}" Property="Border.Background"/>
|
|
|
+ </MultiDataTrigger>
|
|
|
+ <MultiDataTrigger>
|
|
|
+ <MultiDataTrigger.Conditions>
|
|
|
+ <Condition Binding="{Binding Path=IsLogged}" Value="true"/>
|
|
|
+ <Condition Binding="{Binding Path=IsChecking}" Value="true"/>
|
|
|
+ </MultiDataTrigger.Conditions>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource start_icon_verifing}" Property="Border.Background"/>
|
|
|
+ </MultiDataTrigger>
|
|
|
+ <MultiDataTrigger>
|
|
|
+ <MultiDataTrigger.Conditions>
|
|
|
+ <Condition Binding="{Binding Path=IsLogged}" Value="true"/>
|
|
|
+ <Condition Binding="{Binding Path=IsUpdating}" Value="false"/>
|
|
|
+ <Condition Binding="{Binding Path=IsChecking}" Value="false"/>
|
|
|
+ <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsMouseOver}" Value="True"/>
|
|
|
+ </MultiDataTrigger.Conditions>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource start_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.MouseOver.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </MultiDataTrigger>
|
|
|
+ <MultiDataTrigger>
|
|
|
+ <MultiDataTrigger.Conditions>
|
|
|
+ <Condition Binding="{Binding Path=IsLogged}" Value="true"/>
|
|
|
+ <Condition Binding="{Binding Path=IsUpdating}" Value="false"/>
|
|
|
+ <Condition Binding="{Binding Path=IsChecking}" Value="false"/>
|
|
|
+ <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsPressed}" Value="True"/>
|
|
|
+ </MultiDataTrigger.Conditions>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource start_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Pressed.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </MultiDataTrigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="verifyButtonStyle" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="FrameworkElement.FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
|
+ <Setter Property="Control.Background" Value="{StaticResource Button.Static.Background}"/>
|
|
|
+ <Setter Property="Control.BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
|
+ <Setter Property="Control.Foreground"
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
|
+ <Setter Property="Control.BorderThickness" Value="1"/>
|
|
|
+ <Setter Property="Control.HorizontalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.VerticalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="Control.Padding" Value="1"/>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Border x:Name="border" BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Control.BorderThickness}"
|
|
|
+ Background="{TemplateBinding Control.Background}" SnapsToDevicePixels="true">
|
|
|
+ <ContentPresenter x:Name="contentPresenter" Focusable="false"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="true"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="Button.IsDefaulted" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
|
|
|
+ Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <MultiDataTrigger>
|
|
|
+ <MultiDataTrigger.Conditions>
|
|
|
+ <Condition Binding="{Binding Path=IsLogged}" Value="true"/>
|
|
|
+ <Condition Binding="{Binding Path=IsUpdating}" Value="false"/>
|
|
|
+ <Condition Binding="{Binding Path=IsChecking}" Value="false"/>
|
|
|
+ <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsMouseOver}" Value="True"/>
|
|
|
+ </MultiDataTrigger.Conditions>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource verify_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.MouseOver.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </MultiDataTrigger>
|
|
|
+ <Trigger Property="ButtonBase.IsPressed" Value="true">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource verify_icon}" Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Pressed.Border}" Property="Border.BorderBrush"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="false">
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Background}"
|
|
|
+ Property="Border.Background"/>
|
|
|
+ <Setter TargetName="border" Value="{StaticResource Button.Disabled.Border}" Property="Border.BorderBrush"/>
|
|
|
+ <Setter TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"
|
|
|
+ Property="TextElement.Foreground"/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="{x:Type TextBox}">
|
|
|
+ <Setter Property="Control.Padding" Value="5"/>
|
|
|
+ <Setter Property="FrameworkElement.Margin" Value="5"/>
|
|
|
+ <Setter Property="Control.FontSize" Value="15"/>
|
|
|
+ <Setter Property="FrameworkElement.MinHeight" Value="20"/>
|
|
|
+ <Setter Property="Control.Foreground" Value="White"/>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type TextBox}">
|
|
|
+ <Border x:Name="border" CornerRadius="2" BorderBrush="#000" BorderThickness="1" Background="Transparent">
|
|
|
+ <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden"
|
|
|
+ VerticalScrollBarVisibility="Hidden"/>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="UIElement.IsMouseOver" Value="true">
|
|
|
+ <Setter TargetName="border" Property="Border.BorderBrush" Value="#909090"/>
|
|
|
+ <Setter Property="Control.Foreground" Value="White"/>
|
|
|
+ <Setter Property="Control.FontWeight" Value="Bold"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsFocused" Value="true">
|
|
|
+ <Setter Property="Control.Foreground" Value="White"/>
|
|
|
+ <Setter TargetName="border" Property="Border.BorderBrush" Value="White"/>
|
|
|
+ <Setter Property="TextBox.Text" Value=""/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="{x:Type PasswordBox}">
|
|
|
+ <Setter Property="Control.Padding" Value="5"/>
|
|
|
+ <Setter Property="FrameworkElement.Margin" Value="5"/>
|
|
|
+ <Setter Property="Control.FontSize" Value="15"/>
|
|
|
+ <Setter Property="FrameworkElement.MinHeight" Value="20"/>
|
|
|
+ <Setter Property="Control.Foreground" Value="White"/>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type PasswordBox}">
|
|
|
+ <Border x:Name="border" CornerRadius="2" BorderBrush="#000" BorderThickness="1" Background="Transparent">
|
|
|
+ <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden"
|
|
|
+ VerticalScrollBarVisibility="Hidden"/>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="UIElement.IsMouseOver" Value="true">
|
|
|
+ <Setter TargetName="border" Property="Border.BorderBrush" Value="#909090"/>
|
|
|
+ <Setter Property="Control.Foreground" Value="White"/>
|
|
|
+ <Setter Property="Control.FontWeight" Value="Bold"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsFocused" Value="true">
|
|
|
+ <Setter Property="Control.Foreground" Value="White"/>
|
|
|
+ <Setter TargetName="border" Property="Border.BorderBrush" Value="White"/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ </FrameworkElement.Resources>
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="55*"/>
|
|
|
+ <ColumnDefinition Width="268*"/>
|
|
|
+ <ColumnDefinition Width="422*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Panel.Background>
|
|
|
+ <ImageBrush ImageSource="Data/Img/back_img.png" Stretch="Fill"/>
|
|
|
+ </Panel.Background>
|
|
|
+ <Button Click="buttonClose_Click" x:Name="buttonClose" Panel.ZIndex="1000" BorderThickness="0"
|
|
|
+ Style="{DynamicResource closeButtonStyle}" Grid.Column="2" Margin="470,6,13,467"
|
|
|
+ RenderTransformOrigin="0.486,0.139">
|
|
|
+ <Control.Background>
|
|
|
+ <ImageBrush ImageSource="Data/Img/close.png" Stretch="Fill"/>
|
|
|
+ </Control.Background>
|
|
|
+ </Button>
|
|
|
+ <Button Click="buttonMinimizer_Click" x:Name="buttonMinimizer" Panel.ZIndex="1000" BorderThickness="0"
|
|
|
+ Style="{DynamicResource minimizerButtonStyle}" Grid.Column="2" Margin="435,6,48,467">
|
|
|
+ <Control.Background>
|
|
|
+ <ImageBrush ImageSource="Data/Img/minimizer.png" Stretch="Fill"/>
|
|
|
+ </Control.Background>
|
|
|
+ </Button>
|
|
|
+ <Button Click="buttonAccess_Click" x:Name="buttonAccess" Panel.ZIndex="1000" BorderThickness="0"
|
|
|
+ Style="{DynamicResource accessButtonStyle}" Grid.Column="1" Margin="177,233,476,223"
|
|
|
+ Grid.ColumnSpan="2">
|
|
|
+ <Control.Background>
|
|
|
+ <ImageBrush ImageSource="Data/Img/acessar.png" Stretch="Fill"/>
|
|
|
+ </Control.Background>
|
|
|
+ </Button>
|
|
|
+ <Button Click="buttonStart_Click" x:Name="buttonStart" Panel.ZIndex="1000" BorderThickness="0"
|
|
|
+ Style="{DynamicResource startButtonStyle}" Grid.Column="2" Margin="335,431,15,16">
|
|
|
+ <Control.Background>
|
|
|
+ <ImageBrush ImageSource="Data/Img/iniciar.png" Stretch="Fill"/>
|
|
|
+ </Control.Background>
|
|
|
+ </Button>
|
|
|
+ <Button Click="buttonVerify_Click" x:Name="buttonVerify" Panel.ZIndex="1000" BorderThickness="0"
|
|
|
+ Style="{DynamicResource verifyButtonStyle}" Grid.Column="2" Margin="202,437,220,39">
|
|
|
+ <Control.Background>
|
|
|
+ <ImageBrush ImageSource="Data/Img/verificar.png" Stretch="Fill"/>
|
|
|
+ </Control.Background>
|
|
|
+ </Button>
|
|
|
+ <Image Name="inputUsername" Source="Data/Img/input.png" Stretch="Fill" Grid.Column="1"
|
|
|
+ Margin="32,111,476,350" Grid.ColumnSpan="2"/>
|
|
|
+ <Image Name="inputPassword" Source="Data/Img/input.png" Stretch="Fill" Grid.Column="1"
|
|
|
+ Margin="32,179,476,281" Grid.ColumnSpan="2"/>
|
|
|
+ <TextBox x:Name="textUsername" Background="Transparent" BorderBrush="Transparent" TextAlignment="Center"
|
|
|
+ Text="" local1:SelectAllFocusBehavior.Enable="true" HorizontalAlignment="Left" Height="39"
|
|
|
+ Margin="32,111,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Padding="5" Width="326"
|
|
|
+ Grid.ColumnSpan="2" Grid.Column="1"/>
|
|
|
+ <PasswordBox x:Name="textPassword" PasswordChar="*" HorizontalContentAlignment="Center" Height="39"
|
|
|
+ local1:SelectAllFocusBehavior.Enable="true" MaxLength="50" Grid.Column="1" Margin="32,179,476,282"
|
|
|
+ Grid.ColumnSpan="2"/>
|
|
|
+ <Image x:Name="progressBar" Stretch="Fill" Source="Data/Img/update_bar.png" HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Top" Height="6" Width="656" Grid.ColumnSpan="3" Margin="24,478,0,0"/>
|
|
|
+ <Label x:Name="lblWellcome" Content="Bem vindo Quenio" Grid.Column="1" HorizontalAlignment="Left"
|
|
|
+ Margin="10,6,0,0" VerticalAlignment="Top" Foreground="#FFF3EEEE" FontWeight="Bold"/>
|
|
|
+ <Label x:Name="lblTotalQtd" Content="17000MB" Grid.Column="1" HorizontalAlignment="Left"
|
|
|
+ Margin="32,437,0,0" VerticalAlignment="Top" Foreground="#FFF3EEEE"/>
|
|
|
+ <Label x:Name="label_Copy1" Content="Tamanho total:" HorizontalAlignment="Left" Margin="17,437,0,0"
|
|
|
+ VerticalAlignment="Top" Foreground="#FF999999" Grid.ColumnSpan="2"/>
|
|
|
+ <Label x:Name="lblAtualQtd" Content="17000MB" Grid.Column="1" HorizontalAlignment="Left"
|
|
|
+ Margin="254,437,0,0" VerticalAlignment="Top" Foreground="#FFF3EEEE"/>
|
|
|
+ <Label x:Name="label_Copy3" Content="Tamanho do arquivo atual:" HorizontalAlignment="Left"
|
|
|
+ Margin="111,437,0,0" VerticalAlignment="Top" Foreground="#FF999999" Grid.Column="1"/>
|
|
|
+ <Label x:Name="label_Copy4" Content="Tamanho atualizado:" HorizontalAlignment="Left" Margin="10,437,0,0"
|
|
|
+ VerticalAlignment="Top" Foreground="#FF999999" Grid.Column="2"/>
|
|
|
+ <Label x:Name="lblTotalAtualizadoQtd" Content="17000MB" Grid.Column="2" HorizontalAlignment="Left"
|
|
|
+ Margin="121,437,0,0" VerticalAlignment="Top" Foreground="#FFF3EEEE"/>
|
|
|
+ <Label x:Name="lblMsgStatus" Foreground="Wheat" HorizontalAlignment="Center"
|
|
|
+ HorizontalContentAlignment="Center" Margin="32,324,473,0" VerticalAlignment="Top" Width="329"
|
|
|
+ Grid.ColumnSpan="2" Grid.Column="1"/>
|
|
|
+ <Label x:Name="lblDownloadSpeedQtd" Content="17000MB" Grid.Column="1" HorizontalAlignment="Left"
|
|
|
+ Margin="82,478,0,-4" VerticalAlignment="Top" Foreground="#FFF3EEEE"/>
|
|
|
+ <Label x:Name="lblDownloadSpeed" Content="Fazendo o download á:" HorizontalAlignment="Left"
|
|
|
+ Margin="17,478,0,-4" VerticalAlignment="Top" Foreground="#FF999999" Grid.ColumnSpan="2"/>
|
|
|
+ <Label x:Name="lblFileDownloadingName" Content="----" Grid.Column="2" HorizontalAlignment="Left"
|
|
|
+ Margin="94,478,0,-4" VerticalAlignment="Top" Foreground="#FFF3EEEE"/>
|
|
|
+ <WebBrowser x:Name="wbSlide" HorizontalAlignment="Left" Height="230" Margin="17,82,0,0" VerticalAlignment="Top"
|
|
|
+ Width="467" Grid.ColumnSpan="3"/>
|
|
|
+ <Label x:Name="lblFileDownloading" Content="Fazendo o download do arquivo:" HorizontalAlignment="Left"
|
|
|
+ Margin="234,478,0,-4" VerticalAlignment="Top" Foreground="#FF999999" Grid.ColumnSpan="2"
|
|
|
+ Grid.Column="1"/>
|
|
|
+ <ComboBox DropDownClosed="cmbLanguage_DropDownClosed" x:Name="cmbLanguage" Grid.Column="2"
|
|
|
+ HorizontalAlignment="Left" Margin="377,48,0,0" VerticalAlignment="Top" Width="120"
|
|
|
+ Text="{Binding Path=Lang}">
|
|
|
+ <ComboBoxItem Content="PT-BR" IsSelected="true"/>
|
|
|
+ <ComboBoxItem Content="ENG"/>
|
|
|
+ </ComboBox>
|
|
|
+ </Grid>
|
|
|
+</Window>
|