Exemple #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));
 }
Exemple #2
0
 public static double GetDefaultTitleFontSize(this ShellNavBar navBar)
 {
     if (s_shellNavBarTitleFontSize > 0)
     {
         return(s_shellNavBarTitleFontSize);
     }
     return(s_shellNavBarTitleFontSize = DeviceInfo.CalculateDoubleScaledSizeInLargeScreen(ThemeConstants.Shell.Resources.DefaultTitleFontSize));
 }
Exemple #3
0
 public static double GetDefaultMargin(this ShellNavBar navBar)
 {
     if (s_shellNavBarDefaultMargin > 0)
     {
         return(s_shellNavBarDefaultMargin);
     }
     return(s_shellNavBarDefaultMargin = DeviceInfo.CalculateDoubleScaledSizeInLargeScreen(ThemeConstants.Shell.Resources.DefaultMargin));
 }
Exemple #4
0
 public static double GetDefaultIconSize(this ShellMoreTabs self)
 {
     if (s_shellMoreToolBarIconSize > 0)
     {
         return(s_shellMoreToolBarIconSize);
     }
     return(s_shellMoreToolBarIconSize = DeviceInfo.CalculateDoubleScaledSizeInLargeScreen(ThemeConstants.Shell.Resources.DefaultIconSize));
 }
Exemple #5
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));
 }
Exemple #6
0
 public static double GetDefaultMenuSize(this ShellNavBar navBar)
 {
     if (s_shellNavBarDefaultMenuSize > 0)
     {
         return(s_shellNavBarDefaultMenuSize);
     }
     return(s_shellNavBarDefaultMenuSize = DeviceInfo.CalculateDoubleScaledSizeInLargeScreen(
                Microsoft.Maui.Devices.DeviceInfo.Idiom == Microsoft.Maui.Devices.DeviceIdiom.TV ? ThemeConstants.Shell.Resources.TV.DefaultMenuSize : ThemeConstants.Shell.Resources.DefaultMenuSize));
 }