Die Akzentfarbe von den Chatgruppen vom Server wird berücksichtigt. Bilder sind im richtigen Seitenverhältnis skaliert. Ein Bild, das man gerade erst verschickt hat und das man öffnen will, bevor es auf dem Server angekommen ist, wird jetzt erst angezeigt, sobald es auf dem Server ist. Die Textbox für eine neue Nachricht wird nur angezeigt, wenn eine Gruppe ausgewählt ist und wenn man das Recht hat Nachrichten an diese Gruppe zu verschicken. Diverse Codeverbesserungen.
64 lines
3.8 KiB
XML
64 lines
3.8 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">
|
|
<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.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="5"/>
|
|
<Setter Property="Padding" Value="1" />
|
|
</Style>
|
|
</Button.Resources>
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
<Label HorizontalAlignment="Right" VerticalAlignment="Bottom" Foreground="White" Content="{Binding Path=Version, Mode=OneWay}" />
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|