Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
ApplicationMenu Crashed on Style Change
posted

I was going through some of the samples and created a small app which causes the ApplicationMenu to crash out.  To reproduce copy xaml and 2 event handlers given below into project.  Run project.  Set contentPane titled Content to Floating.  Open ApplicationMenu-->Select themes-->select black.  Now try to click the applicationMenu again.  No drop down.

XAML:

<

 

igRibbon:XamRibbonWindow x:Class="InfragisticsRibbon.BugFound"

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

xmlns:igRibbon="clr-namespace:Infragistics.Windows.Ribbon;assembly=Infragistics3.Wpf.Ribbon.v9.2"

 

xmlns:DockManager="clr-namespace:Infragistics.Windows.DockManager;assembly=Infragistics3.Wpf.DockManager.v9.2"

 

Title="BugFound" Height="300" Width="300">

 

 

<igRibbon:RibbonWindowContentHost >

 

 

<igRibbon:RibbonWindowContentHost.Ribbon>

 

 

<igRibbon:XamRibbon x:Name="xamRibbon" >

 

 

<igRibbon:XamRibbon.ApplicationMenu>

 

 

<igRibbon:ApplicationMenu >

 

 

<igRibbon:ButtonTool Caption="Testing"/>

 

 

<igRibbon:MenuTool Caption="Theme" ButtonType="DropDown" >

 

 

<igRibbon:LabelTool Caption="Test"/>

 

 

 

<igRibbon:RadioButtonTool

 

Caption="Black"

 

Tag="Office2k7Black"

 

Click="OnThemeSelected"

 

igRibbon:MenuToolBase.MenuItemDescription="Black"/>

 

 

</igRibbon:MenuTool>

 

 

</igRibbon:ApplicationMenu>

 

 

</igRibbon:XamRibbon.ApplicationMenu>

 

 

</igRibbon:XamRibbon>

 

 

</igRibbon:RibbonWindowContentHost.Ribbon>

 

 

 

<DockManager:XamDockManager x:Name="myDockManager" Theme="Office2k7Blue" ToolWindowLoaded="myDocManager_ToolWindowLoaded">

 

 

<DockManager:XamDockManager.Panes>

 

 

<DockManager:SplitPane>

 

 

<DockManager:ContentPane/>

 

 

</DockManager:SplitPane>

 

 

<DockManager:SplitPane>

 

 

<DockManager:TabGroupPane>

 

 

<DockManager:ContentPane Header="Content"/>

 

 

</DockManager:TabGroupPane>

 

 

</DockManager:SplitPane>

 

 

</DockManager:XamDockManager.Panes>

 

 

</DockManager:XamDockManager>

 

 

</igRibbon:RibbonWindowContentHost>

</

 

igRibbon:XamRibbonWindow >

 

private void myDocManager_ToolWindowLoaded(object sender, Infragistics.Windows.DockManager.Events.PaneToolWindowEventArgs e)

{

 

var bla = e.Window.UseOSNonClientArea = false;

}

C#:

private

 

void OnThemeSelected(object sender, RoutedEventArgs e)

{

 

RadioButtonTool tool = e.Source as RadioButtonTool;

 

if (tool != null)

{

 

this.xamRibbon.Theme = (string)tool.Tag;

 

this.myDockManager.Theme = (string)tool.Tag;

}

}

  • 54937
    Suggested Answer
    Offline posted

    I wasn't able to reproduce any issue. I think this is the same as another issue that was recently reported and has already been addressed. It should be in either October or November's hotfix so please try downloading the latest hotfix and retesting the issue.