<?xml version="1.0" encoding="utf-8"?>
<UserControl
    x:Class="Sonex.Client.Views.ServiceDetailsView"
    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="6">
                <controls:HeaderProperty Text="Service" Width="420" />
                <controls:TextProperty x:Name="DisplayNameProperty" Header="Display name" Width="420" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="NameProperty" Header="Name" Width="420" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty x:Name="CaptionProperty" Header="Caption" Width="420" HeaderWidth="110" IsReadOnly="True" />
                <controls:TextProperty
                    x:Name="DescriptionProperty"
                    Header="Description"
                    Width="420"
                    HeaderWidth="110"
                    TextBoxHeight="76"
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                    VerticalScrollBarVisibility="Auto"
                    IsReadOnly="True" />
            </StackPanel>

            <AppBarSeparator />

            <StackPanel Orientation="Vertical" Spacing="6">
                <controls:HeaderProperty Text="Status" Width="300" />
                <controls:TextProperty x:Name="StatusProperty" Header="Status" Width="300" HeaderWidth="120" IsReadOnly="True" />
                <controls:TextProperty x:Name="StateProperty" Header="State" Width="300" HeaderWidth="120" IsReadOnly="True" />
                <controls:BoolProperty x:Name="StartedProperty" Header="Started" Width="300" HeaderWidth="120" IsReadOnly="True" />
                <controls:TextProperty x:Name="ProcessIdProperty" Header="Process ID" Width="300" HeaderWidth="120" IsReadOnly="True" />
                <controls:TextProperty x:Name="ExitCodeProperty" Header="Exit code" Width="300" HeaderWidth="120" IsReadOnly="True" />
                <controls:TextProperty x:Name="ServiceExitCodeProperty" Header="Service exit" Width="300" HeaderWidth="120" IsReadOnly="True" />
            </StackPanel>

            <AppBarSeparator />

            <StackPanel Orientation="Vertical" Spacing="6">
                <controls:HeaderProperty Text="Startup" Width="330" />
                <controls:TextProperty x:Name="StartModeProperty" Header="Start mode" Width="330" HeaderWidth="120" IsReadOnly="True" />
                <controls:TextProperty x:Name="StartNameProperty" Header="Account" Width="330" HeaderWidth="120" IsReadOnly="True" />
                <controls:TextProperty x:Name="ErrorControlProperty" Header="Error control" Width="330" HeaderWidth="120" IsReadOnly="True" />
                <controls:BoolProperty x:Name="DelayedAutoStartProperty" Header="Delayed start" Width="330" HeaderWidth="120" IsReadOnly="True" />
                <controls:BoolProperty x:Name="AcceptPauseProperty" Header="Can pause" Width="330" HeaderWidth="120" IsReadOnly="True" />
                <controls:BoolProperty x:Name="AcceptStopProperty" Header="Can stop" Width="330" HeaderWidth="120" IsReadOnly="True" />
            </StackPanel>

            <AppBarSeparator />

            <StackPanel Orientation="Vertical" Spacing="6">
                <controls:HeaderProperty Text="Executable" Width="620" />
                <controls:TextProperty
                    x:Name="PathNameProperty"
                    Header=""
                    Width="620"
                    HeaderWidth="0"
                    TextBoxHeight="230"
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                    HorizontalScrollBarVisibility="Auto"
                    VerticalScrollBarVisibility="Auto"
                    IsReadOnly="True" />
            </StackPanel>

        </StackPanel>
    </ScrollViewer>
</UserControl>
