1
0

MainWindow.xaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Window xmlns="https://github.com/avaloniaui"
  2. Title="AvaloniaUI Rendering Test"
  3. xmlns:pages="clr-namespace:RenderDemo.Pages"
  4. Width="800"
  5. Height="600">
  6. <DockPanel>
  7. <Menu DockPanel.Dock="Top">
  8. <MenuItem Header="Rendering">
  9. <MenuItem Header="Draw Dirty Rects" Command="{Binding ToggleDrawDirtyRects}">
  10. <MenuItem.Icon>
  11. <CheckBox BorderThickness="0"
  12. IsHitTestVisible="False"
  13. IsChecked="{Binding DrawDirtyRects}"/>
  14. </MenuItem.Icon>
  15. </MenuItem>
  16. <MenuItem Header="Draw FPS" Command="{Binding ToggleDrawFps}">
  17. <MenuItem.Icon>
  18. <CheckBox BorderThickness="0"
  19. IsHitTestVisible="False"
  20. IsChecked="{Binding DrawFps}"/>
  21. </MenuItem.Icon>
  22. </MenuItem>
  23. </MenuItem>
  24. </Menu>
  25. <TabControl Classes="sidebar">
  26. <TabControl.PageTransition>
  27. <CrossFade Duration="0.25"/>
  28. </TabControl.PageTransition>
  29. <TabItem Header="Animations"><pages:AnimationsPage/></TabItem>
  30. <TabItem Header="Clipping"><pages:ClippingPage/></TabItem>
  31. <TabItem Header="Drawing"><pages:DrawingPage/></TabItem>
  32. </TabControl>
  33. </DockPanel>
  34. </Window>