mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-09 23:43:28 +02:00
Initial WPF content migrated (#17)
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
<Window
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="SDKSample.ControlTemplateButtonWindow"
|
||||
Title="Button with Control Template" Height="158" Width="290">
|
||||
|
||||
<!-- Button using an ellipse -->
|
||||
<Button Content="Click Me!" Click="button_Click">
|
||||
<Button.Template>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Grid Margin="5">
|
||||
<Ellipse Stroke="DarkBlue" StrokeThickness="2">
|
||||
<Ellipse.Fill>
|
||||
<RadialGradientBrush Center="0.3,0.2" RadiusX="0.5" RadiusY="0.5">
|
||||
<GradientStop Color="Azure" Offset="0.1" />
|
||||
<GradientStop Color="CornflowerBlue" Offset="1.1" />
|
||||
</RadialGradientBrush>
|
||||
</Ellipse.Fill>
|
||||
</Ellipse>
|
||||
<ContentPresenter Name="content" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Button.Template>
|
||||
|
||||
</Button>
|
||||
|
||||
</Window>
|
||||
Reference in New Issue
Block a user