Skip to content

Commit

Permalink
Merge pull request #2419 from jeromelaban/dev/jela/winui
Browse files Browse the repository at this point in the history
fix: [UWP][WinUI] Support for `RegionManager.IsInDesignMode`
  • Loading branch information
dansiegel authored Apr 27, 2021
2 parents e40de9b + f717d4e commit 4a3f400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wpf/Prism.Wpf/Regions/RegionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public static void UpdateRegions()
private static bool IsInDesignMode(DependencyObject element)
{
#if HAS_UWP || HAS_WINUI
return false;
return Windows.ApplicationModel.DesignMode.DesignModeEnabled;
#else
return DesignerProperties.GetIsInDesignMode(element);
#endif
Expand Down

0 comments on commit 4a3f400

Please sign in to comment.