public static void SetNavigationGraphTitle(this IHostNavController host, int resId, CharSequence value) { var navNode = host.FindNode(resId); if (navNode == null) { return; } navNode.LabelFormatted = value; }
public static void SetNavigationGraphTitle(this IHostNavController host, int resId, string value) { var navNode = host.FindNode(resId); if (navNode == null) { return; } navNode.Label = value; }
static NavDestination?FindNode(this IHostNavController host, int resId) { if (host.NavController == null) { return(null); } var navNode = host.NavController.Graph.FindNode(resId); return(navNode); }