VSIX extension WPF styles - visual-studio-2010

I'm building a VS2010 extension (vsix) with WPF. Is there any way to reuse WPF style templates from the visual studio itself to make my control look native to Visual Studio?
A the moment I can use expressions for brushes like this:
xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}"
That's not enough, however. Can I apply a style to the whole TabControl or Label?

You can use the the techinqe you mentioned, I found these links (also)
User Interfaces: http://msdn.microsoft.com/en-us/library/bb165108(v=vs.110).aspx
Internal settings query: http://msdn.microsoft.com/en-us/library/bb164716(v=vs.110).aspx
But they don't mention other than the queryable settings, to customize your style alike.

Related

Is it possible to add VSIX XAML Toolbar to Visual Studio?

Is it possible to add XAML toolbar (instead of native Visual Studio in vsct file) to Visual Studio (in this case Visual Studio Shell)?
I cannot find any examples in the Internet.
I would recommend you stick with using a VSCT resource, to keep your extension consistent with the look and feel of the IDE as a whole.
That being said, there is nothing stopping you from designing a toolwindow or custom designer that hosts XAML based toolbars. Some extenders choose to do this, but the buttons hosted are not VS commands, are not exposed to or discoverable via the Tools | Customize dialog, other extensions cannot automate or programmatically access them, and you lose the built in functionality to control visibility/enablement based on active contextUI guids.
Sincerely,

Is there a way to have a dark theme for resources editor in Visual Studio?

I love dark themes in my development environments but can't find a way to make the resources editor (particularly strings) of Visual Studio dark too. My VS version is 2015 Professional.
Here's how I see it:
while the rest of the UI looks like this:
There is an extension for the Visual Studio 2015 Enterprise that changes the theme color of every element of the IDE. Just search themes and you get a lot of extensions and 90% of them work, you can even set up some transparent background for your coding environment and even add some music(mostly trance) that changes and helps you concentrate while coding.
If you inspect the resx editor using inspect.exe tool, you can see its a Winforms data grid view. It does not honor WPF styles. According to my understanding VS is built using WPF changes the themes via WPF style feature.
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview(v=vs.110).aspx

Override text rendering in Visual Studio?

I want to customize the way the text is rendered in Microsoft's Visual Studio text viewer. The goal is to implement my own complicated algorithm for whitespace handling.
Note: I've already written "add-ins" to automate some tasks (include guards, copyright insertion in the file's header etc...). However, as far as I understand, "add-ins" cannot be used to override the kind of functionality I need.
Is it possible to override the default text rendering? If yes, where do I start?
(Visual studio 2005 is preferred.)
You should look at Visual Studio language services. Try Language Services on MSDN

LightSwitch and Expression Blend - Will they work together?

how well can LightSwitch work together with Blend? I saw in some videos that you can use custom Silverlight control in LS and naturally I can create them with Blend.
But can Blend in itself be used to customize the screens of a LightSwitch application? It seems LS doesn't use Xaml but puts all screen in an application.lsml file which is invalid for Blend. Is there support coming here?
Thanks in advance.
No. You will never be able to customize the LightSwitch 'Screens' in Blend, because as you have seen, they live inside the application.lsml file. If you build a Shell Extension, you could use Blend to do the basic layout, but most of the work is in C# or VB. For a Theme Extension, you could certainly use Blend to edit the Theme Visusl Pallette Resource Dictionary. See this link for the a cookbook guide to building the various types of LightSwitch Extensions: http://blogs.msdn.com/b/lightswitch/archive/2011/03/16/lightswitch-beta-2-extensibility-cookbook.aspx. There is also now an accompanying Visual Studio project template available for Beta 2.
LightSwitch works fine with Expression Blend, but only for custom Silverlight controls (Expression Blend will throw an error that it can't load any LightSwitch projects that are part of the solution, but it will load any Silverlight control projects).
You cannot edit any of the automatic LightSwitch UI, but you do not have to use any of the standard LightSwitch UI if you need changes.
I would recommend creating Silverlight custom controls not LightSwitch extensions, the difference is that a control extension has a design-time experience in Visual Studio and is MUCH harder to create (Silverlight custom controls are actually very easy to create).
See this article for an example:
http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/2/Creating-A-LightSwitch-Custom-Silverlight-Control.aspx

Visual studio form layout tutorial?

I'm a Qt developer, trying to design forms with visual studio.. but the layout toosl are.. lacking? I only see tools for fixed-size forms.
What are the visual studio alternatives to Qt's vertical/horizontal/grid layouts with minimum/maximum/preferred size hints, spacers, etc?? I can't see anything like this.
Closes things you can use are:
FlowLayoutPanel
TableLayoutPanel
Alternatively, you can go for WPF instead of WinForms.

Resources