DialogBoxLauncher?

Oct 17, 2014 at 11:26 PM
Hi,

How do I add a Dialog Box Launcher to my ribbon? Has it been removed from the control suite?

Thanks!

H.F.
Developer
Oct 18, 2014 at 9:24 AM
I can't remember removing anything.
What exactly are you looking for? Anything broken that worked with version 2.0?
Oct 18, 2014 at 9:37 AM
Edited Oct 18, 2014 at 9:38 AM
Make sure to have these added to your Fluent:RibbonGroupBox

IsLauncherVisible="True"
LauncherClick="Code to run"
LauncherKeys="Special keys"
private void OnLauncherButtonClick(object sender, RoutedEventArgs e)
        {
            var groupBox = (RibbonGroupBox)sender;

            var wnd = new Window 
                {
                    Content = string.Format("Launcher-Window for: {0}", groupBox.Header), 
                    Owner = Window.GetWindow(this)
                };

            wnd.Show();
        }        
sample behind code.
Marked as answer by batzen on 10/19/2014 at 8:37 AM
Oct 18, 2014 at 4:33 PM
Thanks so much, Adam and batzen! This is a fantastic control.