Flow Right to Left Sub Menu opens to wrong direction - only in Windows 8 - by CSSForumEngineer

Status : 

  External<br /><br />
		This item may be valid but belongs to an external system out of the direct control of this product team.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 777345 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 1/23/2013 11:09:54 PM
Access Restriction Public

Description

This code works prefect on all windows. 
on Windows 8 the Sub Menu Aligns to the wrong side (as in LTR and not as it should be on RTL)
<Window x:Class="menutest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" FlowDirection="RightToLeft">
    <DockPanel>
        <Menu DockPanel.Dock="Top"  HorizontalAlignment="Left" Height="40" VerticalAlignment="Top" Width="100">
            <MenuItem Header="בדיקה">
                <MenuItem Header="בדיקה ארוכה מאוד"></MenuItem>
                <MenuItem Header="בדיקה ארוכה מאוד"></MenuItem>
                <MenuItem Header="בדיקה ארוכה מאוד"></MenuItem>
            </MenuItem>
        </Menu>
    </DockPanel>
</Window>

Here is the link of this thread: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/455f8a64-6519-4856-9282-8e0c73ed0229  
Sign in to post a comment.
Posted by Microsoft on 3/20/2015 at 9:58 AM
Check your registry. Many touch-enabled computers set HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\MenuDropAlignment to 1, so that submenus drop down to the left where a right-handed user can see them. Most applications, including those built with WPF, honor this setting. Change it to 0 to get the drop-to-the-right behavior. (You have to log off or restart before the setting takes effect.)
This is documented all over the web, for example here: https://social.technet.microsoft.com/Forums/en-US/4222e44b-f4da-4f59-b714-7ef0e32c41b6/windows-popup-menus-opens-on-left-side-like-in-arabic-or-israel-windows?forum=w7itproui
Posted by Michael J. Brown on 3/19/2015 at 11:36 PM
Has there been a resolution here, as I see it is closed? I too experience this in Windows 8 on my WPF app. The parent Menu control is left aligned, however the position of the MenuItems (pop up menus) are anchored to the opposite corner. It isn't really FlowDirection, as the text itself is correctly lined, but the window itself is pinned on the wrong corner.
Posted by Macy [MSFT] on 1/23/2013 at 11:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)