diff --git a/src/AvaloniaInside.Shell/Page.cs b/src/AvaloniaInside.Shell/Page.cs index 682f3d9..117961f 100644 --- a/src/AvaloniaInside.Shell/Page.cs +++ b/src/AvaloniaInside.Shell/Page.cs @@ -307,6 +307,10 @@ protected override void OnLoaded(RoutedEventArgs e) this[!ApplyLeftSafePaddingProperty] = this[!ShellView.EnableSafeAreaForLeftProperty]; this[!ApplyRightSafePaddingProperty] = this[!ShellView.ApplyRightSafePaddingProperty]; + // allow previewer to display page-based views + if (Design.IsDesignMode && Chain is null) + return; + IsModal = Chain.Type == NavigateType.Modal; }