/// <summary> /// Initializes a new instance of the <see cref="Appercode.UI.Controls.Navigation.Primitives.TabBarTab"/> class. /// </summary> /// <param name="pageType">Type of <see cref="AppercodePage"/> to navigate to</param> /// <param name="navigationParameter">Navigation parameter for <paramref name="pageType"/></param> /// <param name="title">Tab title</param> /// <param name="icon">Tab icon</param> public TabBarTab(Type pageType, object navigationParameter, string title, BitmapImage icon) { this.Title = title; this.Icon = icon; this.PageType = pageType; this.NavigationParameter = navigationParameter; }
private void SetUIImage(Uri source) { if (source != null) { if (this.bitmapImage == null) { this.bitmapImage = new BitmapImage(source); this.bitmapImage.ImageOpened += this.ImageOpened; } else { this.bitmapImage.UriSource = source; } this.item.Image = this.bitmapImage.GetUIImage(); } else { this.item.Image = null; } }
/// <summary> /// Initializes a new instance of the <see cref="Appercode.UI.Controls.Navigation.Primitives.TabBarTab"/> class. /// </summary> /// <param name="pageType">Type of <see cref="AppercodePage"/> to navigate to</param> /// <param name="title">Tab title</param> /// <param name="icon">Tab icon</param> public TabBarTab(Type pageType, string title, BitmapImage icon) : this(pageType, null, title, icon) { }
/// <summary> /// Initializes a new instance of the <see cref="Appercode.UI.Controls.Navigation.Primitives.TabBarTab"/> class /// </summary> /// <param name="pageType">Type of <see cref="AppercodePage"/> to navigate to</param> /// <param name="icon">Tab icon</param> public TabBarTab(Type pageType, BitmapImage icon) : this(pageType, null, null, icon) { }