PageRenderTime 21ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/DevSamples/ValueSelectionSampleApp/Window1.xaml

#
XAML | 41 lines | 35 code | 6 blank | 0 comment | 0 complexity | 09be432f5fff5b71ceffa3d93a4dc2da MD5 | raw file
Possible License(s): CC-BY-SA-3.0
 1<Window x:Class="ValueSelectionSampleApp.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		xmlns:local="clr-namespace:ValueSelectionSampleApp"
 6    Title="Window1" Height="320">
 7	
 8	<Grid>
 9		<StackPanel>
10			<d3:NumericSelector Name="doubleSelector"/>
11			<TextBlock>
12                <Run>Selected = </Run>
13                <TextBlock Text="{Binding ElementName=doubleSelector, Path=SelectedValue}"/>
14            </TextBlock>
15
16			<d3:IntegerSelector Name="integerSelector"/>
17			<TextBlock>
18                <Run>Selected = </Run>
19                <TextBlock Text="{Binding ElementName=integerSelector, Path=SelectedValue}"/>
20            </TextBlock>
21
22
23			<d3:DateTimeSelector Name="timeSelector"/>
24			<TextBlock>
25                <Run>Selected = </Run>
26                <TextBlock Text="{Binding ElementName=timeSelector, Path=SelectedValue}"/>
27            </TextBlock>
28
29			<d3:ColorSelector Name="colorSelector">
30				<d3:ColorSelector.Palette>
31					<d3:HsbPalette/>
32				</d3:ColorSelector.Palette>
33			</d3:ColorSelector>
34			
35			<Rectangle Width="200" Height="60" HorizontalAlignment="Center" VerticalAlignment="Stretch"
36					   Margin="20"
37					   Stroke="LightGray"
38					   Fill="{Binding ElementName=colorSelector, Path=SelectedBrush}"/>
39		</StackPanel>
40	</Grid>
41</Window>