Use Bullet Decorator : BulletDecorator « Windows Presentation Foundation « VB.Net






Use Bullet Decorator

Use Bullet Decorator
      

<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Use Bullet Decorator" Height="300" Width="300">
    <Grid>
        <BulletDecorator Height="35" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" Background="Pink">
            <BulletDecorator.Bullet>
                <Image VerticalAlignment="Center" Width="15" Height="15" Source="smile.bmp" />
            </BulletDecorator.Bullet>
            <Label Width="70" Height="25" Foreground="Black" Background="Yellow" BorderBrush="Red" VerticalAlignment="Center">Some text</Label>
        </BulletDecorator>
    </Grid>
</Window>

   
    
    
    
    
    
  








Related examples in the same category