RandomTransferFunctionView.axaml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <UserControl
  2. x:Class="ShakerApp.Views.RandomTransferFunctionView"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:oxy="http://oxyplot.org/avalonia"
  8. xmlns:vm="using:ShakerApp.ViewModels"
  9. d:DesignHeight="450"
  10. d:DesignWidth="800"
  11. x:DataType="vm:RandomTransferFunctionViewModel"
  12. Background="Transparent"
  13. DataContext="{Binding Source={x:Static vm:RandomTransferFunctionViewModel.Instance}}"
  14. mc:Ignorable="d">
  15. <Grid RowDefinitions="*,56">
  16. <oxy:PlotView Background="Transparent" Model="{Binding PlotModel}" />
  17. <StackPanel
  18. Grid.Row="1"
  19. HorizontalAlignment="Center"
  20. VerticalAlignment="Center"
  21. Orientation="Horizontal">
  22. <Button
  23. Width="120"
  24. Command="{Binding StartCommand}"
  25. Content="{DynamicResource StartRandomTest}" />
  26. <Button
  27. Width="120"
  28. Margin="120,0,0,0"
  29. Command="{Binding CancelCommand}"
  30. Content="{DynamicResource Cancel}" />
  31. </StackPanel>
  32. </Grid>
  33. </UserControl>