public void CreateShortCut() { //var iconPath = new Path() //{ // Height = 150, // Width = 150, // Stretch = Stretch.Uniform, // HorizontalAlignment = HorizontalAlignment.Center, // VerticalAlignment = VerticalAlignment.Center, // Fill = new SolidColorBrush(Colors.White) //}; //iconPath.SetDataBinding(this.DefaultImagePathData); var shortCutTile = new RadIconicTileData() { //IconVisualElement = iconPath, //SmallIconVisualElement = iconPath, IconImage = new Uri("/Assets/Tiles/FolderIconImage.png", UriKind.Relative), SmallIconImage = new Uri("/Assets/Tiles/FolderSmallIconImage.png", UriKind.Relative), MeasureMode = MeasureMode.Tile, Title = this.Name }; LiveTileHelper.CreateOrUpdateTile(shortCutTile, new Uri("/Views/MainPage.xaml?ShortCutBase64Handle=" + this.OriginalMNode.getBase64Handle(), UriKind.Relative), false); }
private void CreateShortCut(object obj) { var shortCutTile = new RadIconicTileData() { IconImage = new Uri("/Assets/Tiles/FolderIconImage.png", UriKind.Relative), SmallIconImage = new Uri("/Assets/Tiles/FolderSmallIconImage.png", UriKind.Relative), Title = FocusedNode.Name }; LiveTileHelper.CreateOrUpdateTile(shortCutTile, new Uri("/Views/MainPage.xaml?ShortCutBase64Handle=" + FocusedNode.OriginalMNode.getBase64Handle(), UriKind.Relative), false); }