Table of Contents
Padding Property

Gets or sets a value that specifies the padding of this gauge shape from all sides. This is a dependency property.

Syntax
 public Double Padding { get; set; }

Property Value

A Double value that specifies the distance from the edge. The default value is 0.0.

Example

The following sample demonstrates the effect of the Padding property:

XAML
<Window x:Class="GaugeShapes.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:eo="http://schemas.essentialobjects.com/wpf/"
        Title="MainWindow" 
        Height="300" 
        Width="350">
    
    <Grid>
        <Grid Width="220" Height="220">
            <gs:QuarterGaugeShape Fill="#282923" />
            <gs:QuarterGaugeShape Fill="#3A3A38" Padding="20" />
        </Grid>
    </Grid>

</Window>

The previous XAML markup will render the following result:

See Also