This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//********************************************************// | |
// HOW TO: | |
// Create a file called devenv.pkgundef in the same directory as devenv.exe. | |
// It's usually located at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE | |
// Then call "devenv.exe /updateconfiguration" from an elevated command prompt. | |
// REMARKS: | |
// Each GUID below represent a package that Visual Studio is loading. This is the | |
// list of package that I personally don't ever use. You can modify the list of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.Composition; | |
using Microsoft.VisualStudio.Shell; | |
using Microsoft.VisualStudio.Shell.TableManager; | |
public class ExtensionPackage : Package | |
{ | |
[Import] | |
private ITableManagerProvider _tableManagerProvider; | |
protected override void Initialize() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static BitmapSource GetImage(ImageMoniker moniker, int size) | |
{ | |
ImageAttributes imageAttributes = new ImageAttributes(); | |
imageAttributes.Flags = (uint)_ImageAttributesFlags.IAF_RequiredFlags; | |
imageAttributes.ImageType = (uint)_UIImageType.IT_Bitmap; | |
imageAttributes.Format = (uint)_UIDataFormat.DF_WPF; | |
imageAttributes.LogicalHeight = size; | |
imageAttributes.LogicalWidth = size; | |
imageAttributes.StructSize = Marshal.SizeOf(typeof(ImageAttributes)); |
NewerOlder