Avalonia/samples/RenderDemo/MainWindow.xaml

99 строки
3.4 KiB
XML

<Window x:Class="RenderDemo.MainWindow"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:ControlSamples"
xmlns:pages="using:RenderDemo.Pages"
xmlns:viewModels="using:RenderDemo.ViewModels"
Title="AvaloniaUI Rendering Test"
x:DataType="viewModels:MainWindowViewModel"
Width="{Binding Width, Mode=TwoWay}"
Height="{Binding Height, Mode=TwoWay}">
<controls:HamburgerMenu ExpandedModeThresholdWidth="760">
<FlyoutBase.AttachedFlyout>
<MenuFlyout>
<MenuItem Header="Rendering">
<MenuItem Command="{Binding ToggleDrawDirtyRects}" Header="Draw Dirty Rects">
<MenuItem.Icon>
<CheckBox BorderThickness="0"
IsChecked="{Binding DrawDirtyRects}"
IsHitTestVisible="False" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Command="{Binding ToggleDrawFps}" Header="Draw FPS">
<MenuItem.Icon>
<CheckBox BorderThickness="0"
IsChecked="{Binding DrawFps}"
IsHitTestVisible="False" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Command="{Binding ToggleDrawLayoutTimeGraph}" Header="Draw layout time graph">
<MenuItem.Icon>
<CheckBox BorderThickness="0"
IsChecked="{Binding DrawLayoutTimeGraph}"
IsHitTestVisible="False" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Command="{Binding ToggleDrawRenderTimeGraph}" Header="Draw render time graph">
<MenuItem.Icon>
<CheckBox BorderThickness="0"
IsChecked="{Binding DrawRenderTimeGraph}"
IsHitTestVisible="False" />
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Header="Tests">
<MenuItem Command="{Binding ResizeWindow}" Header="Resize window" />
</MenuItem>
</MenuFlyout>
</FlyoutBase.AttachedFlyout>
<TabItem Header="Animations">
<pages:AnimationsPage />
</TabItem>
<TabItem Header="Transitions">
<pages:TransitionsPage />
</TabItem>
<TabItem Header="Custom Animator">
<pages:CustomAnimatorPage />
</TabItem>
<TabItem Header="Spring Animation">
<pages:SpringAnimationsPage />
</TabItem>
<TabItem Header="Clipping">
<pages:ClippingPage />
</TabItem>
<TabItem Header="Drawing">
<pages:DrawingPage />
</TabItem>
<TabItem Header="SkCanvas">
<pages:CustomSkiaPage />
</TabItem>
<TabItem Header="RenderTargetBitmap">
<pages:RenderTargetBitmapPage />
</TabItem>
<TabItem Header="WriteableBitmap">
<pages:WriteableBitmapPage />
</TabItem>
<TabItem Header="GlyphRun">
<pages:GlyphRunPage />
</TabItem>
<TabItem Header="FormattedText">
<pages:FormattedTextPage />
</TabItem>
<TabItem Header="TextFormatter">
<pages:TextFormatterPage />
</TabItem>
<TabItem Header="LineBounds">
<pages:LineBoundsPage />
</TabItem>
<TabItem Header="Path Measurement">
<pages:PathMeasurementPage />
</TabItem>
<TabItem Header="Brushes">
<pages:BrushesPage />
</TabItem>
<TabItem Header="3D Transformation">
<pages:Transform3DPage />
</TabItem>
</controls:HamburgerMenu>
</Window>