-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
NavigationPage.cs
37 lines (32 loc) · 2.02 KB
/
NavigationPage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#nullable disable
namespace Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.AppCompat
{
using FormsElement = Maui.Controls.NavigationPage;
/// <include file="../../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.AppCompat/NavigationPage.xml" path="Type[@FullName='Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.AppCompat.NavigationPage']/Docs/*" />
public static class NavigationPage
{
/// <summary>Bindable property for attached property <c>BarHeight</c>.</summary>
public static readonly BindableProperty BarHeightProperty = BindableProperty.Create("BarHeight", typeof(int), typeof(NavigationPage), default(int));
/// <include file="../../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.AppCompat/NavigationPage.xml" path="//Member[@MemberName='GetBarHeight'][1]/Docs/*" />
public static int GetBarHeight(BindableObject element)
{
return (int)element.GetValue(BarHeightProperty);
}
/// <include file="../../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.AppCompat/NavigationPage.xml" path="//Member[@MemberName='SetBarHeight'][1]/Docs/*" />
public static void SetBarHeight(BindableObject element, int value)
{
element.SetValue(BarHeightProperty, value);
}
/// <include file="../../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.AppCompat/NavigationPage.xml" path="//Member[@MemberName='GetBarHeight'][2]/Docs/*" />
public static int GetBarHeight(this IPlatformElementConfiguration<Android, FormsElement> config)
{
return GetBarHeight(config.Element);
}
/// <include file="../../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific.AppCompat/NavigationPage.xml" path="//Member[@MemberName='SetBarHeight'][2]/Docs/*" />
public static IPlatformElementConfiguration<Android, FormsElement> SetBarHeight(this IPlatformElementConfiguration<Android, FormsElement> config, int value)
{
SetBarHeight(config.Element, value);
return config;
}
}
}