forked from rhessinger/LogViewerForLog4Net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbout.xaml
138 lines (135 loc) · 8.06 KB
/
About.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<Window
xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
x:Class="LogViewer.About"
Title="About" Height="706" Width="440"
Loaded="window_Loaded" >
<Window.Resources>
<Storyboard x:Key="TitleAnim">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(ee:RippleEffect.Frequency)" Storyboard.TargetName="stackPanel">
<EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<QuarticEase EasingMode="EaseOut"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(ee:RippleEffect.Magnitude)" Storyboard.TargetName="stackPanel">
<EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<QuarticEase EasingMode="EaseOut"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RichTextBox1">
<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:4" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="label">
<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:4" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(TextBoxBase.IsReadOnlyCaretVisible)" Storyboard.TargetName="RichTextBox1">
<DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
<DiscreteBooleanKeyFrame KeyTime="0:0:4" Value="False"/>
</BooleanAnimationUsingKeyFrames>
</Storyboard>
</Window.Resources>
<Window.Triggers>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard Storyboard="{StaticResource TitleAnim}"/>
</EventTrigger>
</Window.Triggers>
<Border BorderBrush="#FF6A6A6A" BorderThickness="8" CornerRadius="8">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black"/>
<GradientStop Color="#FF232323" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<Grid Margin="10,10,10,10">
<Grid.RowDefinitions>
<RowDefinition Height="93" />
<RowDefinition Height="41"/>
<RowDefinition Height="396*" />
<RowDefinition Height="79*" />
<RowDefinition Height="29.5"/>
</Grid.RowDefinitions>
<StackPanel x:Name="stackPanel" Orientation="Vertical" VerticalAlignment="Stretch">
<StackPanel.Effect>
<ee:RippleEffect Magnitude="1" Frequency="100"/>
</StackPanel.Effect>
<StackPanel Orientation="Horizontal">
<Label x:Name="LabelAssemblyName"
Foreground="Orange"
FontWeight="Normal"
FontSize="18"
FontFamily="Calibri"
Content="LogViewer" Margin="0,0,5,0"/>
<Label x:Name="LabelAssemblyVersion"
Foreground="Orange"
FontWeight="Normal"
FontSize="18"
FontFamily="Calibri"
Content="3.x"/>
</StackPanel>
<Label x:Name="LabelAssembly" Foreground="AntiqueWhite"/>
</StackPanel>
<Label x:Name="label" Grid.Row="1" Foreground="Orange" Content="Highlights:" Margin="0,3" />
<RichTextBox
Grid.Row="2"
x:Name="RichTextBox1"
Padding="10,10,10,10"
BorderThickness="4" AcceptsTab="True"
VerticalScrollBarVisibility="Disabled"
HorizontalScrollBarVisibility="Disabled"
VerticalAlignment="Stretch" IsReadOnly="True" IsReadOnlyCaretVisible="True" AllowDrop="False" AutoWordSelection="False" ClipToBounds="True">
<FlowDocument PageWidth="600" LineHeight="1" IsOptimalParagraphEnabled="True" >
<List>
<ListItem>
<Paragraph>
<Run Text="Drag and Drop to open XML log files (multi selection)"/>
</Paragraph>
</ListItem>
<ListItem>
<Paragraph>
<Run Text="Use ALT-Drop to merge files"/>
</Paragraph>
</ListItem>
<ListItem>
<Paragraph>
<Run Text="Dbl-Click 'Log File' to display long/short file names"/>
</Paragraph>
</ListItem>
<ListItem>
<Paragraph>
<Run Text="Recent File List in xml file (exe folder)"/>
</Paragraph>
</ListItem>
<ListItem>
<Paragraph>
<Run Text="Column Sorting (click headers)"/>
</Paragraph>
</ListItem>
<ListItem>
<Paragraph>
<Run Text="Quick Filter (click message level icon)"/>
</Paragraph>
</ListItem>
</List>
<Paragraph>
<LineBreak/>
<Run Text="Log4Net Config file must be setup as follows:"/>
<LineBreak/>
<Italic FontSize="10"/>
</Paragraph>
</FlowDocument>
</RichTextBox>
<Button Grid.Row="4" Height="23" x:Name="ButtonOk" Width="75" Click="buttonOK_Click" VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="OK"/>
<TextBlock Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="105,15,105,0" Height="16" Width="146"><Hyperlink Foreground="Orange" TargetName="_blank" NavigateUri="http://www.codeproject.com/KB/cs/logviewer.aspx" RequestNavigate="hyperlink_RequestNavigate"><Run Text="Original code by Ken C. Len"/></Hyperlink></TextBlock>
<TextBlock Grid.Row="3" HorizontalAlignment="Center" Margin="44,33,44,30" Width="268"><Hyperlink Foreground="Orange" TargetName="_blank" NavigateUri="http://www.e-naxos.com/blog" RequestNavigate="hyperlink_RequestNavigate"><Run Text="Enhanced version by Olivier Dahan. Microsoft MVP"/></Hyperlink></TextBlock>
<TextBlock Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="16" FontWeight="Bold" Height="21" Margin="68,0" Width="220"><Hyperlink Foreground="DarkGray" TargetName="_blank" NavigateUri="https://github.com/odahan/LogViewerForLog4Net" RequestNavigate="hyperlink_RequestNavigate"><Run Text="LogViewer Project on GitHub"/></Hyperlink></TextBlock>
</Grid>
</Border>
</Window>