Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to boost up XAML designer in visual studio 2010?

When i use XAML designer it is so hard and slow to move into the designer and out of it, visual studio stuck for a while when i do that, is there any way to boost up XAML designer and editor?

Ant it is very slow when saving XAML files!

like image 511
Sawan Avatar asked May 15 '12 12:05

Sawan


People also ask

How do I view XAML design in Visual Studio?

To open the XAML Designer, right-click a XAML file in Solution Explorer and choose View Designer. to switch which window appears on top: either the artboard or the XAML editor.

What replaced XAML?

And that's where we are right now. The go to choice for Windows desktop applications is WPF. The majority of Windows Phone and Windows Store applications are built with XAML and C#, even more so for business applications. And to top it off, we can now build applications for iOS and Android using XAML and C#.


2 Answers

That usually means that you might have complex UI, maybe time to break it down into smaller components?

I usually turn off showing XAML View by default: Tools > Options > TextEditor > XAML > Misc

  • Check Always open documents in XAML view
  • and uncheck Automatically populate toolbox items.
like image 91
Bek Raupov Avatar answered Oct 02 '22 11:10

Bek Raupov


I think the problem in VS2010 when you save the XAML file there a is partial class same name with XAML class generating.

We can see this class easily by clickin InitializeComponents() as you know. But Expression Blend doesn't generate these Class.g.s... files immediately .

I hope In Visual Studio's later versions these will be fixed.

It's similar in Android Development Platform Eclipse there is a "R.class" holds all visual element ids. When you save any xml layout file this class get an update.

These new development approaches has some bad effects for developers I think. There must be option such as Ctrl+G+Save ? save and generate :)

If you change any XAML and not save when you click another XAML or CS (unfocus anyway) this slowly behavior still exist.

Beside this if you just save UI without generating , dev.environment can't notify you about existing errors and warnings.

Finally It steals too much time from developers. ,

Need to be solved.

I was preparing to ask this question I see it here.Thanks for asking.

like image 39
Davut Gürbüz Avatar answered Oct 02 '22 11:10

Davut Gürbüz