提交 84ee8956 编写于 作者: A Andrew Casey

Expose BitmapImageMoniker on IVsInteractiveWindow2

上级 bec4a9c1
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.Imaging.Interop;
using Microsoft.VisualStudio.Shell.Interop;
namespace Microsoft.VisualStudio.InteractiveWindow.Shell
......@@ -13,5 +14,12 @@ public interface IVsInteractiveWindow2 : IVsInteractiveWindow
/// Gets the <see cref="IVsWindowFrame"/> associated with the <see cref="IVsInteractiveWindow2"/>.
/// </summary>
object WindowFrame { get; }
/// <summary>
/// Gets or sets the ImageMoniker for the icon for this tool window. This property
/// should be used instead of BitmapResource and BitmapIndex to allow for DPI-aware
/// icons.
/// </summary>
ImageMoniker BitmapImageMoniker { get; set; }
}
}
Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindow2
Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindow2.WindowFrame.get -> object
\ No newline at end of file
Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindow2.WindowFrame.get -> object
Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindow2.BitmapImageMoniker.get -> Microsoft.VisualStudio.Imaging.Interop.ImageMoniker
Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindow2.BitmapImageMoniker.set -> void
\ No newline at end of file
......@@ -53,6 +53,9 @@
<Reference Include="Microsoft.VisualStudio.Editor, Version=$(VisualStudioReferenceAssemblyVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Private>false</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.VisualStudio.Language.Intellisense, Version=$(VisualStudioReferenceAssemblyVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Private>false</Private>
</Reference>
......
......@@ -8,6 +8,7 @@
using System.Windows;
using System.Windows.Input;
using Microsoft.VisualStudio.ComponentModelHost;
using Microsoft.VisualStudio.Imaging.Interop;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Utilities;
......@@ -64,5 +65,18 @@ void IVsInteractiveWindow.Show(bool focus)
public IInteractiveWindow InteractiveWindow => _windowPane.InteractiveWindow;
public object WindowFrame => _windowPane.Frame;
ImageMoniker IVsInteractiveWindow2.BitmapImageMoniker
{
get
{
return _windowPane.BitmapImageMoniker;
}
set
{
_windowPane.BitmapImageMoniker = value;
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册