GpuDemo.axaml 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="GpuInterop.GpuDemo"
  4. xmlns:local="clr-namespace:GpuInterop;assembly=GpuInterop">
  5. <Grid>
  6. <ContentControl Content="{Binding $parent[local:GpuDemo].Demo}" />
  7. <StackPanel>
  8. <TextBlock Margin="0 40 0 0" Text="{Binding $parent[local:GpuDemo].Info}"/>
  9. </StackPanel>
  10. <Grid ColumnDefinitions="*,Auto" Margin="20">
  11. <StackPanel Grid.Column="1" MinWidth="300">
  12. <TextBlock>Yaw</TextBlock>
  13. <Slider Value="{Binding $parent[local:GpuDemo].Yaw, Mode=TwoWay}" Maximum="10"/>
  14. <TextBlock>Pitch</TextBlock>
  15. <Slider Value="{Binding $parent[local:GpuDemo].Pitch, Mode=TwoWay}" Maximum="10"/>
  16. <TextBlock>Roll</TextBlock>
  17. <Slider Value="{Binding $parent[local:GpuDemo].Roll, Mode=TwoWay}" Maximum="10"/>
  18. <StackPanel IsVisible="{Binding $parent[local:GpuDemo].DiscoVisible}">
  19. <StackPanel Orientation="Horizontal">
  20. <TextBlock FontWeight="Bold" Foreground="#C000C0">D</TextBlock>
  21. <TextBlock FontWeight="Bold" Foreground="#00C090">I</TextBlock>
  22. <TextBlock FontWeight="Bold" Foreground="#90C000">S</TextBlock>
  23. <TextBlock FontWeight="Bold" Foreground="#C09000">C</TextBlock>
  24. <TextBlock FontWeight="Bold" Foreground="#00C090">O</TextBlock>
  25. </StackPanel>
  26. <Slider Value="{Binding $parent[local:GpuDemo].Disco, Mode=TwoWay}" Maximum="1"/>
  27. </StackPanel>
  28. </StackPanel>
  29. </Grid>
  30. </Grid>
  31. </UserControl>