<?xml version="1.0" encoding="utf-8"?>
<UserControl
    x:Class="Sonex.Client.Views.AppLogDetailsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Sonex.Client.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <ScrollViewer
        Background="{StaticResource CardBackgroundFillColorSecondaryBrush}"
        Padding="16 8 16 8"
        HorizontalScrollMode="Auto"
        HorizontalScrollBarVisibility="Auto"
        VerticalScrollMode="Auto"
        VerticalScrollBarVisibility="Auto">

        <StackPanel
            Orientation="Horizontal"
            VerticalAlignment="Top"
            Spacing="16">

            <StackPanel Orientation="Vertical" Spacing="4">
                <controls:TextProperty x:Name="ApplicationNameProperty" Header="Application" Width="330" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="AppVersionProperty" Header="Version" Width="330" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="MachineNameProperty" Header="Machine" Width="330" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="OsVersionProperty" Header="OS version" Width="330" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="UserNameProperty" Header="User" Width="330" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="InstanceIdProperty" Header="Instance" Width="330" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="ErrorIdProperty" Header="Error ID" Width="330" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="OccurredAtProperty" Header="Occurred at" Width="330" HeaderWidth="110" IsReadOnly="True" />
            </StackPanel>

            <AppBarSeparator />

            <StackPanel Orientation="Vertical" Spacing="4">
                <controls:TextProperty x:Name="LevelProperty" Header="Level" Width="560" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="SourceProperty" Header="Source" Width="560" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="OperationProperty" Header="Operation" Width="560" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="CurrentPageTitleProperty" Header="Page title" Width="560" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="CurrentPageProperty" Header="Page" Width="560" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty
                    x:Name="MessageProperty"
                    Header="Message"
                    Width="560"
                    HeaderWidth="110"
                    TextBoxHeight="70"
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                    VerticalScrollBarVisibility="Auto"
                    IsReadOnly="True" />
                <controls:BoolProperty x:Name="IsUnhandledProperty" Header="Unhandled" Width="560" HeaderWidth="110" IsReadOnly="True" />

            </StackPanel>
            <AppBarSeparator />

            <StackPanel Orientation="Vertical" Spacing="4">
                <controls:TextProperty
                    x:Name="ExceptionProperty"
                    Width="500"
                    HeaderWidth="0"
                    TextBoxHeight="270"
                    AcceptsReturn="True"
                    TextWrapping="NoWrap"
                    HorizontalScrollBarVisibility="Auto"
                    VerticalScrollBarVisibility="Auto"
                    IsReadOnly="True" />
            </StackPanel>
        </StackPanel>
    </ScrollViewer>
</UserControl>
