protected override void OnApplyTemplate() { base.OnApplyTemplate(); // Retrieve pointers to stable controls m_initialsTextBlock = GetTemplateChild("InitialsTextBlock") as TextBlock; m_badgeNumberTextBlock = GetTemplateChild("BadgeNumberTextBlock") as TextBlock; m_badgeGlyphIcon = GetTemplateChild("BadgeGlyphIcon") as FontIcon; m_badgingEllipse = GetTemplateChild("BadgingEllipse") as Ellipse; m_badgingBackgroundEllipse = GetTemplateChild("BadgingBackgroundEllipse") as Ellipse; UpdateBadge(); UpdateIfReady(); }
private static XamlIslands.NavigationViewItem CreateMenu(string menuName, string IconName) { XamlIslands.NavigationViewItem mnuItem = new XamlIslands.NavigationViewItem { Name = menuName, Content = menuName, Tag = menuName }; var mnuIcon = new XamlIslands.FontIcon { Glyph = IconName }; mnuItem.Icon = mnuIcon; return(mnuItem); }
public SymbolIcon() { _icon = new FontIcon(); AddIconElementView(_icon); }
public SymbolIcon(Symbol symbol) { _icon = new FontIcon(); AddIconElementView(_icon); _icon.Glyph = new string((char)symbol, 1); }