Back to Devexpress

SymbolViewBase.Width Property

wpf-devexpress-dot-xpf-dot-gauges-dot-symbolviewbase-fd25e6b4.md

latest2.8 KB
Original Source

SymbolViewBase.Width Property

Specifies the symbol’s width for the current symbol view.

Namespace : DevExpress.Xpf.Gauges

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

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public SymbolLength Width { get; set; }
vb
Public Property Width As SymbolLength

Property Value

TypeDescription
SymbolLength

A SymbolLength object that is the symbol’s width.

|

Example

The following example demonstrates how to set the SymbolViewBase.Width and SymbolViewBase.Height properties in proportional values.

xaml
<dxga:DigitalGaugeControl.SymbolView>
    <dxga:MatrixView8x14 Height="2.5*" Width="1.5*">
    </dxga:MatrixView8x14>
</dxga:DigitalGaugeControl.SymbolView>

The following example demonstrates how to set the SymbolViewBase.Width and SymbolViewBase.Height properties in absolute values.

xaml
<dxga:DigitalGaugeControl.SymbolView>
    <dxga:MatrixView8x14 Height="40" Width="30">
    </dxga:MatrixView8x14>
</dxga:DigitalGaugeControl.SymbolView>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Width property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-gauges-set-width-and-height-of-symbols-in-digital-gauge-control/CS/MainWindow.xaml.cs#L13

csharp
// Specify fixed values for symbol height and width.
matrixView.Width = new SymbolLength(SymbolLengthType.Fixed, 44);
matrixView.Height = new SymbolLength(SymbolLengthType.Fixed, 50);

See Also

SymbolViewBase Class

SymbolViewBase Members

DevExpress.Xpf.Gauges Namespace