|
<UserControl x:Class="ColorPicker.NewCurrent"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="100" d:DesignWidth="100">
<UserControl.Resources>
<DrawingBrush Viewport="0.0,0.0,0.1,0.4" TileMode="Tile" x:Key="CheckerBoard" >
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="White">
<GeometryDrawing.Geometry>
<RectangleGeometry Rect="0,0,10,10" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
<GeometryDrawing>
<GeometryDrawing.Geometry>
<GeometryGroup>
<RectangleGeometry Rect="0,0,5,5" />
<RectangleGeometry Rect="5,5,5,5" />
</GeometryGroup>
</GeometryDrawing.Geometry>
<GeometryDrawing.Brush>
<SolidColorBrush Color="#d7d7d7"/>
</GeometryDrawing.Brush>
</GeometryDrawing>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</UserControl.Resources>
<Grid Name="LayoutRoot">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="35*" />
<RowDefinition Height="35*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Center" Name="tbNew">new</TextBlock>
<Rectangle Grid.Row="1" Name="rNewBG" Fill="{StaticResource CheckerBoard}" />
<Rectangle Grid.Row="1" Name="rNew" Fill="gray" />
<Rectangle Grid.Row="2" Name="rCurrentBG" Fill="{StaticResource CheckerBoard}" />
<Rectangle Grid.Row="2" Name="rCurrent" Fill="Black"/>
<TextBlock Text="current" Grid.Row="3" HorizontalAlignment="Center" Name="tbCurrent" />
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Written software for what seems like forever. I'm currenly infatuated with WPF. Hopefully my affections are returned.