84 lines
3.7 KiB
XML
84 lines
3.7 KiB
XML
<Window x:Class="C4IT_CustomerPanel.forms.CPM42FormsAuthentication"
|
|
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:resx="clr-namespace:C4IT_CustomerPanel.Properties"
|
|
xmlns:WebView="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
|
|
xmlns:local="clr-namespace:C4IT_CustomerPanel.forms"
|
|
mc:Ignorable="d"
|
|
ResizeMode="CanResize"
|
|
WindowStyle="None"
|
|
AllowsTransparency="True"
|
|
Background="Transparent"
|
|
MinHeight="735"
|
|
MinWidth="400"
|
|
ShowInTaskbar="False"
|
|
Topmost="True"
|
|
SizeToContent="WidthAndHeight"
|
|
WindowStartupLocation="CenterScreen"
|
|
x:Name="CPM42FormsAuth">
|
|
|
|
<Border
|
|
CornerRadius="0"
|
|
Background="{DynamicResource headerColor}"
|
|
Padding="10">
|
|
|
|
<Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock x:Name="TxtHeader" Text="{x:Static resx:Resources.Matrix42_Login}" FontSize="18" Foreground="White" VerticalAlignment="Center" Margin="-5 -15 0 0" FontWeight="Bold"/>
|
|
<TextBlock x:Name="Close_Text" Text="X" Foreground="White" MouseLeftButtonDown="Close_Text_MouseLeftButtonDown" HorizontalAlignment="Right" FontSize="20" FontWeight="Bold" Margin="0,-10,0,5" Cursor="Hand"/>
|
|
</Grid>
|
|
|
|
<Border Grid.Row="1"
|
|
CornerRadius="7.5"
|
|
Background="LightGray">
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<WebView:WebView2
|
|
x:Name="WebLogon" x:FieldModifier="private"
|
|
Loaded="WebLogon_Loaded"
|
|
NavigationStarting="WebLogon_NavigationStarting"
|
|
Margin="10 10 10 10"
|
|
Grid.ColumnSpan="2"/>
|
|
|
|
<Border
|
|
x:Name="NoAccessTokenMessage" x:FieldModifier="private"
|
|
Margin="50 0 50 0"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
Background="LightGray"
|
|
CornerRadius="7.5" >
|
|
|
|
<TextBlock
|
|
FontSize="20"
|
|
Foreground="Red"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="WrapWithOverflow"
|
|
Text="Could not get a valid authorisation token."/>
|
|
|
|
</Border>
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
</Border>
|
|
|
|
</Window>
|