| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <Window xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:integrationTestApp="clr-namespace:IntegrationTestApp"
- x:Class="IntegrationTestApp.ShowWindowTest"
- Name="SecondaryWindow"
- x:DataType="Window"
- Title="Show Window Test">
- <Grid>
- <Grid Name="TitleAreaControl" IsVisible="False"
- Background="LightBlue" VerticalAlignment="Top" ZIndex="100"
- Margin="0,0,0,0">
- <TextBlock Text="Title Area Control (Tabs)"
- HorizontalAlignment="Center" VerticalAlignment="Center"
- Foreground="DarkBlue" FontWeight="Bold" />
- </Grid>
-
- <integrationTestApp:MeasureBorder Name="MyBorder" Background="{DynamicResource SystemRegionBrush}">
- <Grid ColumnDefinitions="Auto,Auto,50,Auto,Auto" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto">
- <Label Grid.Column="0" Grid.Row="1">Client Size</Label>
- <TextBox Name="CurrentClientSize" Grid.Column="1" Grid.Row="1" IsReadOnly="True"
- Text="{Binding ClientSize, Mode=OneWay}" />
- <Label Grid.Column="0" Grid.Row="2">Frame Size</Label>
- <TextBox Name="CurrentFrameSize" Grid.Column="1" Grid.Row="2" IsReadOnly="True"
- Text="{Binding FrameSize, Mode=OneWay}" />
- <Label Grid.Column="0" Grid.Row="3">Position</Label>
- <TextBox Name="CurrentPosition" Grid.Column="1" Grid.Row="3" IsReadOnly="True" />
- <Label Grid.Column="0" Grid.Row="4">Owner Rect</Label>
- <TextBox Name="CurrentOwnerRect" Grid.Column="1" Grid.Row="4" IsReadOnly="True" />
- <Label Grid.Column="0" Grid.Row="5">Screen Rect</Label>
- <TextBox Name="CurrentScreenRect" Grid.Column="1" Grid.Row="5" IsReadOnly="True" />
- <Label Grid.Column="0" Grid.Row="6">Scaling</Label>
- <TextBox Name="CurrentScaling" Grid.Column="1" Grid.Row="6" IsReadOnly="True" />
- <Label Grid.Column="0" Grid.Row="7">WindowState</Label>
- <ComboBox Name="CurrentWindowState" Grid.Column="1" Grid.Row="7" SelectedIndex="{Binding WindowState}">
- <ComboBoxItem Name="WindowStateNormal">Normal</ComboBoxItem>
- <ComboBoxItem Name="WindowStateMinimized">Minimized</ComboBoxItem>
- <ComboBoxItem Name="WindowStateMaximized">Maximized</ComboBoxItem>
- <ComboBoxItem Name="WindowStateFullScreen">FullScreen</ComboBoxItem>
- </ComboBox>
- <Label Grid.Column="0" Grid.Row="8">SystemDecorations</Label>
- <ComboBox Name="CurrentSystemDecorations" Grid.Column="1" Grid.Row="8" SelectedIndex="{Binding SystemDecorations}">
- <ComboBoxItem Name="SystemDecorationsNone">None</ComboBoxItem>
- <ComboBoxItem Name="SystemDecorationsBorderOnly">BorderOnly</ComboBoxItem>
- <ComboBoxItem Name="SystemDecorationsFull">Full</ComboBoxItem>
- </ComboBox>
- <CheckBox Name="CurrentExtendClientAreaToDecorationsHint" Grid.ColumnSpan="2" Grid.Row="9"
- IsChecked="{Binding ExtendClientAreaToDecorationsHint}">
- ExtendClientAreaToDecorationsHint
- </CheckBox>
- <Label Grid.Column="0" Grid.Row="10">Order (mac)</Label>
- <TextBox Name="CurrentOrder" Grid.Column="1" Grid.Row="10" IsReadOnly="True" />
-
- <Label Grid.Row="11" Content="MeasuredWith:" />
- <TextBlock Grid.Column="1" Grid.Row="11" Name="CurrentMeasuredWithText" Text="{Binding #MyBorder.MeasuredWith}" />
- <Label Grid.Column="3" Grid.Row="1">Mouse Move Event Count</Label>
- <TextBox Name="MouseMoveCount" Grid.Column="4" Grid.Row="1" IsReadOnly="True" Text="0" />
-
- <Label Grid.Column="3" Grid.Row="2">Mouse Down Event Count</Label>
- <TextBox Name="MouseDownCount" Grid.Column="4" Grid.Row="2" IsReadOnly="True" Text="0" />
-
- <Label Grid.Column="3" Grid.Row="3">Mouse Release Event Count</Label>
- <TextBox Name="MouseReleaseCount" Grid.Column="4" Grid.Row="3" IsReadOnly="True" Text="0" />
-
- <Label Grid.Column="3" Grid.Row="4">Double-Click Event Count</Label>
- <TextBox Name="DoubleClickCount" Grid.Column="4" Grid.Row="4" IsReadOnly="True" Text="0" />
-
- <StackPanel Orientation="Horizontal" Grid.Row="12" Grid.ColumnSpan="5">
- <Button Name="HideButton" Command="{Binding $parent[Window].Hide}">Hide</Button>
- <Button Name="AddToWidth" Click="AddToWidth_Click">Add to Width</Button>
- <Button Name="AddToHeight" Click="AddToHeight_Click">Add to Height</Button>
- </StackPanel>
-
- </Grid>
- </integrationTestApp:MeasureBorder>
- </Grid>
- </Window>
|