mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
Adding in HitTester App
This commit is contained in:
36
tools/FancyZone_HitTest/FancyZone_HitTest/MainWindow.xaml
Normal file
36
tools/FancyZone_HitTest/FancyZone_HitTest/MainWindow.xaml
Normal file
@@ -0,0 +1,36 @@
|
||||
<Window x:Class="FancyZone_HitTest.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:local="clr-namespace:FancyZone_HitTest"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Width="1024" Height="768">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="200" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid MouseMove="Grid_MouseMove" Name="hitTestGrid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
|
||||
<Rectangle Fill="#ff0000" Grid.Column="0" Name="a" />
|
||||
<Rectangle Fill="#00ff00" Grid.Column="1" Name="b" />
|
||||
<Rectangle Fill="#0000ff" Grid.Column="2" Name="c" />
|
||||
<Rectangle Fill="#aabbff" Grid.ColumnSpan="3" Name="d" Width="550" Height="500" />
|
||||
<!--Height="600"-->
|
||||
<Rectangle Fill="#aabbff" Grid.ColumnSpan="3" Name="f" Height="400" Width="400" />
|
||||
<Rectangle Fill="Orange" Grid.ColumnSpan="3" Name="e"/>
|
||||
|
||||
</Grid>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock>Calculations</TextBlock>
|
||||
<TextBlock x:Name="itemsHit" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user