Contextmenu positioning

2 posts, 0 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 06 Nov 2009 Link to this post

    After upgrading to Q3 I am finding that the context menus are no longer positioned the way they used to be. They used to pop up right next to the mouse pointer, but now they align themselves to the top left corner of the attached element. See the following code for an example:

    <UserControl x:Class="RadControlsTest01.SilverlightControl1" 
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                 xmlns:telerikbase="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
                 xmlns:teleriknav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        <Grid x:Name="LayoutRoot" 
              Background="White"
     
            <StackPanel> 
                <HyperlinkButton Content="Open menu" 
                                 Margin="30" 
                                 FontSize="18" 
                                 VerticalAlignment="Top" 
                                 HorizontalAlignment="Left"
                    <teleriknav:RadContextMenu.ContextMenu> 
                        <teleriknav:RadContextMenu EventName="Click"
                            <teleriknav:RadContextMenu.Items> 
     
                                <teleriknav:RadMenuItem Header="Item 1"></teleriknav:RadMenuItem> 
     
                                <teleriknav:RadMenuItem Header="Item 2"></teleriknav:RadMenuItem> 
     
                            </teleriknav:RadContextMenu.Items> 
                        </teleriknav:RadContextMenu> 
                    </teleriknav:RadContextMenu.ContextMenu> 
                </HyperlinkButton> 
     
                <Button Content="Open menu" 
                        Margin="30,0,30,30" 
                        FontSize="18" 
                        VerticalAlignment="Top" 
                        HorizontalAlignment="Left"
                    <teleriknav:RadContextMenu.ContextMenu> 
                        <teleriknav:RadContextMenu EventName="Click"
                            <teleriknav:RadContextMenu.Items> 
     
                                <teleriknav:RadMenuItem Header="Item 1"></teleriknav:RadMenuItem> 
     
                                <teleriknav:RadMenuItem Header="Item 2"></teleriknav:RadMenuItem> 
     
                            </teleriknav:RadContextMenu.Items> 
                        </teleriknav:RadContextMenu> 
                    </teleriknav:RadContextMenu.ContextMenu> 
                </Button> 
            </StackPanel> 
        </Grid> 
    </UserControl> 

  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 11 Nov 2009 Link to this post

    Hello hwsoderlund,

    Please excuse us for the inconvenience caused. We will fix the issue for the next internal build, scheduled for this Friday.

    All the best,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
Back to Top