1 | <Window x:Class="Microsoft.Research.DynamicDataDisplay.Charts.Navigation.AboutWindow" x:ClassModifier="internal"
|
---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
---|
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
---|
4 | xmlns:l="clr-namespace:Microsoft.Research.DynamicDataDisplay"
|
---|
5 | xmlns:p="clr-namespace:Microsoft.Research.DynamicDataDisplay.MarkupExtensions"
|
---|
6 | Width="400"
|
---|
7 | ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
---|
8 | Icon="{x:Static l:D3IconHelper.DynamicDataDisplayIcon}"
|
---|
9 | Title="{p:Resource AboutTitle}"
|
---|
10 | KeyDown="Window_KeyDown" SizeToContent="Height">
|
---|
11 | <Grid>
|
---|
12 | <FlowDocumentScrollViewer VerticalScrollBarVisibility="Disabled">
|
---|
13 | <FlowDocument FontSize="14">
|
---|
14 | <FlowDocument.Resources>
|
---|
15 | <Style TargetType="{x:Type Run}" x:Key="nav">
|
---|
16 | <Setter Property="Foreground" Value="#FF00A010"/>
|
---|
17 | </Style>
|
---|
18 |
|
---|
19 | <Style TargetType="InlineUIContainer" x:Key="{x:Type InlineUIContainer}">
|
---|
20 | <Setter Property="BaselineAlignment" Value="Center"/>
|
---|
21 | </Style>
|
---|
22 |
|
---|
23 | <Style TargetType="ContentControl" x:Key="btn">
|
---|
24 | <Setter Property="Margin" Value="0,1,0,1"/>
|
---|
25 | <Setter Property="FontSize" Value="14"/>
|
---|
26 | <Setter Property="FontFamily" Value="Lucida Console"/>
|
---|
27 | </Style>
|
---|
28 |
|
---|
29 | <Style TargetType="ContentControl" x:Key="commandBtn">
|
---|
30 | <Setter Property="Margin" Value="0,1,0,1"/>
|
---|
31 | <Setter Property="FontSize" Value="14"/>
|
---|
32 | <Setter Property="FontFamily" Value="Lucida Console"/>
|
---|
33 | </Style>
|
---|
34 | </FlowDocument.Resources>
|
---|
35 |
|
---|
36 | <Paragraph>
|
---|
37 | <Hyperlink Foreground="#FF0A00A0" FontSize="16" Click="Hyperlink_Click" ToolTip="{p:Resource AboutSiteUrl}" NavigateUri="http://dynamicdatadisplay.codeplex.com/">Dynamic Data Display</Hyperlink>
|
---|
38 | <Run Name="r1" Text="{p:Resource About_1}"/>
|
---|
39 | <InlineUIContainer>
|
---|
40 | <RepeatButton Content="Shift" Style="{DynamicResource btn}"/>
|
---|
41 | </InlineUIContainer>
|
---|
42 | <Run Name="r2" Text="{p:Resource About_2}"/>
|
---|
43 | <InlineUIContainer>
|
---|
44 | <RepeatButton Content="Ctrl" Style="{DynamicResource btn}"/>
|
---|
45 | </InlineUIContainer>
|
---|
46 | <Run Name="r3" Text="{p:Resource About_3}"/>
|
---|
47 | <LineBreak/>
|
---|
48 | <Span>
|
---|
49 | <Run Name="r4" Style="{DynamicResource nav}" Text="{p:Resource About_4}"/> ,
|
---|
50 | </Span>
|
---|
51 | <Run Name="r6" Text="{p:Resource About_6}"/>
|
---|
52 | <InlineUIContainer>
|
---|
53 | <RepeatButton Style="{DynamicResource btn}" Content="+" Command="{x:Static l:ChartCommands.ZoomIn}" CommandTarget="{Binding}"/>
|
---|
54 | </InlineUIContainer>
|
---|
55 | <Run Name="r5" Text="{p:Resource About_5}"/>
|
---|
56 | <InlineUIContainer>
|
---|
57 | <RepeatButton Style="{DynamicResource btn}" Content="-" Command="{x:Static l:ChartCommands.ZoomOut}" CommandTarget="{Binding}"/>
|
---|
58 | </InlineUIContainer>
|
---|
59 | <Run Name="r7" Text="{p:Resource About_7}"/>
|
---|
60 | <LineBreak/>
|
---|
61 | <Run Name="r8" Text="{p:Resource About_8}" Style="{DynamicResource nav}"/>
|
---|
62 | <Run Name="r9" Text="{p:Resource About_2}"/>
|
---|
63 | <InlineUIContainer>
|
---|
64 | <Grid>
|
---|
65 | <Grid.ColumnDefinitions>
|
---|
66 | <ColumnDefinition Width="*"/>
|
---|
67 | <ColumnDefinition Width="*"/>
|
---|
68 | <ColumnDefinition Width="*"/>
|
---|
69 | </Grid.ColumnDefinitions>
|
---|
70 | <Grid.RowDefinitions>
|
---|
71 | <RowDefinition Height="Auto"/>
|
---|
72 | <RowDefinition Height="Auto"/>
|
---|
73 | </Grid.RowDefinitions>
|
---|
74 |
|
---|
75 | <RepeatButton Grid.Column="1" Grid.Row="0" Style="{DynamicResource btn}" FontSize="16"
|
---|
76 | Content="↑" Margin="2" Command="{x:Static l:ChartCommands.ScrollUp}" CommandTarget="{Binding}"/>
|
---|
77 | <RepeatButton Grid.Column="0" Grid.Row="1" Style="{DynamicResource btn}" FontSize="16"
|
---|
78 | Content="←" Margin="2" Command="{x:Static l:ChartCommands.ScrollLeft}" CommandTarget="{Binding}"/>
|
---|
79 | <RepeatButton Grid.Column="1" Grid.Row="1" Style="{DynamicResource btn}" FontSize="16"
|
---|
80 | Content="↓" Margin="2" Command="{x:Static l:ChartCommands.ScrollDown}" CommandTarget="{Binding}"/>
|
---|
81 | <RepeatButton Grid.Column="2" Grid.Row="1" Style="{DynamicResource btn}" FontSize="16"
|
---|
82 | Content="→" Margin="2" Command="{x:Static l:ChartCommands.ScrollRight}" CommandTarget="{Binding}"/>
|
---|
83 | </Grid>
|
---|
84 | </InlineUIContainer>
|
---|
85 | <Run Name="r10" Text="{p:Resource About_9}"/>
|
---|
86 | <LineBreak/>
|
---|
87 | <InlineUIContainer>
|
---|
88 | <RepeatButton Style="{DynamicResource commandBtn}" Content="Ctrl"/>
|
---|
89 | </InlineUIContainer>
|
---|
90 | <Run>+</Run>
|
---|
91 | <Run Name="r11" Style="{DynamicResource nav}" Text="{p:Resource About_10}"/>
|
---|
92 | <Run Name="r14" Text="{p:Resource About_12}"/>
|
---|
93 | <LineBreak/>
|
---|
94 | <InlineUIContainer>
|
---|
95 | <RepeatButton Style="{DynamicResource commandBtn}" Content="Shift"/>
|
---|
96 | </InlineUIContainer>
|
---|
97 | <Run>+</Run>
|
---|
98 | <Run Name="r12" Style="{DynamicResource nav}" Text="{p:Resource About_10}"/>
|
---|
99 | <Run Name="r13" Text="{p:Resource About_11}"/>
|
---|
100 | <LineBreak/>
|
---|
101 | <InlineUIContainer>
|
---|
102 | <Button Style="{DynamicResource commandBtn}" Content="Home" Command="{x:Static l:ChartCommands.FitToView}" CommandTarget="{Binding}"/>
|
---|
103 | </InlineUIContainer>
|
---|
104 | <Run Name="r15" Text="{p:Resource About_13}"/>
|
---|
105 | <LineBreak/>
|
---|
106 | <InlineUIContainer>
|
---|
107 | <Button Style="{DynamicResource commandBtn}" Content="F11" Command="{x:Static l:ChartCommands.CopyScreenshot}" CommandTarget="{Binding}"/>
|
---|
108 | </InlineUIContainer>
|
---|
109 | <Run Name="r16" Text="{p:Resource About_15}"/>
|
---|
110 | <LineBreak/>
|
---|
111 | <InlineUIContainer>
|
---|
112 | <Button Style="{DynamicResource commandBtn}" Content="Ctrl" Command="{x:Static l:ChartCommands.SaveScreenshot}" CommandTarget="{Binding}"/>
|
---|
113 | </InlineUIContainer>
|
---|
114 | <Run>+</Run>
|
---|
115 | <InlineUIContainer>
|
---|
116 | <Button Style="{DynamicResource commandBtn}" Content="S" Command="{x:Static l:ChartCommands.SaveScreenshot}" CommandTarget="{Binding}"/>
|
---|
117 | </InlineUIContainer>
|
---|
118 | <Run Name="r17" Text="{p:Resource About_15}"/>
|
---|
119 | </Paragraph>
|
---|
120 | <Paragraph TextAlignment="Center">
|
---|
121 | <Hyperlink Foreground="#FF0A00A0" NavigateUri="http://dynamicdatadisplay.codeplex.com" ToolTip="{p:Resource AboutSireUrl}" Click="Hyperlink_Click_1">
|
---|
122 | <TextBlock Text="{p:Resource AboutSiteUrl}"/>
|
---|
123 | </Hyperlink>
|
---|
124 | </Paragraph>
|
---|
125 | </FlowDocument>
|
---|
126 | </FlowDocumentScrollViewer>
|
---|
127 | </Grid>
|
---|
128 | </Window>
|
---|