XapEditor.Xap.GetIcon C# (CSharp) Method

GetIcon() public method

public GetIcon ( ) : string
return string
        public string GetIcon()
        {
            if (Meta.ContainsKey("IconPath"))
                return string.Format("{0}\\{1}", Path.GetDirectoryName(List[0].FullPath), Meta["IconPath"]);
            return string.Empty;
        }
        void GetMetadata()

Usage Example

 public bool OpenXap(string fp)
 {
     xap = new Xap(fp);
     xap.Open();
     dgXap.ItemsSource = xap.List;
     dAppName.Text     = xap.Meta["Title"];
     try { dImage.Source = StaticBitmap.Read(xap.GetIcon()); }
     catch (Exception) { }
     dAppProp.Text          = string.Format("Version {3} ({4})\rAuthor: {0}\rPublisher: {2}", xap.Meta["Author"], xap.Meta["Genre"], xap.Meta["Publisher"], xap.Meta["Version"], xap.Meta["RuntimeType"], xap.Meta["ProductID"]);
     menu_pack.IsEnabled    = true;
     leftCol.MinWidth       = 5;
     leftCol.Width          = new GridLength(300);
     menu_close.IsEnabled   = true;
     menu_savexap.IsEnabled = true;
     SaveRecent("RecentXap", xap.Source);
     LoadRecent("RecentXap", "menu_recentxap");
     return(true);
 }
All Usage Examples Of XapEditor.Xap::GetIcon