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