Support new features of Xamari.Forms (#186)
[platform/core/csapi/xsf.git] / src / XSF / Xamarin.Forms.Core / PlatformConfiguration / TizenSpecific / Application.cs
1 namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific
2 {
3         using FormsElement = Xamarin.Forms.Application;
4
5         public static class Application
6         {
7                 public static readonly BindableProperty UseBezelInteractionProperty = BindableProperty.Create("UseBezelInteraction", typeof(bool), typeof(FormsElement), true);
8
9                 public static bool GetUseBezelInteraction(BindableObject element)
10                 {
11                         return (bool)element.GetValue(UseBezelInteractionProperty);
12                 }
13
14                 public static void SetUseBezelInteraction(BindableObject element, bool value)
15                 {
16                         element.SetValue(UseBezelInteractionProperty, value);
17                 }
18
19                 public static bool GetUseBezelInteraction(this IPlatformElementConfiguration<Tizen, FormsElement> config)
20                 {
21                         return GetUseBezelInteraction(config.Element);
22                 }
23
24                 public static IPlatformElementConfiguration<Tizen, FormsElement> SetUseBezelInteraction(this IPlatformElementConfiguration<Tizen, FormsElement> config, bool value)
25                 {
26                         SetUseBezelInteraction(config.Element, value);
27                         return config;
28                 }
29         }
30 }