/// <summary> /// Raises the StateChanged event. /// </summary> /// <param name="e">An EventArgs that contains the event data.</param> protected override void OnStateChanged(EventArgs e) { base.OnStateChanged(e); // Sets the WindowStateEx based on the WindowState. Apply(WindowState.ToWindowStateEx(IsFullScreenMode)); }
/// <summary> /// Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally. /// </summary> /// <param name="e">The RoutedEventArgs that contains the event data.</param> protected override void OnInitialized(EventArgs e) { // Sets the WindowStateEx based on the WindowState. Apply(WindowState.ToWindowStateEx(IsFullScreenMode)); base.OnInitialized(e); }