Exemplo n.º 1
0
 public static double GetDefaultMargin(this ShellNavBar navBar)
 {
     if (s_shellNavBarDefaultMargin > 0)
     {
         return(s_shellNavBarDefaultMargin);
     }
     return(s_shellNavBarDefaultMargin = DeviceInfo.CalculateDoubleScaledSizeInLargeScreen(ThemeConstants.Shell.Resources.DefaultMargin));
 }
Exemplo n.º 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));
 }
Exemplo n.º 3
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));
 }