This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/MasterDetailPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific | ||
{ | ||
using FormsElement = Forms.MasterDetailPage; | ||
|
||
public static class MasterDetailPage | ||
{ | ||
#region ApplyShadow | ||
public static readonly BindableProperty ApplyShadowProperty = BindableProperty.Create("ApplyShadow", typeof(bool), typeof(MasterDetailPage), false); | ||
|
||
public static bool GetApplyShadow(BindableObject element) | ||
{ | ||
return (bool)element.GetValue(ApplyShadowProperty); | ||
} | ||
|
||
public static void SetApplyShadow(BindableObject element, bool value) | ||
{ | ||
element.SetValue(ApplyShadowProperty, value); | ||
} | ||
|
||
public static IPlatformElementConfiguration<iOS, FormsElement> SetApplyShadow(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) | ||
{ | ||
SetApplyShadow(config.Element, value); | ||
return config; | ||
} | ||
|
||
public static bool GetApplyShadow(this IPlatformElementConfiguration<iOS, FormsElement> config) | ||
{ | ||
return GetApplyShadow(config.Element); | ||
} | ||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters