Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomMatrix5x8Presentation.InactiveSegmentTemplate Property

Gets or sets a template that configures the inactive segment appearance. This is a dependency property.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v24.2.dll

NuGet Package: DevExpress.Wpf.Gauges

#Declaration

public DataTemplate InactiveSegmentTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A control template that specifies the visual structure of the inactive segment.

#Example

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.

See Also