Hi,
I am trying to Serialize the RecentDocument to file when the user exist the application.
However, I find that the RibbonWindow_Unloaded is not triggered when the application exit.
Here is my MainWindow:
<ribbon:RibbonWindow x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
.....
Here is my Unloaded function:
Private Sub RibbonWindow_Unloaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Unloaded
WriteRecentDocToFile()
MsgBox("Unload Ribbon")
End Sub
I also tried to put the Unloaded="RibbonWindow_Unloaded" to RibbonWindow , but I got no luck.
Did i miss anything, please advise.
Thanks,
Cow.
I am trying to Serialize the RecentDocument to file when the user exist the application.
However, I find that the RibbonWindow_Unloaded is not triggered when the application exit.
Here is my MainWindow:
<ribbon:RibbonWindow x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
.....
Here is my Unloaded function:
Private Sub RibbonWindow_Unloaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Unloaded
WriteRecentDocToFile()
MsgBox("Unload Ribbon")
End Sub
I also tried to put the Unloaded="RibbonWindow_Unloaded" to RibbonWindow , but I got no luck.
Did i miss anything, please advise.
Thanks,
Cow.