예제 #1
0
 /// <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;
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
 /// <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)
 {
 }
예제 #4
0
 /// <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)
 {
 }