Back to Devexpress

MiniMap.ViewportTemplate Property

wpf-devexpress-dot-xpf-dot-map-dot-minimap-1b1d1295.md

latest1.7 KB
Original Source

MiniMap.ViewportTemplate Property

Gets or sets the template that defines the appearance of a mini map.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public DataTemplate ViewportTemplate { get; set; }
vb
Public Property ViewportTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A ControlTemplate object that represents the template that displays a mini map.

|

Example

xaml
<dxm:MiniMap Name="miniMap"
             Alignment="{Binding ElementName=lbAlignments, Path=SelectedValue}"
             Behavior="{Binding ElementName=lbBehavior, Path=SelectedValue}">
    <dxm:MiniMap.ViewportTemplate>
        <DataTemplate>
            <Rectangle Fill="#80FF6600" Stroke="#ffFF6600"/>
        </DataTemplate>
    </dxm:MiniMap.ViewportTemplate>
    <dxm:MiniMapImageTilesLayer>
        <dxm:BingMapDataProvider BingKey="{StaticResource bingKey}"/>
    </dxm:MiniMapImageTilesLayer>
</dxm:MiniMap>

See Also

MiniMap Class

MiniMap Members

DevExpress.Xpf.Map Namespace