bakcstage bug?

Jan 11, 2011 at 1:55 PM
Edited Jan 11, 2011 at 2:12 PM

Hi,

I have created a sample project to repro this issue (http://cid-d40c19d81787f0af.office.live.com/self.aspx/Public/BackstageIssue2.rar)

1. When the program is run the first thing that is displayed is the backstage (IsOpen=true). I use a <frame> to display a .html page, the HTML page is displayed fine first time round

2.Click in any of the other tabs ( 'First Tab' or 'Second Tab')

3.Now, and here is the problem: Click again in the backstage, and the <frame> control seems to have disappeared ??Notice that no HTML page is displayed

Any ideas as to why I am seeing this? How could I work around this?

Thanks

Code:

 <Fluent:Ribbon Grid.Row="0" x:Name="MyRibbon" SelectedTabChanged="MyRibbon_SelectedTabChanged" >
            <!--Backstage-->
            <Fluent:Ribbon.Menu>
               <Fluent:Backstage x:Name="backstageHome" Header="Home" IsOpen="True" IsOpenChanged="backstageHome_IsOpenChanged">
                    <Fluent:BackstageTabControl>
                        <Fluent:BackstageTabItem Header="MOTD" Fluent:KeyTip.Keys="D">
                            <DockPanel Margin="20,20,120,90"  LastChildFill="True" HorizontalAlignment="Stretch">
                                <DockPanel x:Name="dpMotd" DockPanel.Dock="Top" LastChildFill="True" Background="Green">
                                    <Frame x:Name="motdFrame" Margin="10"/>
                                </DockPanel>
                            </DockPanel>
                        </Fluent:BackstageTabItem>
                        <Fluent:Button x:Name="rbBtnExit" Header="Exit" Fluent:KeyTip.Keys="E" Content="EXIT" />
                    </Fluent:BackstageTabControl>
                </Fluent:Backstage>
            </Fluent:Ribbon.Menu>
            <Fluent:RibbonTabItem x:Name="tabFirst" Header="First TAB" Fluent:KeyTip.Keys="M">
                <Fluent:RibbonGroupBox Header="AAA">
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>
            <Fluent:RibbonTabItem x:Name="tabSecond" Header="Second TAB" Fluent:KeyTip.Keys="O">
                <Fluent:RibbonGroupBox Header="BBB">
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>
        </Fluent:Ribbon>

Code behind:

        public Window1()
        {
            InitializeComponent();
        }


        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            
            motdFrame.Source = new Uri(GetTestPath());
        }

     
        private string GetTestPath()
        {

            String exePath = System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
            string path = System.IO.Path.GetDirectoryName(exePath) + "\\test.htm";
            return path;
        }


        private void backstageHome_IsOpenChanged(object sender, DependencyPropertyChangedEventArgs e)
        {

        }

        private void MyRibbon_SelectedTabChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            // MessageBox.Show("tab: " + ReQuestRibbon.SelectedTabIndex.ToString());
        }

 

 

Jan 24, 2011 at 9:31 AM

has anyone expirienced this behaviour?