This is a migrated thread and some comments may be shown as answers.

RadRibbonWindow doesn't show up until all prompts/dialogue aren't resovled

2 Answers 83 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Megamind
Top achievements
Rank 1
Megamind asked on 29 Mar 2019, 11:21 AM

Hi, 

I'm using RadRibbonWindow in my WPF application and in Loaded event of the window I'm showing a dialog/messagebox, but the problem is that when I launch the application the main radribbonWindow doesn't show up until all interrupts/events executed from Loaded event are resolved. Why is that I want to show both simultaneously when I launch the application. 

<RibbonWindow x:Class="DynamicToolbarItems.MainWindow"

                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow"
                Height="350" Width="525"
                Loaded="Window_Loaded">

/*******************************code behind *************************************/

 private void Window_Loaded(object sender, RoutedEventArgs e)
 {

 

System.Windows.MessageBoxResult result = System.Windows.MessageBox.Show("All Changes will be lost?", "message,                    System.Windows.MessageBoxButton.YesNo, System.Windows.MessageBoxImage.Question);

        }

 

 

2 Answers, 1 is accepted

Sort by
0
Megamind
Top achievements
Rank 1
answered on 29 Mar 2019, 11:43 AM
It feels like Loaded event is called even before Main window is initialized or the time is wrong of this event. Why?
0
Accepted
Martin Ivanov
Telerik team
answered on 02 Apr 2019, 07:03 AM
Hello Megamind,

Can you check the information on the approach suggested in the the following forum?

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RibbonView and RibbonWindow
Asked by
Megamind
Top achievements
Rank 1
Answers by
Megamind
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or