This is a migrated thread and some comments may be shown as answers.
Contextmenu positioning
1 Answer 35 Views
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 06 Nov 2009, 03:24 PM
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> 

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 11 Nov 2009, 03:32 PM
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.
Tags
Menu
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or