3 namespace Tizen.Wearable.CircularUI.Forms
5 public class CircularShell : Shell
7 public static readonly BindableProperty FlyoutIconBackgroundColorProperty = BindableProperty.CreateAttached("FlyoutIconBackgroundColor", typeof(Color), typeof(Shell), Color.Default);
8 public static readonly BindableProperty FlyoutForegroundColorProperty = BindableProperty.CreateAttached("FlyoutForegroundColor", typeof(Color), typeof(Shell), Color.Default);
10 public static Color GetFlyoutIconBackgroundColor(BindableObject element)
12 return (Color)element.GetValue(FlyoutIconBackgroundColorProperty);
15 public static void SetFlyoutIconBackgroundColor(BindableObject element, Color color)
17 element.SetValue(FlyoutIconBackgroundColorProperty, color);
20 public static Color GetFlyoutForegroundColor(BindableObject element)
22 return (Color)element.GetValue(FlyoutForegroundColorProperty);
25 public static void SetFlyoutForegroundColor(BindableObject element, Color color)
27 element.SetValue(FlyoutForegroundColorProperty, color);
30 public Color FlyoutIconBackgroundColor
32 get => (Color)GetValue(FlyoutIconBackgroundColorProperty);
33 set => SetValue(FlyoutIconBackgroundColorProperty, value);
36 public Color FlyoutForegroundColor
38 get => (Color)GetValue(FlyoutForegroundColorProperty);
39 set => SetValue(FlyoutForegroundColorProperty, value);
42 protected override bool OnBackButtonPressed()
44 if (FlyoutIsPresented)
46 FlyoutIsPresented = false;
49 return base.OnBackButtonPressed();