Design and XAML on Different Document Tabs

Tips Search

If you like the tips then you'll love the book!

Order your copy today:
http://www.amazon.com/gp/product/0735649928

Design and XAML on Different Document Tabs

  • Comments 3

Versions:  2010
Published:  2/11/2010
Code:  vstipTool0009

 

Now that you can free your document windows and put them on multiple monitors many people are asking how to do this with code-behind files.  Assume we have a XAML document open like this:

image

 

But we want the Design in one window and the XAML in another so we can, say, work on each document in a separate monitor.  Well, if you click and drag the document tab, both the design and the XAML go together:

image

 

So what do you do?  The solution is pretty easy as it turns out.  With the design view in one document, go to Solution Explorer and Right-Click the XAML file and choose "Open With.":

image

 

Now, in the Open With dialog, select "Source Code (Text) Editor" and click "OK":

image

 

You will now have two XAML windows.  One will be for your designer and one for just the XAML:

image

 

Now you can put them on two different monitors or whatever you feel like doing.  Enjoy!

  • Would you sacrifice intellisense for this??

  • Fatih,

    Good point.  I guess it is up to the individual.  Thanks for reminding me to put a warning in there though.

    Z

  • All,

    The intellisense problem has been fixed in the Release Candidate so you will NOT be giving it up when you use this tip. :)

    Z

Page 1 of 1 (3 items)
Leave a Comment
  • Please add 6 and 3 and type the answer here:
  • Post