Skip to content

Commit

Permalink
feat: Added NotImplemented Attribute for TopAppBar and BottomAppBar
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeHoefling committed Apr 16, 2020
1 parent 7e49bea commit ccfa190
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Uno.UI/UI/Xaml/Controls/Page/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -57,7 +61,7 @@ public AppBar BottomAppBar
FrameworkPropertyMetadataOptions.ValueInheritsDataContext
)
);

#endif
#endregion

#region Frame
Expand All @@ -83,7 +87,7 @@ Frame Frame
)
);

#endregion
#endregion

public NavigationCacheMode NavigationCacheMode { get; set; }
}
Expand Down

0 comments on commit ccfa190

Please sign in to comment.