A newer version of this page is available. Switch to the current version.

MiniMap.ViewportTemplate Property

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

Namespace: DevExpress.Xpf.Map

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

Declaration

public DataTemplate ViewportTemplate { get; set; }

Property Value

Type Description
DataTemplate

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

Examples

<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