Ribbon problem applicationmenu

Jan 28, 2009 at 10:05 PM
Hi! 
I write the next code and result is: 


but no work! why?

<r:RibbonApplicationMenu >                    
                    <r:RibbonApplicationMenu.Command>
                        <r:RibbonCommand Executed="..." LargeImageSource="access.png" ToolTipTitle="Tutor" ToolTipImageSource="energy.png" ToolTipDescription="Add Info." />
                    </r:RibbonApplicationMenu.Command>                    
                    <r:RibbonApplicationMenu.RecentItemList>
                        <Rectangle Height="300"/>
                    </r:RibbonApplicationMenu.RecentItemList>
                    <r:RibbonApplicationMenuItem>
                        <r:RibbonApplicationMenuItem.Command>
                            <r:RibbonCommand ToolTipTitle="Test." ToolTipImageSource="energy.png" LargeImageSource="energy.png" LabelTitle="_Close" LabelDescription="..." Executed="..."/>      
                        </r:RibbonApplicationMenuItem.Command>
                    </r:RibbonApplicationMenuItem>
                    <r:RibbonApplicationMenuItem>
                        <r:RibbonApplicationMenuItem.Command>
                            <r:RibbonCommand LabelTitle="Menu" LargeImageSource="access.png" Executed="..."/>
                        </r:RibbonApplicationMenuItem.Command>

                        <r:RibbonApplicationMenuItem>
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand LabelTitle="Submenu 1" LargeImageSource="energy.png" Executed="RibbonCommand_Executed_3"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>

                        <r:RibbonApplicationMenuItem>
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand LabelTitle="Submenu 2" LargeImageSource="drop.png" Executed="RibbonCommand_Executed_3"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>

                        <r:RibbonApplicationMenuItem>
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand LabelTitle="Submenu 3" LargeImageSource="access.png" Executed="RibbonCommand_Executed_3"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>
                    </r:RibbonApplicationMenuItem>
                </r:RibbonApplicationMenu>

Tanks!
Coordinator
Jan 29, 2009 at 7:47 PM
Hi pcdny,

I tried out your markup (which does not have any mistakes) and was not able to reproduce the problem on my machine.  It appears the the submenu Popup is not appearing in the correct place, so I'd like to figure out why that is.  Could you tell me a little more about your application and environment?  For example:

- Have you retemplated the Ribbon at all?
- Do you use any implicit Styles in your application?
- What operating system and theme are you using?  Are you using a tablet or multitouch computer?  Have you tried this on a different computer, and if so, do you see the same results?
- Does this only occur when you use RibbonWindow or does it happen in a standard Window also?

Thanks!
Samantha
Jan 30, 2009 at 6:07 PM
Hi Samantha!

Effectively, the problem does not occur in winXP sp3. 
My computer is DELL, no tablet, no touch. My SO is Vista Home Prem SP1, Res Screen 1280x800.

the menus in vista are: 

and Ribbon around the left side of the screen does the following:

usually I don't use vista and I don't if this is normal.

My only resources are:

<r:RibbonWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary 
                   Source="/RibbonControlsLibrary;component/Themes/Office2007Black.xaml"/>                
            </ResourceDictionary.MergedDictionaries>
            <LinearGradientBrush x:Key="whiteBackBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientStop Offset="0" Color="#80FFFFFF" />
                <GradientStop Offset="1" Color="#80F0F0FB" />
            </LinearGradientBrush>
            <Style TargetType="HeaderedContentControl">

                <Setter Property="Focusable" Value="False"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="HeaderedContentControl">
                            <StackPanel>
                                <ContentPresenter Margin="2" ContentSource="Header" Focusable="False" VerticalAlignment="Center" 
                                  TextBlock.Foreground="Navy" TextBlock.FontWeight="Bold"/>
                                <Border Margin="2" HorizontalAlignment="Stretch" BorderBrush="LightGray" BorderThickness="0.5"/>
                                <ContentPresenter Margin="2" ContentSource="Content" VerticalAlignment="Center"/>
                            </StackPanel>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ResourceDictionary>              
    </r:RibbonWindow.Resources>


Coordinator
Feb 4, 2009 at 6:45 PM
Hi pcdny,

I think you may have uncovered a bug in our Popup control.  We're still investigating this, so I don't have a solution or workaround yet, but I just wanted to let you know that we are looking into it.  We think that the Popup is picking up on a system setting which is telling your menus to align left (as in the Vista Menu screenshot you sent), and ideally it shouldn't pick up on this (at least, it definitely shouldn't in this particular place on the Ribbon).  If you can find a system setting which gets the menus to align right, please see if this fixes the problem in Ribbon and let us know what that setting was.  In the meantime, we'll continue to investigate this and see if we can get a fix into V1.

Thanks for reporting this!
Samantha