/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
- <Window x:Class="PaletteControlSampleApp.Window1"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
- Title="Window1" Height="340" Width="300">
- <Grid>
- <StackPanel>
- <GroupBox Header="HSB Palette">
- <StackPanel>
- <d3:PaletteControl Name="paletteControl">
- </d3:PaletteControl>
-
- <Slider Name="startSlider" ValueChanged="startSlider_ValueChanged" Minimum="0" Maximum="360" Value="0"/>
- <Slider Name="widthSlider" ValueChanged="widthSlider_ValueChanged" Minimum="0" Maximum="720" Value="360"/>
- </StackPanel>
- </GroupBox>
-
- <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.RedGreenBluePalette}" ShowAxis="False" PaletteHeight="100"/>
- <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.BlackAndWhitePalette}" ShowAxis="False" Height="60"/>
- <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.BlueOrangePalette}" ShowAxis="False"/>
- </StackPanel>
- </Grid>
- </Window>