ZIndex for items in InformationLayer

4 posts, 0 answers
  1. Warnestam
    Warnestam avatar
    83 posts
    Member since:
    Sep 2006

    Posted 24 May 2011 Link to this post

    Hi,

    I have a map with several overlapped items on it. I want to programmatically highlight one or several items by changing the ZIndex. Unfortunatly my ZIndex binding is not working (but the other ones works fine). Here is my XAML;

    <telerik:RadMap Margin="12" Name="radMap1">
                <telerik:InformationLayer x:Name="informationLayer"  >
                    <telerik:InformationLayer.ItemTemplate>
                        <DataTemplate>
                            <Ellipse  Name="myEllipse"
                                telerik:MapLayer.Location="{Binding Location}"
                                telerik:MapLayer.BaseZoomLevel="9"
                                Width="200"
                                Height="200"
                                Stroke="{Binding Stroke}"                           
                                StrokeThickness="3"
                                Fill="{Binding Fill}"     
                                Canvas.ZIndex="{Binding ZIndex}">
                                <telerik:MapLayer.HotSpot>
                                    <telerik:HotSpot X="0.5" Y="0.5"   />
                                </telerik:MapLayer.HotSpot>
                            </Ellipse>
                        </DataTemplate>
                    </telerik:InformationLayer.ItemTemplate>
                </telerik:InformationLayer>

    Best regards

    Robert Warnestam
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 27 May 2011 Link to this post

    Hello Warnestam,

    The ZIndex is attachable property of the Canvas element. The InformationLayer does not use Canvas, so ZIndex is not supported. The only way to bring some element to front of others is put it to the end of the collection which is items source for the information layer.

    Kind regards,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Warnestam
    Warnestam avatar
    83 posts
    Member since:
    Sep 2006

    Posted 27 May 2011 Link to this post

    Thanks for your reply Andrey,

    The Silverlight version of the RadMap supports ZIidex (http://www.telerik.com/community/forums/silverlight/map/z-order-pinpoints.aspx) so I just though that the WPF version was similar.

    I will try to reorder my items as you suggested instead.

    Regards

    Robert
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 31 May 2011 Link to this post

    Hello Warnestam,

    This post is more then 1 year old. Since this post we've changed the architecture of the information layer completely. So Silverlight version does not support ZIndex as well. 

    Regards,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top