I'm just evaluating the Actipro WPF Studio and am having some issues trying to work with MDI.
I've got a RibbonWindow which has a docksite below it which is set as a standard MDI Host.
I want to make use of buttons on the ribbonbar purely for navigation, and as such in the click event of a button want to load up a further ribbon window (or page) with a ribbon on it as an MDI child.
So I tried this:Which throws an inner exception: "Window must be the root of the tree. Cannot add Window as a child of Visual."
so.... I tried a Ribbon page instead but that tells me the parent of a page can only be a window or a frame..
Erm... help? ;-)
Thanks,
JC
[Modified at 10/13/2008 06:56 AM]
I've got a RibbonWindow which has a docksite below it which is set as a standard MDI Host.
I want to make use of buttons on the ribbonbar purely for navigation, and as such in the click event of a button want to load up a further ribbon window (or page) with a ribbon on it as an MDI child.
So I tried this:
private void button1_Click(object sender, ExecuteRoutedEventArgs e)
{
ActiproSoftware.Windows.Controls.Ribbon.Controls.TextBox content = new ActiproSoftware.Windows.Controls.Ribbon.Controls.TextBox();
string name = "MyDocumentWindow1"; string title = "Document Window" +DateTime.Now;
BitmapImage image = new BitmapImage(new Uri("/Images/Test.png", UriKind.Relative));
wdwAbout mycontent = new wdwAbout(); // wdwAbout is a ribbon window with a ribbon
DocumentWindow window = new DocumentWindow(dockSite,name, title,image ,mycontent );
window.Activate(true);
}
so.... I tried a Ribbon page instead but that tells me the parent of a page can only be a window or a frame..
Erm... help? ;-)
Thanks,
JC
[Modified at 10/13/2008 06:56 AM]