Back to Devexpress

TitleBase.Content Property

wpf-devexpress-dot-xpf-dot-charts-dot-titlebase.md

latest3.4 KB
Original Source

TitleBase.Content Property

Gets or sets the title’s content. This is a dependency property.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public object Content { get; set; }
vb
Public Property Content As Object

Property Value

TypeDescription
Object

An Object value that represents the title’s content.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Content 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-bind-a-range-control-to-a-chart-control/CS/GoldPrices/MainWindow.xaml#L32

xml
<dxc:ChartControl.Titles>
    <dxc:Title Content="Gold Price History in 2010"
        HorizontalAlignment="Center"/>

dashboard-constant-lines/CS/ConstantLineExtension.WPF/ConstantLinesConverter.cs#L40

csharp
line.Title = new ConstantLineTitle();
line.Title.Content = customConstantLine.LabelText;
line.LineStyle = new LineStyle();

wpf-dashboard-custom-properties/CS/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartOptions/ConstantLine.cs#L55

csharp
line.Title = new ConstantLineTitle();
line.Title.Content = "Value: " + moduleData.Value;
line.Title.Foreground = new SolidColorBrush(constantLineColor);

wpf-dashboard-custom-properties/VB/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartOptions/ConstantLine.vb#L77

vb
line.Title = New ConstantLineTitle()
line.Title.Content = "Value: " & moduleData.Value
line.Title.Foreground = New SolidColorBrush(constantLineColor)

See Also

ContentTemplate

TitleBase Class

TitleBase Members

DevExpress.Xpf.Charts Namespace