PageRenderTime 101ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/TimeSheetReporting/TimeSheetReporting/Views/ErrorWindow.xaml

#
XAML | 34 lines | 26 code | 8 blank | 0 comment | 0 complexity | 382e9d922578fb28b8bf3fa4c357ccaa MD5 | raw file
 1<controls:ChildWindow  
 2    x:Class="TimeSheetReporting.ErrorWindow"
 3    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
 4    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
 5    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"    
 6    Title="Error">
 7
 8    <Grid x:Name="LayoutRoot" Width="540">
 9        <Grid.RowDefinitions>
10            <RowDefinition Height="Auto"/>
11            <RowDefinition Height="Auto"/>
12            <RowDefinition/>
13            <RowDefinition Height="Auto"/>
14        </Grid.RowDefinitions>
15
16        <TextBlock x:Name="IntroductoryText" Grid.Row="0" Margin="0" 
17               Text="An unknown error was encountered. Please contact your administrator for more information."/>
18
19        <StackPanel x:Name="ContentStackPanel" Grid.Row="2" Margin="0,6,0,0">
20
21            <TextBlock x:Name="LabelText" TextWrapping="Wrap" Margin="0,0,0,2" 
22                       Text="Error details"/>
23            <TextBox x:Name="ErrorTextBox" Height="90" TextWrapping="Wrap" IsReadOnly="True"
24                     VerticalScrollBarVisibility="Auto"/>
25
26        </StackPanel>
27
28        <Button x:Name="OKButton" Grid.Row="3" Click="OKButton_Click" 
29            Width="75" Height="23" HorizontalAlignment="Right" Margin="0,10,0,0" 
30            TabIndex="0" Content="OK"/>
31
32    </Grid>
33
34</controls:ChildWindow>