PageRenderTime 37ms CodeModel.GetById 9ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/DevSamples/PaletteControlSampleApp/Window1.xaml

#
XAML | 23 lines | 21 code | 2 blank | 0 comment | 0 complexity | a04c1085885c45c0795abe5d2f502d74 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. <Window x:Class="PaletteControlSampleApp.Window1"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
  5. Title="Window1" Height="340" Width="300">
  6. <Grid>
  7. <StackPanel>
  8. <GroupBox Header="HSB Palette">
  9. <StackPanel>
  10. <d3:PaletteControl Name="paletteControl">
  11. </d3:PaletteControl>
  12. <Slider Name="startSlider" ValueChanged="startSlider_ValueChanged" Minimum="0" Maximum="360" Value="0"/>
  13. <Slider Name="widthSlider" ValueChanged="widthSlider_ValueChanged" Minimum="0" Maximum="720" Value="360"/>
  14. </StackPanel>
  15. </GroupBox>
  16. <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.RedGreenBluePalette}" ShowAxis="False" PaletteHeight="100"/>
  17. <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.BlackAndWhitePalette}" ShowAxis="False" Height="60"/>
  18. <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.BlueOrangePalette}" ShowAxis="False"/>
  19. </StackPanel>
  20. </Grid>
  21. </Window>