Back to Devexpress

FixedMiniMapBehavior.ZoomLevel Property

wpf-devexpress-dot-xpf-dot-map-dot-fixedminimapbehavior-495b6567.md

latest2.5 KB
Original Source

FixedMiniMapBehavior.ZoomLevel Property

Gets or sets the zoom level of a mini map.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public double ZoomLevel { get; set; }
vb
Public Property ZoomLevel As Double

Property Value

TypeDescription
Double

A double value, specifying the zoom level.

|

Example

This example demonstrates how to customize mini map behavior.

The Mini map supports two behavior types.

To specify the behavior, assign the required behavior class to the MiniMap.Behavior property.

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>
<StackPanel Grid.Row="2" Orientation="Vertical" Margin ="4,2,4,4">
    <Label>Mini Map Behavior:</Label>
    <ListBox Name="lbBehavior" SelectedIndex="0">
        <ListBox.Items>
            <dxm:FixedMiniMapBehavior ZoomLevel="2" CenterPoint="25,55"/>
            <dxm:DynamicMiniMapBehavior ZoomOffset="-2"/>
        </ListBox.Items>
    </ListBox>
</StackPanel>

See Also

FixedMiniMapBehavior Class

FixedMiniMapBehavior Members

DevExpress.Xpf.Map Namespace