예제 #1
0
        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);
        }
예제 #3
0
        public SymbolIcon()
        {
            _icon = new FontIcon();

            AddIconElementView(_icon);
        }
예제 #4
0
파일: SymbolIcon.cs 프로젝트: zhuzilyy/uno
 public SymbolIcon(Symbol symbol)
 {
     _icon = new FontIcon();
     AddIconElementView(_icon);
     _icon.Glyph = new string((char)symbol, 1);
 }