Back to Devexpress

ShapeTitleOptions Class

wpf-devexpress-dot-xpf-dot-map-0a0a7c69.md

latest2.7 KB
Original Source

ShapeTitleOptions Class

Contains options that define the appearance and behavior of shape titles.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class ShapeTitleOptions :
    MapDependencyObject
vb
Public Class ShapeTitleOptions
    Inherits MapDependencyObject

The following members return ShapeTitleOptions objects:

Example

The following example demonstrates how to customize the map shape title.

To customize a title, do the following.

xaml
<dxm:ShapeTitleOptions x:Key="titleOptions" 
                       Pattern="{}{Name}" Visible="True">
    <dxm:ShapeTitleOptions.Template>
        <DataTemplate>
            <TextBlock Text="{Binding Text}"
                       Foreground="Blue" Margin="0,0,0,20"/>
        </DataTemplate>
    </dxm:ShapeTitleOptions.Template>
</dxm:ShapeTitleOptions>
                    <dxm:MapDot Location="51.507222, -0.1275" Size="10" Fill="Red" 
                                TitleOptions="{StaticResource titleOptions}">
                        <dxm:MapDot.Attributes>
                            <dxm:MapItemAttribute Name="Name" Value="London"/>
                        </dxm:MapDot.Attributes>
                    </dxm:MapDot>

Inheritance

Object DispatcherObject DependencyObject Freezable MapDependencyObject ShapeTitleOptions

See Also

ShapeTitleOptions Members

DevExpress.Xpf.Map Namespace