332 lines
16 KiB
XML
332 lines
16 KiB
XML
<Window x:Class="C4IT_CustomerPanel.forms.ConfigInfo"
|
|
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"
|
|
mc:Ignorable="d"
|
|
WindowStartupLocation="CenterScreen"
|
|
Title="Konfiguration © Copyright"
|
|
Height="540"
|
|
Width="840"
|
|
MinHeight="540"
|
|
MinWidth="840"
|
|
ResizeMode="NoResize"
|
|
WindowStyle="None"
|
|
AllowsTransparency="True"
|
|
UseLayoutRounding="True"
|
|
SnapsToDevicePixels="True"
|
|
KeyDown="ConfigInfo_KeyDown"
|
|
Background="Transparent"
|
|
Icon="/Customer Panel;component/Resources/icons/logo_CustomerPanel.ico">
|
|
<Window.Resources>
|
|
<Style x:Key="ConfigLabelStyle"
|
|
TargetType="TextBlock">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource navForeground}" />
|
|
<Setter Property="FontSize"
|
|
Value="14" />
|
|
<Setter Property="FontWeight"
|
|
Value="Medium" />
|
|
<Setter Property="TextWrapping"
|
|
Value="Wrap" />
|
|
<Setter Property="VerticalAlignment"
|
|
Value="Center" />
|
|
</Style>
|
|
<Style x:Key="ConfigValueContainerStyle"
|
|
TargetType="Border">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource inputBackgroundColor}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource inputBorderColor}" />
|
|
<Setter Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="CornerRadius"
|
|
Value="10" />
|
|
<Setter Property="Padding"
|
|
Value="12,9" />
|
|
</Style>
|
|
<Style x:Key="ConfigValueTextStyle"
|
|
TargetType="TextBlock">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource navForeground}" />
|
|
<Setter Property="FontSize"
|
|
Value="14" />
|
|
<Setter Property="TextWrapping"
|
|
Value="Wrap" />
|
|
<Setter Property="VerticalAlignment"
|
|
Value="Center" />
|
|
</Style>
|
|
<Style x:Key="ConfigActionButtonStyle"
|
|
TargetType="Button">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource navForeground}" />
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource panelBackgroundColor}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource inputBorderColor}" />
|
|
<Setter Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="Padding"
|
|
Value="14,6" />
|
|
<Setter Property="Cursor"
|
|
Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="ButtonBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="10">
|
|
<ContentPresenter HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Margin="{TemplateBinding Padding}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver"
|
|
Value="True">
|
|
<Setter TargetName="ButtonBorder"
|
|
Property="Background"
|
|
Value="{DynamicResource inactiveButtonColor}" />
|
|
<Setter TargetName="ButtonBorder"
|
|
Property="BorderBrush"
|
|
Value="{DynamicResource itemHoverBorderColor}" />
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource navForeground}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed"
|
|
Value="True">
|
|
<Setter TargetName="ButtonBorder"
|
|
Property="Opacity"
|
|
Value="0.94" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ConfigHeaderButtonStyle"
|
|
TargetType="Button">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource navForeground}" />
|
|
<Setter Property="Background"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderBrush"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderThickness"
|
|
Value="0" />
|
|
<Setter Property="Width"
|
|
Value="32" />
|
|
<Setter Property="Height"
|
|
Value="32" />
|
|
<Setter Property="Cursor"
|
|
Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="ControlBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="10">
|
|
<ContentPresenter HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver"
|
|
Value="True">
|
|
<Setter TargetName="ControlBorder"
|
|
Property="Background"
|
|
Value="{DynamicResource headerControlHoverBackgroundColor}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed"
|
|
Value="True">
|
|
<Setter TargetName="ControlBorder"
|
|
Property="Opacity"
|
|
Value="0.9" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid Margin="14">
|
|
<Border CornerRadius="18"
|
|
BorderThickness="1"
|
|
BorderBrush="{DynamicResource panelBorderColor}"
|
|
Background="{DynamicResource panelBackgroundColor}">
|
|
<Grid Margin="22">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="14" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="14" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid MouseLeftButtonDown="Header_MouseLeftButtonDown">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Orientation="Vertical"
|
|
VerticalAlignment="Center">
|
|
<TextBlock Text="Konfiguration"
|
|
Foreground="{DynamicResource navForeground}"
|
|
FontSize="22"
|
|
FontWeight="Bold" />
|
|
<TextBlock Text="Aktuelle Verbindungs- und Aktualisierungswerte"
|
|
Foreground="{DynamicResource navForeground}"
|
|
Opacity="0.72"
|
|
Margin="0,4,0,0" />
|
|
<Border Margin="0,10,0,0"
|
|
Padding="10,6"
|
|
Background="{DynamicResource inputBackgroundColor}"
|
|
BorderBrush="{DynamicResource inputBorderColor}"
|
|
BorderThickness="1"
|
|
CornerRadius="8">
|
|
<StackPanel Orientation="Horizontal"
|
|
VerticalAlignment="Center">
|
|
<Image Source="{DynamicResource appbar_information}"
|
|
Width="14"
|
|
Height="14"
|
|
Margin="0,0,8,0"
|
|
Tag="MAINICO"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Text="{x:Static resx:Resources.configInfoHint}"
|
|
Foreground="{DynamicResource navForeground}"
|
|
FontSize="12"
|
|
Opacity="0.8"
|
|
TextWrapping="Wrap"
|
|
VerticalAlignment="Center" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
<Image Grid.Column="1"
|
|
Width="150"
|
|
Height="40"
|
|
Margin="16,0,10,0"
|
|
VerticalAlignment="Center"
|
|
Stretch="Uniform"
|
|
Source="/Customer Panel;component/Resources/consulting4it-header1.png" />
|
|
<Button Grid.Column="2"
|
|
Content="X"
|
|
FontSize="15"
|
|
FontWeight="Bold"
|
|
Style="{StaticResource ConfigHeaderButtonStyle}"
|
|
Click="OnCloseButtonClick"
|
|
ToolTip="{x:Static resx:Resources.close}" />
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="2"
|
|
Margin="0,0,4,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="300" />
|
|
<ColumnDefinition Width="12" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Grid.Column="0"
|
|
Text="MatrixServer"
|
|
Style="{StaticResource ConfigLabelStyle}" />
|
|
<Border Grid.Row="0"
|
|
Grid.Column="2"
|
|
Style="{StaticResource ConfigValueContainerStyle}">
|
|
<TextBlock x:Name="TxtMatrixServer"
|
|
Style="{StaticResource ConfigValueTextStyle}" />
|
|
</Border>
|
|
|
|
<TextBlock Grid.Row="2"
|
|
Grid.Column="0"
|
|
Text="Ticket Update Interval"
|
|
Style="{StaticResource ConfigLabelStyle}" />
|
|
<Border Grid.Row="2"
|
|
Grid.Column="2"
|
|
Style="{StaticResource ConfigValueContainerStyle}">
|
|
<TextBlock x:Name="TxtUpdateIntervalTickets"
|
|
Style="{StaticResource ConfigValueTextStyle}" />
|
|
</Border>
|
|
|
|
<TextBlock Grid.Row="4"
|
|
Grid.Column="0"
|
|
Text="Announcements Update Interval Regular"
|
|
Style="{StaticResource ConfigLabelStyle}" />
|
|
<Border Grid.Row="4"
|
|
Grid.Column="2"
|
|
Style="{StaticResource ConfigValueContainerStyle}">
|
|
<TextBlock x:Name="TxtUpdateIntervalRegularAnnouncements"
|
|
Style="{StaticResource ConfigValueTextStyle}" />
|
|
</Border>
|
|
|
|
<TextBlock Grid.Row="6"
|
|
Grid.Column="0"
|
|
Text="Announcements Update Interval AdHoc"
|
|
Style="{StaticResource ConfigLabelStyle}" />
|
|
<Border Grid.Row="6"
|
|
Grid.Column="2"
|
|
Style="{StaticResource ConfigValueContainerStyle}">
|
|
<TextBlock x:Name="TxtUpdateIntervalAdHocAnnouncements"
|
|
Style="{StaticResource ConfigValueTextStyle}" />
|
|
</Border>
|
|
</Grid>
|
|
|
|
<Border Grid.Row="4"
|
|
Background="{DynamicResource inputBackgroundColor}"
|
|
BorderBrush="{DynamicResource inputBorderColor}"
|
|
BorderThickness="1"
|
|
CornerRadius="10"
|
|
Padding="12,8">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
VerticalAlignment="Center">
|
|
<TextBlock x:Name="TxtCopyRight"
|
|
Foreground="{DynamicResource navForeground}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Margin="6,0,0,0"
|
|
VerticalAlignment="Center">
|
|
<Hyperlink NavigateUri="http://www.consulting4it.de"
|
|
RequestNavigate="Hyperlink_RequestNavigate">
|
|
Consulting4IT GmbH
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
|
|
<Button Grid.Column="1"
|
|
Content="Creative Commons"
|
|
Height="34"
|
|
MinWidth="150"
|
|
Style="{StaticResource ConfigActionButtonStyle}"
|
|
Click="OnCcClicked" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Button Visibility="Hidden"
|
|
Content="Reset Panel Position"
|
|
PreviewMouseDown="Button_PreviewMouseDown"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Margin="0,0,8,0" />
|
|
</Grid>
|
|
</Window>
|