Needed to set all WindowStyles to ToolWindow and make the windows topmost because Word and WPF do not play together all too well.
126 lines
6.8 KiB
XML
Executable File
126 lines
6.8 KiB
XML
Executable File
<!--
|
|
ExceptionDetailView.xaml
|
|
part of zaaReloaded2
|
|
|
|
Copyright 2015 Daniel Kraus
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<Window x:Class="zaaReloaded2.ExceptionHandler.ExceptionDetailView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:l="clr-namespace:zaaReloaded2"
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
|
|
xmlns:settings="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
|
|
xmlns:converter="clr-namespace:Bovender.Mvvm.Converters;assembly=Bovender"
|
|
SizeToContent="Height" Width="700" ShowInTaskbar="False"
|
|
WindowStyle="ToolWindow" Topmost="True" ResizeMode="CanResizeWithGrip"
|
|
x:Name="exceptionDetailView"
|
|
Title="Technische Fehlerdetails"
|
|
settings:WindowState.Save="True"
|
|
>
|
|
<Window.Resources>
|
|
<ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
|
|
</Window.Resources>
|
|
<DockPanel Margin="10">
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
|
|
<Button Content="Schließen" IsCancel="True">
|
|
<!-- Use interaction trigger rather than MVVM CloseViewCommand since the latter
|
|
would cause all subscribed views to be closed, including the ExceptionView instance. -->
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="Click">
|
|
<ei:CallMethodAction TargetObject="{Binding ElementName=exceptionDetailView}" MethodName="Close" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</Button>
|
|
</StackPanel>
|
|
<Grid DockPanel.Dock="Bottom" Margin="0,10,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid Margin="0,0,5,0" Grid.Column="0" Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Column="0" Grid.Row="0" Content="Addin-Version" />
|
|
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Path=AddinVersion, Mode=OneWay}" />
|
|
<Label Grid.Column="0" Grid.Row="1" Content="Word-Version" />
|
|
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Path=WordVersion, Mode=OneWay}" />
|
|
<Label Grid.Column="0" Grid.Row="2" Content="Word-Bitness" />
|
|
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Path=WordBitness, Mode=OneWay}" />
|
|
</Grid>
|
|
<Grid Margin="5,0,0,0" Grid.Column="1" Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Column="0" Grid.Row="0" Content="Windows-Version" />
|
|
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Path=OS, Mode=OneWay}" />
|
|
<Label Grid.Column="0" Grid.Row="1" Content="Windows-Bitness" />
|
|
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Path=OSBitness, Mode=OneWay}" />
|
|
<Label Grid.Column="0" Grid.Row="2" Content="CLR-Version" />
|
|
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Path=CLR, Mode=OneWay}" />
|
|
</Grid>
|
|
</Grid>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition MinHeight="72" />
|
|
<RowDefinition MinHeight="32" />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Column="0" Grid.Row="0" Content="Fehler" />
|
|
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Path=Exception, Mode=OneWay}"
|
|
TextWrapping="NoWrap"
|
|
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
|
|
<Label Grid.Column="0" Grid.Row="1" Content="Beschreibung" />
|
|
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Path=Message, Mode=OneWay}" TextWrapping="Wrap" />
|
|
<Label Grid.Column="0" Grid.Row="2" Content="Urspr. Fehler"
|
|
Visibility="{Binding HasInnerException,Converter={StaticResource visBoolConv}}" />
|
|
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Path=InnerException, Mode=OneWay}"
|
|
TextWrapping="NoWrap"
|
|
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"
|
|
Visibility="{Binding HasInnerException,Converter={StaticResource visBoolConv}}" />
|
|
<Label Grid.Column="0" Grid.Row="3" Content="Urps. Fehlerbeschreibung"
|
|
Visibility="{Binding HasInnerException,Converter={StaticResource visBoolConv}}" />
|
|
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Path=InnerMessage, Mode=OneWay}" TextWrapping="Wrap"
|
|
Visibility="{Binding HasInnerException,Converter={StaticResource visBoolConv}}" />
|
|
<!--<Label Grid.Column="0" Grid.Row="4" Content="{x:Static l:Strings.StackTrace}" />
|
|
<TextBox Grid.Column="1" Grid.Row="4" Text="{Binding Path=StackTrace, Mode=OneWay}"
|
|
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Height="60" />-->
|
|
</Grid>
|
|
</DockPanel>
|
|
</Window>
|