Beispiel #1
0
        public static void CreateTile(MetaData metaData)
        {
            ImageSource imageSource = new BitmapImage(new Uri(string.Format("/TileIcon/{0}.png", metaData.Icon), UriKind.Relative));
            var visual = new LiveTileVisual();
            visual.SetProperties(metaData.Name, imageSource);
            var data = new RadExtendedTileData
                           {
                               VisualElement = visual
                           };

            string path = string.Format("/FolderPage.xaml?path={0}&icon={1}", metaData.Path, metaData.Icon);

            LiveTileHelper.CreateTile(data, new Uri(path, UriKind.Relative));
        }
Beispiel #2
0
        public static void CreateTile(MetaData metaData)
        {
            ImageSource imageSource = new BitmapImage(new Uri(string.Format("/TileIcon/{0}.png", metaData.Icon), UriKind.Relative));
            var         visual      = new LiveTileVisual();

            visual.SetProperties(metaData.Name, imageSource);
            var data = new RadExtendedTileData
            {
                VisualElement = visual
            };

            string path = string.Format("/FolderPage.xaml?path={0}&icon={1}", metaData.Path, metaData.Icon);


            LiveTileHelper.CreateTile(data, new Uri(path, UriKind.Relative));
        }