This is a migrated thread and some comments may be shown as answers.

Bug in Q1 2012: Context menu is positioned incorrectly when opened 1st time

1 Answer 24 Views
Menu
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 20 Feb 2012, 09:08 AM
The following xaml reproduces the bug. Click the HyperlinkButton once makes the menu appear in the top left corner of the page. When clicked a 2nd time, the menu appears in the correct position. Can this be fixed in the next internal build? If so, when is it coming out?


<UserControl x:Class="RadWindowAndRadMenuBugs.MainPage"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400">
 
    <Grid x:Name="LayoutRoot"
          Background="White">
 
        <StackPanel HorizontalAlignment="Center"
                    VerticalAlignment="Center">
 
            <HyperlinkButton Margin="15"
                             FontSize="16"
                             Content="Context Menu (opens on click)"
                             HorizontalAlignment="Center"
                             VerticalAlignment="Center">
                <telerik:RadContextMenu.ContextMenu>
                    <telerik:RadContextMenu EventName="Click">
                        <telerik:RadMenuItem Header="Item 1"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Item 2"></telerik:RadMenuItem>
                    </telerik:RadContextMenu>
                </telerik:RadContextMenu.ContextMenu>
            </HyperlinkButton>
 
        </StackPanel>
 
    </Grid>
</UserControl>

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 22 Feb 2012, 01:54 PM
Hi,

Thank you for your feedback.

We successfully reproduced this issue. We will fix it for the next internal build (next Monday). You can track the issue status into our PITS here.

Kind regards,
Ivo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Menu
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or