VSPackage control added/removed to Visual Studio designer - visual-studio-2012

When the control is added or removed in the design time of VS, I guess there should be an event generated which can be used to control the behavior VS after the event.
I was searching for an Interface in VSSDK which tells you when a control is added/removed on the Visual Studio design surface or (asp.net control in design/source page). Is there such an event?
Thanks!

Related

Visual Studio 2012 Design view out of sync

When I'm on the split view of Visual Studio 2012 and I make some changes on the Code window, the design window does not show the changes and instead gives me this message "Design view is out of sync with Code view. Click here to synchronize views".
Screenshot: http://s7.postimg.org/oxwnggeih/123.jpg
Is there a way configure Visual Studio to have Design view seamlessly updated as I write code?

Visual Studio custom control / UserControl not refreshing in ToolBox

I use Visual Studio 2012 Ultimate, created a UserControl and everything went fine until I wanted to make some changes to the UserControl class, did a Clean and Rebuild several times, removed my custom control from the Form, added a again, but it is still not reflecting the changes that I have done to the UserControl's class.
The custom control and the form are in the same project, so no .dll or what so ever issue. How do I force Visual Studio to recompile the code and show the changes?
See this answer How to put a UserControl into Visual Studio toolBox
There are several approaches to the problem, might be a good future reference.

Can I use Blend for Visual Studio 2012 to make regular desktop applications?

Everything I see pertaining to Blend for Visual Studio 2012 talks about making Window's store apps. Am I correct in assuming it can be used for regular desktop applications too?
At the moment Blend for Visual Studio does not have support for building WPF or Silverlight applications enabled. But, it will with the next update. From that point on you will be able to design regular desktop apps using Blend again. Until than you could use Expression Blend 4 which is available to you if you have an MSDN subscription.
You can read more about the upcoming update for Visual studio here and download a preview.
There's an earlier preview of Blend available that supports WPF too. You can read more about this on the BlendInsiders blog. The only drawback with this preview is that it doesn't have a go-live license yet. It runs side by side with Blend for Visual Studio.
Although it should be possible to build an application entirely in Blend, I would recommend writing your code in Visual Studio and only work with you XAML in Blend.
Update:
With the release of Visual Studio 2012 update 2, support for WPF is added to Blend. More about that can be found over here.
Yes and no.
The "Windows Store" application templates can only be used for the "Windows Store model"-type applications, also known as Tifkam, Metro, or Immersive.
Blend does feature a designer for regular WPF and Silverlight applications and controls. However it isn't a tool for the end-to-end creation of applications, it is strictly a user-interface design tool. Note that Visual Studio shares the exact same WPF designer codebase. Use Blend if you're a non-programmer designer, or if you need a superior Tifkam HTML or "Jupiter" XAML (not-WPF) designer tool.

Blend in visual studio 2012: Missing the "resources" window i used to use in blend 4

In blend 4 i often open a resource dictionary (i.e. "Generic.xaml") by clicking the "resources" tab (next to the property tab on the right pane), navigate to a resource and click on its icon to edit it in the designer.
In blend for visual studio 2012 i can't seem to find the resources tab? How am i then able to edit resources in resource dictionaries?
As of VS2012 Update 2+ we can once again create desktop WPF apps so the Resource tab returns.
"In addition, Visual Studio 2012 Update 2 and later adds support for Silverlight and WPF editing, as well as SketchFlow. Developers can now leverage a consolidated tool for all the platforms as part of a fully integrated solution with Visual Studio." (1)
(1) "Microsoft Expression Changes", http://www.microsoft.com/expression/eng/, retrieved 2013-9-20
I'm assuming this is a XAML project. Is the Window open? Main toolbar -> Window -> Resources... is that checked? If not, check that.

Visual Studio 11 - Design view is unavailable for x64 and ARM target platforms because the document contains custom elements

I'm test-driving Visual Studio 11 beta and it appears I've hit a major snag.
Has anyone tried opening an actual production WPF project that contains WPF windows with User Controls? When I try to open a WPF Window or control that contains user controls, the design view displays a nice error message:
"Design view is unavailable for x64 and ARM target platforms because the document contains custom elements."
It appears to be a major wtf... since most developer machines these days are x64.
* UPDATE: *
Reproduced this in a new VS 2011 WPF project:
Add a xaml resourec file with styles (in the same project as the user control)
Reference this file in a user control using the tag
Immediately, the "Design view is unavailable for x64 and ARM target platforms..." pops up.
As soon as I remove the resource reference, the designer starts working again.
The "x64 or ARM" in the message refers to the current target configuration of the project, not to the machine on which Visual Studio is running. That is, if you change the target platform configuration of the project to x86 or Any CPU, you should not get this message.
You can change the target platform from the Standard Toolbar (select the "Add or Remove Buttons" item at the end of the toolbar, and select "Solution Platforms").
If your solution platform is x86 or Any CPU, please add a comment to this post and let me know. I'd be interested in investigating.
I resolved this by doing the following in Visual Studio:
Select the solution node within Solution Explorer.
Within the Properties pane, set "Active config" to an x86 processor type.
Display Properties for application project.
Select the Build tab on the navigation pane.
Ensure "Platform target" is set to x86.
After completing these steps:
Restart Expression Blend.
Observe the designer is now loaded with UI

Resources