PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 2ms 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
 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
13                    <Slider Name="startSlider" ValueChanged="startSlider_ValueChanged" Minimum="0" Maximum="360" Value="0"/>
14                    <Slider Name="widthSlider" ValueChanged="widthSlider_ValueChanged" Minimum="0" Maximum="720" Value="360"/>
15                </StackPanel>
16            </GroupBox>
17            
18            <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.RedGreenBluePalette}" ShowAxis="False" PaletteHeight="100"/>
19            <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.BlackAndWhitePalette}" ShowAxis="False" Height="60"/>
20            <d3:PaletteControl Palette="{x:Static d3:UniformLinearPalettes.BlueOrangePalette}" ShowAxis="False"/>
21        </StackPanel>
22    </Grid>
23</Window>