From ccfa19027448eea5edfe6942791326bbc5f7fab2 Mon Sep 17 00:00:00 2001 From: Andrew Hoefling Date: Thu, 16 Apr 2020 18:32:18 -0400 Subject: [PATCH] feat: Added NotImplemented Attribute for TopAppBar and BottomAppBar --- src/Uno.UI/UI/Xaml/Controls/Page/Page.cs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/Page/Page.cs b/src/Uno.UI/UI/Xaml/Controls/Page/Page.cs index 8ce98afb8e28..3041e35467c2 100644 --- a/src/Uno.UI/UI/Xaml/Controls/Page/Page.cs +++ b/src/Uno.UI/UI/Xaml/Controls/Page/Page.cs @@ -19,13 +19,15 @@ protected internal virtual void OnNavigatedTo(NavigationEventArgs e) { } protected internal virtual void OnNavigatingFrom(NavigatingCancelEventArgs e) { } #region TopAppBar - +#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ + [Uno.NotImplemented] public AppBar TopAppBar { get => (AppBar)this.GetValue(TopAppBarProperty); set => this.SetValue(TopAppBarProperty, value); } - + + [Uno.NotImplemented] public static DependencyProperty TopAppBarProperty { get; } = DependencyProperty.Register( "TopAppBar", @@ -36,17 +38,19 @@ public AppBar TopAppBar FrameworkPropertyMetadataOptions.ValueInheritsDataContext ) ); - +#endif #endregion #region BottomAppBar - +#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ + [Uno.NotImplemented] public AppBar BottomAppBar { get => (AppBar)this.GetValue(BottomAppBarProperty); set => this.SetValue(BottomAppBarProperty, value); } + [Uno.NotImplemented] public static DependencyProperty BottomAppBarProperty { get; } = DependencyProperty.Register( "BottomAppBar", @@ -57,7 +61,7 @@ public AppBar BottomAppBar FrameworkPropertyMetadataOptions.ValueInheritsDataContext ) ); - +#endif #endregion #region Frame @@ -83,7 +87,7 @@ Frame Frame ) ); - #endregion +#endregion public NavigationCacheMode NavigationCacheMode { get; set; } }