85 lines
5.2 KiB
XML
85 lines
5.2 KiB
XML
<UserControl x:Class="ChatController.LoginControl"
|
|
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"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.Background>
|
|
<ImageBrush>
|
|
<ImageBrush.ImageSource>
|
|
<BitmapImage UriSource="Ressourcen/ownChat-Background.png" />
|
|
</ImageBrush.ImageSource>
|
|
</ImageBrush>
|
|
</Grid.Background>
|
|
|
|
<Grid Name="RootGrid">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="GroupBoxLogin" >
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="200"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label FontSize="15" Grid.Column="0" Grid.Row="0" Margin="3" Foreground="White">Kundennummer:</Label>
|
|
<TextBox FontSize="15" Grid.Column="1" Grid.Row="0" Margin="3" VerticalContentAlignment="Center" Text="{Binding Path=Tenant, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<Label FontSize="15" Grid.Column="0" Grid.Row="1" Margin="3" Foreground="White">ChatCode:</Label>
|
|
<TextBox FontSize="15" x:Name="TextBoxChatCode" Grid.Column="1" Grid.Row="1" Margin="3" VerticalContentAlignment="Center" Text="{Binding Path=ChatCode, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<Label FontSize="15" Grid.Column="0" Grid.Row="2" Margin="3" Foreground="White">Benutzername:</Label>
|
|
<TextBox FontSize="15" x:Name="TextBoxBenutzerName" Grid.Column="1" Grid.Row="2" Margin="3" VerticalContentAlignment="Center" Text="{Binding Path=UserName, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Label FontSize="15" Grid.Column="0" Grid.Row="3" Margin="3" Foreground="White">Passwort:</Label>
|
|
<PasswordBox FontSize="15" x:Name="PasswordBox" Grid.Column="1" Grid.Row="3" Margin="3" VerticalContentAlignment="Center" />
|
|
|
|
<Button FontSize="15" Grid.ColumnSpan="2" Grid.Column="0" Grid.Row="5" VerticalContentAlignment="Center" Click="AnmeldenButton_OnClick" Content="Anmelden" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="3" Width="100" Height="40" Background="#ff5e00" HorizontalContentAlignment="Center" >
|
|
<Button.Style>
|
|
<Style TargetType="{x:Type Button}">
|
|
<Setter Property="BorderBrush" Value="#FF5A00" />
|
|
<Setter Property="Background" Value="#FF5A00" />
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="Border" Background="#FF5A00" CornerRadius="5" Padding="1">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#FF988F" TargetName="Border" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="#FF7654" TargetName="Border" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Button.Style>
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
<Label HorizontalAlignment="Right" VerticalAlignment="Bottom" Foreground="White" Content="{Binding Path=Version, Mode=OneWay}" />
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|