How do you edit styles in WPF 4.5 under Windows 7? - wpf

I just realised that Blend for Visual Studio 2012 does not support WPF apps under W7.
Once I opened a window I can only see raw XAML.
I need to edit a style for a chart dataseries System.Windows.Controls.DataVisualization.Charting. I normally use Blend for these kind of tasks - because it pulls default styles from somewhere and gives it to you in a blink of an eye.
now I am stuck.. what would you guys do?
P.S. here is nice summary for future references: http://blendinsider.com/technical/available-now-blend-for-visual-studio-2012-2012-08-15/
(scroll down to see the table what version supports what)

You need to use the Blend Preview that supports WPF apps.
http://expression.microsoft.com/en-us/jj154135
How can I design an animation with a WPF project in Visual Studio 2012?
Visual Studio 2012 Update 2 will have a released version of Blend which supports WPF...in the meantime use the preview one.
http://www.microsoft.com/expression/

Related

Split 'designer' and 'source' windows on VS2017 Xamarin?

I'm starting to develop apps on Xamarin, with Visual Studio 2017. As on WPF, there is a 'designer' window for the axml, with the view of the app itself, and a 'source' window with the xml describing the view.
My question is - can I split the windows so one will be above the other, just like as in WPF? Right now I can either view the designer or the source window.
Below are the wanted situation, and the current one. Thanks!
As far as I know, there isn't support to achieve that in Xamarin.Android on Visual Studio 2017.
Event if you try to use the split view and place the design in your left side you can't put the source in your right.
I know it could be overkill but most of the times I use Android Studio to draw my layouts. Since it support viewing the source and designer.
The split view designer feature for Xamarin Android has finally been added in the VS 2017 version 15.8 update. Here is a link to the release notes.
https://learn.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes
Android Designer Split View

Unable to add WPF controls to the toolbox in Visual Studio 2013

First of all, I am completely new to Visual Studio, so please don't be too judgmental. I have a project I need to do in C# for my studies and my team uses a GitHub repository. I am in charge of creating the GUI and I am stuck at the very beggining.
I want to create the main application window using WPF, but when I use toolbox > choose items, I can not see the WPF tab. Also, when I am trying to enable the designer view, nothing happens.
Is it perhaps the software version being Visual Studio Community 2013 causing the issue? Do I need to have the Visual Studio Professional version in order to use WPF toolbox?
I'm attaching a link to the screen of the situation below.
As I presumed, all I needed was the professional version of Visual Studio. After obtaining and installing it everything works fine.

When to use Blend for a WPF developer?

I'm a WPF developer and use VS Pro 2012 everyday for UI adjusting and coding. I installed Blend for Visual Studio but I never used it (just launched it by accident several times).
I'm afraid that I missed something by not using Blend. If I did miss something, what is it then?
Blend lets you design WPF UI, create controls and determine their behaviors visually (by UI), and Visual studio lets you do that programatically.
There is nothing you can do in blend, that you can't do in visual studio.
It is a tool for people who are less comfortable using code, and more comfortable using a cool UI to create custom controls and behaviors and design thier UI
In Visual Studio 2012 and later, the WPF UI designer is Blend; it's actually loaded in the background and accessed through out-of-process COM interfaces. This is part of the reason its behavior can be a bit bizarre at times, why you get messages about being able to edit the XAML while the design surface is loading.
If you're used to VS form builders you're going to be fine with Visual Studio.

Is there a way to bring XAML enhancements of VS2013 into VS2012?

There are new features in visual studio 2013 (currently preview edition) for XAML including:
IntelliSense support for data binding and resources
Go To Definition for navigating styles
Code snippets
Is there a way to use these features in visual studio 2012 as a feature pack?
Is there any other 3rd party extension pack with similar capabilities?
I've been using Resharper Plugin for years now http://www.jetbrains.com/resharper/
Give it a try. Navigation to styles is possible by pressing Ctrl + Left Mouse button
Code snippets are supported and it improves IntelliSense anyway.

How do I force Visual Studio design view to render with Classic theme?

My problem is as follows:
I design my WPF application in Visual Studio 2010 on Windows 8.
I know that the application is only going to be used in Windows XP classic mode.
What I'm seeing in the design view of Visual Studio doesn't match my eventual results on Windows XP. The font is a tad different and therefore some textboxes end up too small or too big.
Is there any way to force Visual Studio's design view to use Windows XP's classic theme instead of the one from my current OS or the most modern one it is able to use?
I've tried the following:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/PresentationFramework.Classic;component/themes/classic.xaml" />
</ResourceDictionary.MergedDictionaries>
No luck however.
I think you need to use Expression Blend to get the design time view rendered with the Classic theme. It is more advanced than the designer available in VS 2010. The xaml designer in VS 2012 is updated to have more of the advanced features from Blend and also to support rendering with a specified theme at design time inside Visual Studio.
So if you need WYSIWYG designer with Classic theme you can do it by using Blend and a resource like:
<Application.Resources>
<ResourceDictionary Source="/PresentationFramework.Classic;component/themes/classic.xaml" />
</Application.Resources>
The designer result in Blend then looks like this (Blend for Visual Studio 2012):
To make it a bit clearer regarding the differences between VS 2010 and VS 2012:
VS 2010 WPF designer is limited, if continuing with 2010 you will
need to use Expression Blend to get the real theme in design mode
VS 2012 has a new better WPF designer that is based on Blend
Blend for VS 2012 is delivered with VS 2012 but is limited to ModernUI
projects in the RTM version
Blend for VS 2012 needs Update 2 (currently CTP 4 is avaliable) to handle WPF projects for desktop applications as lordcheeto says in his comment

Resources