123 lines
5.2 KiB
XML
123 lines
5.2 KiB
XML
<Window x:Class="TeamsNetphoneLink.WPF.ExceptionWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Fehlerbericht" Height="400" Width="600"
|
|
Background="#FF1E1E1E" FontFamily="Segoe UI"
|
|
WindowStyle="ToolWindow" ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterScreen" Topmost="True">
|
|
|
|
<!-- Dark Mode Resources -->
|
|
<Window.Resources>
|
|
<!-- Button Style -->
|
|
<Style TargetType="Button">
|
|
<Setter Property="Background" Value="#FF0078D4"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="Padding" Value="10,5"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}"
|
|
CornerRadius="4"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
|
</Style>
|
|
|
|
<!-- TextBox Style -->
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Background" Value="#FF252526"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="#FF3E3E40"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="3,0,0,0"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="4">
|
|
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- TextBlock Style -->
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid Margin="10">
|
|
<!-- Fehlertext -->
|
|
<TextBlock x:Name="ErrorText"
|
|
Text="Es ist ein Fehler aufgetreten!"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Margin="10,10,10,20"
|
|
VerticalAlignment="Top"
|
|
Foreground="White"/>
|
|
|
|
<!-- Modul Feld -->
|
|
<StackPanel Orientation="Horizontal" Margin="10,50,10,0">
|
|
<TextBlock Text="Modul:" VerticalAlignment="Top" Width="60" Foreground="White" Margin="0,15,0,0"/>
|
|
<TextBox x:Name="ModuleText"
|
|
FontSize="14"
|
|
VerticalAlignment="Top"
|
|
Width="480"
|
|
Margin="5,5,5,0"
|
|
IsEnabled="False"
|
|
Background="#FF252526"
|
|
Foreground="White" Text="tetet" Height="37"/>
|
|
</StackPanel>
|
|
|
|
<!-- Scrollbare Fehlerdetails -->
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
Margin="10,100,10,50">
|
|
<TextBox x:Name="TraceText"
|
|
VerticalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
IsReadOnly="True"
|
|
FontSize="14"
|
|
Padding="3,3,0,0"
|
|
HorizontalContentAlignment="Left"
|
|
VerticalContentAlignment="Top"
|
|
Height="214"
|
|
Background="#FF252526"
|
|
Foreground="White" Text="tttt">
|
|
<!-- Beispiel für Fehlerdetails -->
|
|
</TextBox>
|
|
</ScrollViewer>
|
|
|
|
<!-- Button zum Schließen -->
|
|
<Button Content="Schließen"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
Width="100"
|
|
Margin="10,0,0,10"
|
|
Click="CloseButton_Click"/>
|
|
|
|
<!-- Button zum Issue melden -->
|
|
<Button Content="Issue melden"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Width="120"
|
|
Margin="0,0,10,10"
|
|
Click="ReportButton_Click"/>
|
|
</Grid>
|
|
</Window> |