Blend 3 - Keyboard Shortcut to switch between design and xaml views? - silverlight

As I'm not more of a developer than a designer I like to hand code my xaml rather than using draggy-droppy stuff.
Since silverlight 3 - the design preview in VS2008 has disappeared. It wasn't that great but at least I got a visual representation of my markup without having to run the application.
So I installed Blend 3 and I'd still like to hand code my xaml.
Does anyone know a keyboard shortcut to switch between design view and xaml view - I've tried editing the xaml in VS then tabbing over to blend but theres a small delay that can be annoying when I just want a quick preview.
Thanks.

For doing the thing you want please test the following solution:
Navigate to Tools menu of the visual studio
Click the Options menu item
From left pane choose the Environment and then Keyboard
From right pane choose the Visual C# 2005 combobox item
Now you can easily switch between xaml and the desing view by pressing Shift + F7

Are you talking about while in Blend? In which case it's F11 to toggle view.
If your talking about toggling between VS and Blend then I don't think it can be done, but you could try adding a Keyboard Shortcut in Tools->Options->Keyboard (not tried it and don't know if it would be successful).

In Blend you can use F11 to toggle between the three states:
Design View
Xaml View
Split View
It seems to me that what would help you the most is to change your default view:
-> Tools
-> Options
-> Documents
-> Change the Default Document View to either Xaml or Split View
And there is a way to toggle between VS and Blend: I do this all the time with Alt + Tab. I'd be cautious though: you should save the solution before switching to keep the two apps in synch.

Related

Visual Studio - How to open a second window with a designer?

I need quite simple help with Visual Studio in which I build my application based on WPF.
By accident, I closed the top window in which the designer was.
Currently, in both windows there is a code, and not as before in a single visual project.I spent over 30 minutes searching for a solution on Google, but I can not find anything. As it is now:
What is expected:
Thanks!
Based on some clarification in the comments of what you were looking for, once you're in the design view and you've closed the Design/XAML Split, you can reset the window by clicking one of the split/open icons in the bottom right hand corner of the window.
With the method you put into your answer, I believe that won't give you the other Designer options (like snapping controls to a grid, disabling/enabling rendering effects/etc) on the window.
Just found a solution:
1. Select the tab you want two copies of
2. Select menu Window → New Window from the menu.
3. Right click the new tab and select New Vertical Tab Group
Open two instances of a file in a single Visual Studio session

What is the hokey to switch from XAML tab to Design tab in Visual Studio 2010

I want to know if there's a shortcut/hotkey to switch between XAML to the designer. Doing WPF I like to code XAML full screen then check the design full screen. I've looked up Google, without success.
Something similar to the F7 shortcut to switch between code/design in winform probly exist for wpf.
You can switch from XAML view to Designer view using SHIFT + F7 hotkey and switch back using navigation.Back (Ctrl + -).
This worked for me.
Open your XAML file in the main view and keep it in the Designer View.
Right click the same XAML file in Solution Explorer and use 'Open With' option.
Select the editor you are most comfortable with from the list of editors.
This opens the XAML mark up code in a separate window.
You can now type the XAML mark up in one window and when you save the changes are reflected in the designer view (open in your main window).
You can switch between them using regular short cut keys to switch between windows in Visual Studio. You can even drag them to different monitors and see them side by side.

WPF: Do VS 2010 and Blend 4 really integrate well?

I'm new to WPF, so this is my first project.
I started with the coding side of things using VS. I am overall pretty satisfied with the way VS is used to build a WPF app, however a big part of WPF is also animation.
So to my relief, I was able to open the solution I created using VS 2010, in Expression Blend 4.
I opened it, but then I noticed the form design view in Blend 4. My heart sank. Please don't tell me WPF 4 is still so immature as a product that you cannot yet work decently with WPF projects created in VS 2010?
See the screen shots:
Here is good old VS 2010 form design view. As you can see there is a menu and a label control on the form.
Here on the other hand is the same form open in Blend 4:
As you can see, no design time support it seems for ANY existing elements. The form besides being black, seems to not contain my menu or label.
Have I done something wrong, or is Blend this immature?
My course of action seems to be learning the XAML and using pure VS 2010 for animation, but that means that Blend 4 would be a failed product in my eyes.
Update:
Here is the full screen , so this is after opening the MainWindow.xaml in Blend 4.
Ok well I figured it out.
I am guessing its also a bug in Blend 4.
In VS 2010 my Window visibility was initially hidden, this is because I have a custom splash screen which first loads, then sets the visibility to true.
So design mode imo of Blend should not pay attention to the Windows visibility property, this is a run time property really.
Setting the visibility to true of the form / window. and the results are better.

Toolbar Button with Context Menu? Like New Project Button in Visual Studio

I need a toolbar button similiar to the "New Project" button in the standard Visual Studio toolbar. When clicked, it pops up a dialog. However, it also has a small little down-arrow next to the icon graphic that, when clicked, expands a context menu with more options.
Is there a standard control available with this functionality?
I don't think there's built in functionality for a SplitButton in WPF currently. Here's another thread that may help you out though:
WPF SplitButton?
You could combine a couple of controls together to make one fairly quickly. Might as well make a new UserContol out of it that can be re-used throughout your app as well.
Also, a quick search on WPF SplitButton will return a lot of examples on how to make one or you could get one off of CodeProject or CodePlex (though I'm not sure if they'll come with a image property automatically).

WPF design rendering is dramaticaly slow Visual Studio 2008? Are there any tweaks that could speed it up?

I just wanted to do some tutorials in WPF but I find that the designer works very slow in comparision to Windows Forms/GDI+.
Are there any tweaks to speed it up?
If you're just after a bit of XAML editing, you can use a separate editor, such as XamlPad. That has much quicker rendering than the VS designer.
I turned it off.
Right click the xaml file in Solution explorer,
use Source code (Text) Editor
Set it as default
Good thing is Intellisense still works!
In case you need to view the Design view occasionally, you can still Right click -> Design view.
Turn it off. The VS XAML designer is awful and doesn't work anyway as soon as your XAML is non-trivial. Go into your options and map the .xaml extension to the regular XML Editor.
you can look in the following link.
quite same as the previous answers."How to speed up Visual Studio 2008's slow WPF designer"

Resources