-
Notifications
You must be signed in to change notification settings - Fork 10
/
About.xaml
122 lines (119 loc) · 7.23 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
<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="400"
Background="{DynamicResource WindowBackgroundBrush}"
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="30"/>
<RowDefinition Height="0.837*" />
<RowDefinition Height="0.163*" />
<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="24"
FontFamily="Calibri"
Content="LogViewer" Margin="0,0,5,0"/>
<Label x:Name="labelAssemblyVersion"
Foreground="Orange"
FontWeight="Normal"
FontSize="24"
FontFamily="Calibri"
Content="2.x"/>
</StackPanel>
<Label x:Name="labelAssembly" Foreground="AntiqueWhite"/>
</StackPanel>
<Label x:Name="label" Grid.Row="1" Foreground="Orange" Height="23" Content="Highlights:" />
<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="0,14.616,0,0"><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="0,32.616,0,29.531" d:LayoutOverrides="Height"><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"><Hyperlink Foreground="DarkGray" TargetName="_blank" NavigateUri="http://yourlog4netviewer.codeplex.com/" RequestNavigate="hyperlink_RequestNavigate"><Run Text="LogViewer Project on CodePlex"/></Hyperlink></TextBlock>
</Grid>
</Border>
</Window>