Use Resource to fill an Ellipse : Resource « Windows Presentation Foundation « VB.Net
- VB.Net
- Windows Presentation Foundation
- Resource
Use Resource to fill an Ellipse

<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<SolidColorBrush x:Key="BlueBrush" Color="blue"/>
</Page.Resources>
<StackPanel>
<Ellipse Fill="{StaticResource BlueBrush}" Margin="40" Width="15" Height="25"/>
</StackPanel>
</Page>
Related examples in the same category