ShapeTitleOptions.Visible Property
OBSOLETE
The ShapeTitleOptions.Visible property is obsolete now. Use the VisibilityMode property instead.
Gets or sets a value specifying whether or not a shape titles should be visible.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
[Obsolete("The ShapeTitleOptions.Visible property is obsolete now. Use the ShapeTitleOptions.VisibilityMode property instead.")]
[PreferableMember("ShapeTitleOptions", "VisibilityMode", "VisibilityMode")]
[Browsable(false)]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true to display a shape title; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to Visible |
---|---|
MapBubble |
|
MapChartItemBase |
|
MapDot |
|
MapEllipse |
|
MapLine |
|
MapPath |
|
MapPie |
|
MapPolygon |
|
MapPolyline |
|
MapRectangle |
|
MapShape |
|
MapShapeBase |
|
VectorLayer |
|
Example
The following example demonstrates how to customize the map shape title.
To customize a title, do the following.
- Create a ShapeTitleOptions object.
- Specify the ShapeTitleOptions.Pattern and ShapeTitleOptions.Template properties.
- Assign the object to the MapShapeBase.TitleOptions property of the map shape.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-the-appearance-of-a-map-shape-title-e4221.
<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>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Visible 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.