inital
This commit is contained in:
691
FasdDesktopUi/Pages/SettingsPage/M42SettingsPageView.xaml
Normal file
691
FasdDesktopUi/Pages/SettingsPage/M42SettingsPageView.xaml
Normal file
@@ -0,0 +1,691 @@
|
||||
<settingspagebase:SettingsPageBase
|
||||
xmlns:settingspagebase="clr-namespace:FasdDesktopUi.Pages.SettingsPage"
|
||||
x:Class="FasdDesktopUi.Pages.SettingsPage.M42SettingsPageView"
|
||||
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:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
|
||||
xmlns:vc="clr-namespace:FasdDesktopUi.Basics.Converter"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
mc:Ignorable="d"
|
||||
Title="PhoneSettingsPage"
|
||||
ResizeMode="NoResize"
|
||||
WindowStyle="None"
|
||||
AllowsTransparency="True"
|
||||
Background="Transparent"
|
||||
MinHeight="50"
|
||||
MinWidth="400"
|
||||
ShowInTaskbar="False"
|
||||
Topmost="True"
|
||||
SizeToContent="WidthAndHeight"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
x:Name="M42SettingsWindows"
|
||||
Loaded="M42SettingsWindows_Loaded" Closed="M42SettingsWindows_Closed" IsVisibleChanged="M42SettingsWindows_IsVisibleChanged">
|
||||
|
||||
<WindowChrome.WindowChrome>
|
||||
<WindowChrome CaptionHeight="40" />
|
||||
</WindowChrome.WindowChrome>
|
||||
|
||||
<settingspagebase:SettingsPageBase.Resources>
|
||||
<vc:LanguageDefinitionsConverter x:Key="LanguageConverter" />
|
||||
<BooleanToVisibilityConverter x:Key="BoolToVisibility" />
|
||||
<BlurEffect x:Key="BlurEffecStyle" Radius="4" KernelType="Gaussian"/>
|
||||
<Style x:Key="BlurableBorder" TargetType="Border">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ElementName=M42SettingsWindows, Path=IsMethodBlurred}" Value="True">
|
||||
<Setter Property="Effect" Value="{StaticResource BlurEffecStyle}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="BlurMaskBoarder" TargetType="Border">
|
||||
<Setter Property="Background" Value="{DynamicResource Color.BlurBorder}"/>
|
||||
<Setter Property="Opacity" Value="0.2"/>
|
||||
<Setter Property="CornerRadius" Value="7.5"/>
|
||||
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
||||
<Setter Property="Margin" Value="-10 -5"/>
|
||||
<Setter Property="Visibility" Value="{Binding ElementName=M42SettingsWindows, Path=IsMethodBlurred, Converter={StaticResource BoolToVisibility}}"/>
|
||||
<Setter Property="Grid.RowSpan" Value="999"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="999"/>
|
||||
</Style>
|
||||
<Style x:Key="BlurMaskBoarderAuto" TargetType="Border" BasedOn="{StaticResource BlurableBorder}">
|
||||
<Setter Property="Visibility" Value="{Binding ElementName=M42SettingsWindows, Path=IsMethodAuto, Converter={StaticResource BoolToVisibility}}"/>
|
||||
</Style>
|
||||
<Style x:Key="DefaultText" TargetType="TextBlock">
|
||||
<Setter Property="FontSize"
|
||||
Value="14" />
|
||||
<Setter Property="FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Margin"
|
||||
Value="0 0 0 0" />
|
||||
</Style>
|
||||
<Style x:Key="BlurableText" TargetType="TextBlock" BasedOn="{StaticResource DefaultText}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ElementName=M42SettingsWindows, Path=IsMethodAuto}" Value="True">
|
||||
<Setter Property="Effect" Value="{StaticResource BlurEffecStyle}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="BlurableRadioButton" TargetType="RadioButton" BasedOn="{StaticResource RadioButtonStyle}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ElementName=M42SettingsWindows, Path=IsMethodAuto}" Value="True">
|
||||
<Setter Property="IsEnabled" Value="False"/>
|
||||
<Setter Property="Effect" Value="{StaticResource BlurEffecStyle}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.MenuBar.PinnedIcon.Pinned}">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorLevel=1, AncestorType=Border}, Path=IsMouseOver}"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource FontColor.Menu.Categories.Hover}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</settingspagebase:SettingsPageBase.Resources>
|
||||
|
||||
<Border
|
||||
CornerRadius="10"
|
||||
Background="{DynamicResource BackgroundColor.Menu.Categories}"
|
||||
Padding="10"
|
||||
>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.SystemTray}"
|
||||
x:Name="txtHeader"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
FontSize="18"
|
||||
Margin="15,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Calibri"
|
||||
FontWeight="Bold"
|
||||
Foreground="{DynamicResource FontColor.SlimPage.WidgetCollection.Header}"
|
||||
Grid.Row="0"
|
||||
Grid.ColumnSpan="3"
|
||||
/>
|
||||
|
||||
<ico:AdaptableIcon x:Name="CloseButton"
|
||||
Grid.Row="0"
|
||||
HorizontalAlignment="Right"
|
||||
Style="{DynamicResource SettingsPage.Close.Icon}"
|
||||
MouseLeftButtonUp="CloseButton_MouseLeftButtonUp"
|
||||
TouchDown="CloseButton_TouchDown"
|
||||
SelectedInternIcon="window_close" Grid.Column="2" Margin="335,0,0,0" />
|
||||
|
||||
<Border Grid.Row="1"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.Menu.MainCategory}"
|
||||
Margin="5,5,5,5"
|
||||
Padding="10 5"
|
||||
SizeChanged="borderLogon_SizeChanged"
|
||||
Grid.ColumnSpan="3"
|
||||
>
|
||||
<TextBlock Text="You are not currently logged in to Matrix42 WPM."
|
||||
x:Name="txtCurrentUser"
|
||||
Margin="0,0,0,0"
|
||||
FontStyle="Italic"
|
||||
FontWeight="Normal"
|
||||
Grid.Row="0"
|
||||
Grid.ColumnSpan="3"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="2"
|
||||
x:Name="borderLogonActive"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.Menu.MainCategory}"
|
||||
Margin="5,5,5,5"
|
||||
Padding="10 5"
|
||||
SizeChanged="borderLogon_SizeChanged"
|
||||
Grid.ColumnSpan="3"
|
||||
>
|
||||
<Grid Grid.IsSharedSizeScope="True">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonActive.Header}"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonActive.No}"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="8 0 0 0"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonActive.Always}"
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Margin="8 0 0 0"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonActive.Auto}"
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Margin="8 0 0 0"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<RadioButton x:Name="radioButtonLogonActiveNo"
|
||||
Style="{DynamicResource RadioButtonStyle}"
|
||||
HorizontalAlignment="Left"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="4 5" Checked="radioButtonLogonActive_Checked"
|
||||
/>
|
||||
|
||||
<RadioButton x:Name="radioButtonLogonActiveYes"
|
||||
Style="{DynamicResource RadioButtonStyle}"
|
||||
HorizontalAlignment="Left"
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Margin="4 5" Checked="radioButtonLogonActive_Checked"
|
||||
/>
|
||||
<RadioButton x:Name="radioButtonLogonActiveAuto"
|
||||
Style="{DynamicResource RadioButtonStyle}"
|
||||
HorizontalAlignment="Left"
|
||||
Grid.Row="3"
|
||||
Grid.Column="0"
|
||||
Margin="4 5" Checked="radioButtonLogonActive_Checked"
|
||||
/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="3"
|
||||
x:Name="borderLogonMethod"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.Menu.MainCategory}"
|
||||
Margin="5,5,5,5"
|
||||
Padding="10 5"
|
||||
SizeChanged="borderLogon_SizeChanged" Grid.ColumnSpan="3"
|
||||
Style="{StaticResource BlurableBorder}"
|
||||
IsEnabled="{Binding ElementName=M42SettingsWindows, Path=IsNotMethodBlurred}"
|
||||
>
|
||||
<Grid Grid.IsSharedSizeScope="True">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.AuthenticationMethod}"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
FontWeight="Bold"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock x:Name="labelPassthough"
|
||||
Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Passthough}"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="8 0 0 0"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Basic}"
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Margin="8 0 0 0"
|
||||
Style="{StaticResource BlurableText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Token}"
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Margin="8 0 0 0"
|
||||
Style="{StaticResource BlurableText}"
|
||||
/>
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.WebForm}"
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Margin="8 0 0 0"
|
||||
Style="{StaticResource BlurableText}"
|
||||
/>
|
||||
<RadioButton x:Name="radioButtonLogonMethodPassthrough"
|
||||
Style="{DynamicResource RadioButtonStyle}"
|
||||
HorizontalAlignment="Left"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="4 5"
|
||||
Checked="radioButtonLogonMethod_Checked"
|
||||
/>
|
||||
|
||||
<RadioButton x:Name="radioButtonLogonMethodBasic"
|
||||
Style="{StaticResource BlurableRadioButton}"
|
||||
HorizontalAlignment="Left"
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Margin="4 5"
|
||||
Checked="radioButtonLogonMethod_Checked"
|
||||
/>
|
||||
|
||||
<RadioButton x:Name="radioButtonLogonMethodToken"
|
||||
Style="{StaticResource BlurableRadioButton}"
|
||||
HorizontalAlignment="Left"
|
||||
Grid.Row="3"
|
||||
Grid.Column="0"
|
||||
Margin="4 5"
|
||||
Checked="radioButtonLogonMethod_Checked"
|
||||
/>
|
||||
<RadioButton x:Name="radioButtonLogonMethodForms"
|
||||
Style="{StaticResource BlurableRadioButton}"
|
||||
HorizontalAlignment="Left"
|
||||
Grid.Row="4"
|
||||
Grid.Column="0"
|
||||
Margin="4 5"
|
||||
Checked="radioButtonLogonMethod_Checked"
|
||||
/>
|
||||
<Border Style="{StaticResource BlurMaskBoarder}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="additionalBlockLogonMethodBasic"
|
||||
Grid.Row="4"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.Menu.MainCategory}"
|
||||
Margin="5,5,5,5"
|
||||
Padding="10 5" Grid.ColumnSpan="3"
|
||||
Style="{StaticResource BlurableBorder}"
|
||||
IsEnabled="{Binding ElementName=M42SettingsWindows, Path=IsNotMethodBlurred}"
|
||||
>
|
||||
<Grid Grid.IsSharedSizeScope="True">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Basic.Header}"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
FontWeight="Bold"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Basic.Username}"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="4 0 0 0"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Basic.Password}"
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Margin="4 0 0 0"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="8 5"
|
||||
CornerRadius="2"
|
||||
BorderThickness="0.5"
|
||||
BorderBrush="Gray"
|
||||
VerticalAlignment="Center"
|
||||
Padding="3 2"
|
||||
>
|
||||
<TextBox
|
||||
x:Name="BasicUserName"
|
||||
BorderThickness="0"
|
||||
BorderBrush="Transparent"
|
||||
VerticalAlignment="Center"
|
||||
Text="imagoverum\vvogel"
|
||||
/>
|
||||
</Border>
|
||||
|
||||
<Border
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Margin="8 5"
|
||||
CornerRadius="2"
|
||||
BorderThickness="0.5"
|
||||
BorderBrush="Gray"
|
||||
VerticalAlignment="Center"
|
||||
Height="21"
|
||||
Padding="3 2"
|
||||
>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<PasswordBox Grid.Column="0"
|
||||
x:Name="pwBoxPasswordBasicShow"
|
||||
BorderThickness="0"
|
||||
BorderBrush="Transparent"
|
||||
VerticalAlignment="Center"
|
||||
Password="Matrix42"
|
||||
PasswordChanged="pwBoxPasswordBasicShow_PasswordChanged"
|
||||
/>
|
||||
<TextBox Grid.Column="0"
|
||||
x:Name="txtBoxPasswordBasicShow"
|
||||
BorderThickness="0"
|
||||
BorderBrush="Transparent"
|
||||
VerticalAlignment="Center"
|
||||
Visibility="Collapsed"
|
||||
TextChanged="txtBoxPasswordBasicShow_TextChanged"
|
||||
/>
|
||||
<ico:AdaptableIcon
|
||||
x:Name="iconPasswordBasicShow"
|
||||
Grid.Column="1"
|
||||
SelectedMaterialIcon="ic_visibility"
|
||||
BorderPadding="0"
|
||||
IconWidth="17" IconHeight="17"
|
||||
Tag="PwBasicOn"
|
||||
MouseLeftButtonDown="iconPasswordShow_MouseLeftButtonDown"
|
||||
/>
|
||||
<ico:AdaptableIcon
|
||||
x:Name="iconPasswordBasicHide"
|
||||
Grid.Column="1"
|
||||
SelectedMaterialIcon="ic_visibility_off"
|
||||
Visibility="Collapsed"
|
||||
BorderPadding="0"
|
||||
IconWidth="17" IconHeight="17"
|
||||
Tag="PwBasicOff"
|
||||
MouseLeftButtonDown="iconPasswordShow_MouseLeftButtonDown"
|
||||
/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Border Style="{StaticResource BlurMaskBoarder}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="additionalBlockLogonMethodToken"
|
||||
Grid.Row="5"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.Menu.MainCategory}"
|
||||
Margin="5,5,5,5"
|
||||
Padding="10 5" Grid.ColumnSpan="3"
|
||||
Style="{StaticResource BlurableBorder}"
|
||||
IsEnabled="{Binding ElementName=M42SettingsWindows, Path=IsNotMethodBlurred}"
|
||||
>
|
||||
<Grid Grid.IsSharedSizeScope="True">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Token.Header}"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Token.Token}"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="4 0 0 0"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="8 5"
|
||||
CornerRadius="2"
|
||||
BorderThickness="0.5"
|
||||
BorderBrush="Gray"
|
||||
VerticalAlignment="Center"
|
||||
Padding="3 2"
|
||||
>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<PasswordBox Grid.Column="0"
|
||||
x:Name="pwBoxPasswordTokenShow"
|
||||
BorderThickness="0"
|
||||
BorderBrush="Transparent"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0 0 3 0"
|
||||
Password="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1"
|
||||
PasswordChanged="pwBoxPasswordTokenShow_PasswordChanged"
|
||||
/>
|
||||
<TextBox Grid.Column="0"
|
||||
x:Name="txtBoxPasswordTokenShow"
|
||||
BorderThickness="0"
|
||||
BorderBrush="Transparent"
|
||||
VerticalAlignment="Center"
|
||||
Visibility="Collapsed"
|
||||
Margin="0 0 3 0"
|
||||
TextChanged="pwBoxPasswordTokenHide_TextChanged"
|
||||
/>
|
||||
<ico:AdaptableIcon
|
||||
x:Name="iconTokenShow"
|
||||
Grid.Column="1"
|
||||
SelectedMaterialIcon="ic_visibility"
|
||||
BorderPadding="0"
|
||||
IconWidth="17" IconHeight="17"
|
||||
Tag="TokenOn"
|
||||
MouseLeftButtonDown="iconPasswordShow_MouseLeftButtonDown"
|
||||
/>
|
||||
<ico:AdaptableIcon
|
||||
x:Name="iconTokenHide"
|
||||
Grid.Column="1"
|
||||
SelectedMaterialIcon="ic_visibility_off"
|
||||
Visibility="Collapsed"
|
||||
BorderPadding="0"
|
||||
IconWidth="17" IconHeight="17"
|
||||
Tag="TokenOff"
|
||||
MouseLeftButtonDown="iconPasswordShow_MouseLeftButtonDown"
|
||||
/>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Border Style="{StaticResource BlurMaskBoarder}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="additionalBlockLogonMethodForms"
|
||||
Grid.Row="6"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.Menu.MainCategory}"
|
||||
Margin="5,5,5,5"
|
||||
Padding="10 5" Grid.ColumnSpan="3"
|
||||
Style="{StaticResource BlurableBorder}"
|
||||
IsEnabled="{Binding ElementName=M42SettingsWindows, Path=IsNotMethodBlurred}"
|
||||
>
|
||||
<Grid Grid.IsSharedSizeScope="True">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
<RowDefinition SharedSizeGroup="RowsHeight" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Forms.Header}"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="8 5"
|
||||
CornerRadius="2"
|
||||
BorderThickness="0.5"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Left"
|
||||
Height="21"
|
||||
Padding="4 2" MouseLeftButtonDown="DoFormsAuthentication_MouseLeftButtonDown"
|
||||
>
|
||||
<Border.Resources>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource Background.Menu.Icon.Hover}" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="Gray" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#FFD8E6FF" />
|
||||
<Setter Property="BorderBrush" Value="#FF5593FF" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Resources>
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=M42Settings.LogonMethod.Forms.Logon}"
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Margin="8 0 8 0"
|
||||
IsHitTestVisible="False"
|
||||
Style="{StaticResource DefaultText}"
|
||||
/>
|
||||
</Border>
|
||||
<Border Style="{StaticResource BlurMaskBoarder}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<TextBlock Grid.Row="7" Grid.ColumnSpan="3"
|
||||
x:Name="txtAuthenticationError"
|
||||
Text="Sie konnten nicht angemeldet werden. Bitte ändern Sie ihre Angaben für eine gültige Anmeldung."
|
||||
Grid.Column="0"
|
||||
Margin="10 3 0 3"
|
||||
Foreground="Red"
|
||||
/>
|
||||
|
||||
<Grid Grid.Row="8" Grid.ColumnSpan="3">
|
||||
|
||||
<Grid.Resources>
|
||||
<Style TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="Margin"
|
||||
Value="0 10 0 0" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="125" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="2.5" />
|
||||
<Setter Property="HorizontalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
</Style>
|
||||
</Grid.Resources>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="7*" />
|
||||
<ColumnDefinition Width="31*"/>
|
||||
<ColumnDefinition Width="38*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<ico:AdaptableIcon x:Name="ConfirmButton"
|
||||
Grid.Column="0"
|
||||
SelectedMaterialIcon="ic_check" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="32,10,0,0" MouseDown="ConfirmButton_MouseDown" TouchDown="ConfirmButton_TouchDown">
|
||||
<ico:AdaptableIcon.Tag>
|
||||
<sys:Boolean>True</sys:Boolean>
|
||||
</ico:AdaptableIcon.Tag>
|
||||
<ico:AdaptableIcon.Resources>
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource {x:Type ico:AdaptableIcon}}">
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Green}" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ico:AdaptableIcon.Resources>
|
||||
|
||||
</ico:AdaptableIcon>
|
||||
|
||||
<ico:AdaptableIcon x:Name="CancelButton"
|
||||
Grid.Column="2"
|
||||
SelectedMaterialIcon="ic_close" Margin="0,10,0,0" MouseLeftButtonUp="CloseButton_MouseLeftButtonUp" TouchDown="CloseButton_TouchDown">
|
||||
<ico:AdaptableIcon.Tag>
|
||||
<sys:Boolean>False</sys:Boolean>
|
||||
</ico:AdaptableIcon.Tag>
|
||||
<ico:AdaptableIcon.Resources>
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource {x:Type ico:AdaptableIcon}}">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Red}" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ico:AdaptableIcon.Resources>
|
||||
</ico:AdaptableIcon>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Border>
|
||||
|
||||
</settingspagebase:SettingsPageBase>
|
||||
Reference in New Issue
Block a user