예제 #1
0
        public void AddTab(string text, string imageSource, string imageResourceKey, string contentTitle, object content)
        {
            NavbarTab tab = new NavbarTab();
            tab.Header.HeaderText = text;
            tab.Header.ImageResourceKey = imageResourceKey;
            tab.Header.ImageSource = imageSource;
            tab.ContentTitle = contentTitle;
            tab.TabContent = content;

            _tabs.Add(tab);

            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs("Tabs"));
        }
예제 #2
0
        public void AddTab(NavbarTab tab)
        {
            _tabs.Add(tab);

            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs("Tabs"));
        }