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.

CustomMatrix5x8Presentation Class

Contains presentation settings that specify the segment appearance.

Namespace: DevExpress.Xpf.Gauges

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

Declaration

public class CustomMatrix5x8Presentation :
    Matrix5x8Presentation
Public Class CustomMatrix5x8Presentation
    Inherits Matrix5x8Presentation

Examples

This example demonstrates how to define a custom matrix 5x8 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="300" Width="500">
    <Grid>
        <dxga:DigitalGaugeControl Text="Ellipse">
            <dxga:DigitalGaugeControl.SymbolView>
                <dxga:MatrixView5x8>
                    <dxga:MatrixView5x8.Presentation>
                        <dxga:CustomMatrix5x8Presentation>
                            <dxga:CustomMatrix5x8Presentation.ActiveSegmentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <Ellipse Fill="Red" Margin="1"/>
                                        <Ellipse Fill="Yellow" Margin="1.5"/>
                                    </Grid>
                                </DataTemplate>
                            </dxga:CustomMatrix5x8Presentation.ActiveSegmentTemplate>
                            <dxga:CustomMatrix5x8Presentation.InactiveSegmentTemplate>
                                <DataTemplate>
                                    <Ellipse Fill="LightGray" Margin="1.5"/>
                                </DataTemplate>
                            </dxga:CustomMatrix5x8Presentation.InactiveSegmentTemplate>
                        </dxga:CustomMatrix5x8Presentation>
                    </dxga:MatrixView5x8.Presentation>
                </dxga:MatrixView5x8>
            </dxga:DigitalGaugeControl.SymbolView>
        </dxga:DigitalGaugeControl>
    </Grid>
</Window>

The image below illustrates the result.

Inheritance

See Also