Exemplo n.º 1
0
 public static double GetTvFlyoutItemWidth(this ITNavigtaionView nav)
 {
     if (s_navigationViewFlyoutItemWidth > 0)
     {
         return(s_navigationViewFlyoutItemWidth);
     }
     return(s_navigationViewFlyoutItemWidth = DeviceInfo.CalculateDoubleScaledSizeInLargeScreen(ThemeConstants.Shell.Resources.DefaultFlyoutItemWidth));
 }
Exemplo n.º 2
0
 public static double GetTvFlyoutIconColumnSize(this ITNavigtaionView nav)
 {
     if (s_navigationViewFlyoutIconColumnSize > 0)
     {
         return(s_navigationViewFlyoutIconColumnSize);
     }
     return(s_navigationViewFlyoutIconColumnSize = DeviceInfo.CalculateDoubleScaledSizeInLargeScreen(ThemeConstants.Shell.Resources.TV.DefaultFlyoutIconColumnSize));
 }
Exemplo n.º 3
0
        public ShellView(EvasObject parent) : base(parent)
        {
            NativeParent                   = parent;
            _navigationDrawer              = CreateNavigationDrawer();
            _navigationView                = CreateNavigationView();
            _navigationView.LayoutUpdated += OnNavigationViewLayoutUpdated;
            _navigationView.Content        = _itemsView = CreateItemsView();

            _navigationDrawer.NavigationView = _navigationView.TargetView;
            _navigationDrawer.Toggled       += OnDrawerToggled;

            _navigationDrawer.TargetView.SetAlignment(-1.0, -1.0);
            _navigationDrawer.TargetView.SetWeight(1.0, 1.0);
            _navigationDrawer.TargetView.Show();
            PackEnd(_navigationDrawer.TargetView);
        }
Exemplo n.º 4
0
        public ShellView(EvasObject parent) : base(parent)
        {
            PlatformParent                 = parent;
            _navigationDrawer              = CreateNavigationDrawer();
            _navigationView                = CreateNavigationView();
            _navigationView.LayoutUpdated += OnNavigationViewLayoutUpdated;
            _navigationView.Content        = _itemsView = CreateItemsView();
            _navigationDrawer.DrawerWidth  = ThemeConstants.Shell.Resources.DefaultFlyoutItemWidth;

            _navigationDrawer.NavigationView = _navigationView.TargetView;
            _navigationDrawer.Toggled       += OnDrawerToggled;

            _navigationDrawer.TargetView.SetAlignment(-1.0, -1.0);
            _navigationDrawer.TargetView.SetWeight(1.0, 1.0);
            _navigationDrawer.TargetView.Show();

            Show();
            PackEnd(_navigationDrawer.TargetView);
        }
Exemplo n.º 5
0
 public static Graphics.Color GetTvFlyoutItemFocusedColor(this ITNavigtaionView nav)
 {
     return(ThemeConstants.Shell.ColorClass.TV.DefaultFlyoutItemFocusedColor);
 }