All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

CustomDigitalGaugeLayerPresentation Class

Contains presentation settings that specify the digital gauge layer appearance.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v20.1.dll

Declaration

public class CustomDigitalGaugeLayerPresentation :
    DigitalGaugeLayerPresentation
Public Class CustomDigitalGaugeLayerPresentation
    Inherits DigitalGaugeLayerPresentation

Examples

This example demonstrates how to define a custom digital gauge layer presentation.

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:GaugesDemoApp"
        xmlns:dxga="http://schemas.devexpress.com/winfx/2008/xaml/gauges" 
        x:Class="GaugesDemoApp.MainWindow"
        Title="MainWindow" Height="200" Width="300">
    <Grid>
        <dxga:DigitalGaugeControl Text="12:45">
            <dxga:DigitalGaugeControl.Layers>
                <dxga:DigitalGaugeLayer>
                    <dxga:DigitalGaugeLayer.Presentation>
                        <dxga:CustomDigitalGaugeLayerPresentation>
                            <dxga:CustomDigitalGaugeLayerPresentation.GaugeLayerTemplate>
                                <ControlTemplate>
                                    <Border CornerRadius="10" BorderThickness="3" BorderBrush="Black" Background="LightGray">
                                        <Border CornerRadius="10" BorderThickness="3" BorderBrush="Black" Background="#FFf0f0f0" Margin="10"/>
                                    </Border>
                                </ControlTemplate>
                            </dxga:CustomDigitalGaugeLayerPresentation.GaugeLayerTemplate>
                        </dxga:CustomDigitalGaugeLayerPresentation>
                    </dxga:DigitalGaugeLayer.Presentation>
                </dxga:DigitalGaugeLayer>
            </dxga:DigitalGaugeControl.Layers>
            <dxga:DigitalGaugeControl.SymbolView>
                <dxga:MatrixView8x14>
                    <dxga:MatrixView8x14.Presentation>
                        <dxga:DefaultMatrix8x14Presentation FillInactive="Transparent"/>
                    </dxga:MatrixView8x14.Presentation>
                </dxga:MatrixView8x14>
            </dxga:DigitalGaugeControl.SymbolView>
        </dxga:DigitalGaugeControl>
    </Grid>
</Window>

The image below illustrates the result.

See Also