|
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ec="http://schemas.microsoft.com/expression/2010/controls"
x:Class="PathListBoxDemo.MainPage"
Width="640" Height="480">
<UserControl.Resources>
<Storyboard x:Name="sb_CircularAnimation"/>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<Path x:Name="path" Data="M437.5,210 C437.5,324.59909 340.12195,417.5 220,417.5 C99.878067,417.5 2.5,324.59909 2.5,210 C2.5,95.400917 99.878067,2.5 220,2.5 C340.12195,2.5 437.5,95.400917 437.5,210 z" Margin="100,30" Stretch="Fill" StrokeThickness="5">
<Path.Fill>
<RadialGradientBrush>
<GradientStop Color="#4CFFB74D" Offset="0"/>
<GradientStop Color="#4CFF9700" Offset="1"/>
<GradientStop Color="#9DFFEFD8" Offset="0.5"/>
</RadialGradientBrush>
</Path.Fill>
<Path.Stroke>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFA000FF" Offset="0"/>
<GradientStop Color="Red" Offset="0.2"/>
<GradientStop Color="#FFF1FF00" Offset="0.4"/>
<GradientStop Color="#FF0004FF" Offset="0.6"/>
<GradientStop Color="#FF08FF00" Offset="1"/>
<GradientStop Color="#FFFFA400" Offset="0.8"/>
</LinearGradientBrush>
</Path.Stroke>
</Path>
<ec:PathListBox x:Name="pathListBox" HorizontalAlignment="Left" Height="100"
VerticalAlignment="Top" Width="100" FontSize="18.667"
FontWeight="Bold">
<ec:PathListBox.LayoutPaths>
<ec:LayoutPath SourceElement="{Binding ElementName=path}" Padding="35" Orientation="OrientToPath"/>
</ec:PathListBox.LayoutPaths>
</ec:PathListBox>
</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.
Kunal Chowdhury is a former Microsoft "Windows Platform Development" MVP (Most Valuable Professional, 2010 - 2018), a Codeproject Mentor, Speaker in various Microsoft events, Author, passionate Blogger and a Senior Technical Lead by profession.
He is currently working in an MNC located in India. He has a very good skill over XAML, C#, Silverlight, Windows Phone, WPF and Windows app development. He posts his findings, articles, tutorials in his technical blog (www.kunal-chowdhury.com) and CodeProject.
Books authored:
Connect with Kunal on: