Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/WPF/CS/MapDemo.Wpf/Modules/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/WPF/CS/MapDemo.Wpf/Modules/MapElements.xaml

<local:MapDemoModule x:Class="MapDemo.MapElements"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:dxdb="http://schemas.devexpress.com/winfx/2008/xaml/demobase"
                 xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                 xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                 xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map"
                 xmlns:local="clr-namespace:MapDemo"
                 mc:Ignorable="d" d:DesignHeight="557" d:DesignWidth="2643">
    <local:MapDemoModule.Resources>
        <ResourceDictionary>
            <local:DemoValuesProvider x:Key="DemoValuesProvider" />
            <DataTemplate x:Key="airportTemplate">
                <Grid Width="12" Height="12">
                    <Ellipse Fill="#FF333333"/>
                    <Ellipse Margin="3" Fill="White"/>
                    <Grid.RenderTransform>
                        <TranslateTransform X="-6" Y="-6"/>
                    </Grid.RenderTransform>
                </Grid>
            </DataTemplate>
            <DataTemplate x:Key="planeTemplate">
                <Grid Background="Transparent">
                    <Path Stretch="Fill" Fill="#FFC0FF6A" Data="F1 M 789,570C 790.104,570 791,570.896 791,572L 791,572.001L 791,582L 804.999,588L 805,590L 791,588L 789.999,598L 792.999,600L 792.999,602L 789.999,601L 
                        788.999,602L 787.999,601L 784.999,602L 784.999,600L 787.999,598L 787,588L 773,590L 772.999,588L 787,582L 787,572C 787,570.896 787.895,570 789,570 Z "
                        HorizontalAlignment="Center" Height="40" Width="40" UseLayoutRounding="False" VerticalAlignment="Center" Stroke="#BF000000"/>
                    <Grid.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="{Binding Course}" CenterX="20" CenterY="20"/>
                            <TranslateTransform X="-20" Y="-20"/>
                        </TransformGroup>
                    </Grid.RenderTransform>
                </Grid>
            </DataTemplate>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/MapDemo;component/Themes/generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </local:MapDemoModule.Resources>
    <dxdb:DemoModuleControl>
        <dxdb:DemoModuleControl.OptionsContent>
            <StackPanel MinWidth="100">
                <dx:GroupFrame Header="Time Scale" Margin="0,0,0,10">
                    <dxe:TrackBarEdit x:Name="tbSpeedScale" Minimum="1" Maximum="100" IsSnapToTickEnabled="True" EditValueChanged="tbSpeedScale_EditValueChanged" Value="80"/>
                </dx:GroupFrame>
            </StackPanel>
        </dxdb:DemoModuleControl.OptionsContent>
        <Grid>
            <dxm:MapControl ZoomLevel="3" CenterPoint="26,-26" FlowDirection="LeftToRight" SelectionMode="Single">
                <dxm:ImageTilesLayer x:Name="tilesLayer">
                    <dxm:ImageTilesLayer.DataProvider>
                        <dxm:BingMapDataProvider Kind="Road" BingKey="{Binding DevexpressBingKey, Source={StaticResource DemoValuesProvider}}"/>
                    </dxm:ImageTilesLayer.DataProvider>
                </dxm:ImageTilesLayer>
                <dxm:VectorLayer ItemsSource="{Binding ActualAirPath}" EnableHighlighting="False"/>
                <dxm:VectorLayer ItemsSource="{Binding Planes}" EnableHighlighting="False" SelectedItem="{Binding SelectedPlane, Mode=TwoWay}"/>
            </dxm:MapControl>
            <local:PlaneInfoPanel x:Name="planeInfoPanel" HorizontalAlignment="Right" Margin="0,5,5,5" VerticalAlignment="Top" Visibility="Visible"/>
        </Grid>
    </dxdb:DemoModuleControl>
</local:MapDemoModule>