-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
51 lines (47 loc) · 3.08 KB
/
Copy pathMainWindow.xaml
File metadata and controls
51 lines (47 loc) · 3.08 KB
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
<Window x:Class="MouseInteractionHotspots.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Gigasoft="clr-namespace:Gigasoft.ProEssentials;assembly=Gigasoft.ProEssentialsWpf"
mc:Ignorable="d"
Title="ProEssentials — Mouse Interaction: Coordinate Tracking & Hotspots"
Height="750" Width="1100"
MinHeight="500" MinWidth="700"
UseLayoutRounding="True"
Closing="Window_Closing">
<Grid Background="#FF001A20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- status bar -->
<RowDefinition Height="*"/> <!-- chart -->
</Grid.RowDefinitions>
<!-- ═══════════════════════════════════════════════════════════════ -->
<!-- Row 0 — Status bar -->
<!-- Shows GetHotSpot() results as the mouse moves over chart -->
<!-- elements: data points, series legends, point labels -->
<!-- ═══════════════════════════════════════════════════════════════ -->
<Border Grid.Row="0"
Background="#FF002B35"
BorderBrush="#FF003D4D"
BorderThickness="0,0,0,1"
Padding="12,7">
<TextBlock x:Name="StatusText"
Text="Move mouse over the chart — data points, series legends, and axis labels are all hot-spot enabled"
Foreground="#FF00E5E5"
FontFamily="Consolas"
FontSize="12"
VerticalAlignment="Center"/>
</Border>
<!-- ═══════════════════════════════════════════════════════════════ -->
<!-- Row 1 — Chart -->
<!-- Tooltip: ConvPixelToGraph shows both Y-axis values at cursor -->
<!-- Status bar: GetHotSpot identifies named chart elements -->
<!-- Right-click for context menu · Left-drag to zoom -->
<!-- ═══════════════════════════════════════════════════════════════ -->
<Gigasoft:PegoWpf x:Name="Pego1"
Grid.Row="1"
Loaded="Pego1_Loaded"
MouseMove="Pego1_MouseMove"
PeCustomTrackingDataText="Pego1_PeCustomTrackingDataText"/>
</Grid>
</Window>