265 lines
12 KiB
XML
265 lines
12 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.ownChat.ChatServiceCustomer"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:localViewModel="clr-namespace:BeWo.ViewModel"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
|
|
<Grid x:Name="ChatServiceCustomerGrid">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox
|
|
Grid.ColumnSpan="2"
|
|
Padding="5"
|
|
Header="ownChat"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label
|
|
x:Name="lblGenerateCode"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Height="21"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="Chat-Code" />
|
|
|
|
<TextBox
|
|
x:Name="GeneratetTexfield"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
MinWidth="120"
|
|
Margin="3"
|
|
IsReadOnly="True" />
|
|
|
|
<Button
|
|
x:Name="ButtonGenerateCode"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Click="GenerateCodeClick"
|
|
ToolTip="Chat-Code anfordern">
|
|
<Image
|
|
x:Name="ImageGenerateCode"
|
|
Width="15"
|
|
Height="15"
|
|
Margin="3"
|
|
HorizontalAlignment="Center"
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
Source="/Ressources/Icons/DocumentWithAdd2.png" />
|
|
</Button>
|
|
|
|
|
|
<Button
|
|
x:Name="RemoveButton"
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
Height="23"
|
|
Margin="3"
|
|
Click="RemoveCode_OnClick"
|
|
ToolTip="Aktuellen Chat-Code löschen."
|
|
Visibility="Collapsed">
|
|
<Image
|
|
Width="15"
|
|
Height="15"
|
|
Margin="3"
|
|
HorizontalAlignment="Center"
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
Source="/Ressources/Icons/Symbol Delete.png" />
|
|
</Button>
|
|
|
|
<Label
|
|
x:Name="Benutzer"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
Content="Benutzername" />
|
|
|
|
<TextBox
|
|
x:Name="TXTBenutzerName"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="3" />
|
|
|
|
<Label
|
|
x:Name="passwd"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
Content="Passwort" />
|
|
<TextBox
|
|
x:Name="TXTPasswort"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
TextChanged="TXTPasswort_OnTextChanged" />
|
|
|
|
<Label
|
|
x:Name="LblPwStaerkenAnzeige"
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
Visibility="Hidden" />
|
|
|
|
<Button
|
|
x:Name="Speichernbutton"
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
Click="SpeicherButton_OnClick"
|
|
Content="Speichern" />
|
|
|
|
<!-- <Label x:Name="lblIsChatAktive" Grid.Column="0" Grid.Row="1" Margin="3" Content="Chat Aktivieren" />-->
|
|
|
|
|
|
<!--<CheckBox x:Name="ChatAktive" Grid.Column="1" Grid.Row="1" Margin="3" Height="23" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"/>-->
|
|
|
|
<!--<GroupBox Margin="3" Grid.Row="2" Grid.RowSpan="2" Grid.Column="0" Grid.ColumnSpan="4" Header="ownChat Benutzerkonto" Style="{x:Null}" x:Name="CustomerBenutzerKontoGroupBox" Visibility="Visible">
|
|
-->
|
|
<!-- ####################### Style Design gedönse ## -->
|
|
<!--
|
|
<GroupBox.Template>
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
<Grid SnapsToDevicePixels="true">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="6"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="6"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="6"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderBrush="Black" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
|
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="1.25" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
|
|
<Border.OpacityMask>
|
|
<MultiBinding ConverterParameter="7">
|
|
<MultiBinding.Converter>
|
|
<BorderGapMaskConverter />
|
|
</MultiBinding.Converter>
|
|
<Binding ElementName="Header" Path="ActualWidth"/>
|
|
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
|
|
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
|
|
</MultiBinding>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
|
|
|
|
<Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2" Background="Transparent" BorderBrush="Black" CornerRadius="2" BorderThickness="1">
|
|
<ContentPresenter ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Border>
|
|
|
|
<ContentPresenter Grid.ColumnSpan="2" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</GroupBox.Template>
|
|
-->
|
|
<!-- ################################################ -->
|
|
<!--
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Row="0" Grid.Column="0" Content="Benutzername" Margin="3" />-->
|
|
<!-- row 2 | column 0 && 1 -->
|
|
<!--
|
|
<TextBox Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TXTBenutzerName" />
|
|
|
|
<Label Grid.Row="1" Grid.Column="0" Content="Passwort" Margin="3" />-->
|
|
<!-- row 3 | column 0 && 1 -->
|
|
<!--
|
|
<TextBox Grid.Row="1" Grid.Column="1" Margin="3" x:Name="TXTPasswort" />
|
|
|
|
<Button Content="Speichern" Click="SpeicherButton_OnClick" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="3" HorizontalAlignment="Right" />-->
|
|
<!-- row 4 | column 0 -->
|
|
<!--
|
|
</Grid>
|
|
</GroupBox>-->
|
|
|
|
|
|
<Button
|
|
x:Name="CustomerHandoutButton"
|
|
Grid.Row="0"
|
|
Grid.Column="4"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Click="ZeigeHandoutPDF_OnClick "
|
|
ToolTip="ownChat Kurzanleitung für Klient herunterladen."
|
|
Visibility="Collapsed">
|
|
<Image
|
|
Width="15"
|
|
Height="15"
|
|
Margin="3"
|
|
HorizontalAlignment="Center"
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
Source="/Ressources/Icons/adobe-pdf-icon.png" />
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<!-- IsChecked="{Binding Path=IsChatAktiv, UpdateSourceTrigger=PropertyChanged}" -->
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
</localView:BeWoView> |