How to enhance the design of XAML designer in visual studio 2010?

When I use the XAML constructor, it moves so heavily and slowly into the constructor, and the visual studio got stuck from it for a while, when I do this, is there any way to increase the constructor and the XAML editor?

Ant it is very slow when saving XAML files!

+6
source share
9 answers

Buy an SSD (Solid State Drive), put your source code and OS on it and go XAML!

0
source

Does this usually mean that you may have a complex interface, perhaps time to break it down into smaller components?

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

  • Check Always open documents in XAML view
  • and clear the Automatically fill toolbar items check box.
+4
source

I think that the problem in VS2010 when saving a XAML file there is a partial class name of the same name with the generation of the XAML class.

We can easily see this class by clicking InitializeComponents (), as you know. But Expression Blend does not generate these Class.gs files ...

I hope that in future versions of Visual Studio they will be fixed.

Similarly, the Android Eclipse development platform has an “R.class” that contains all the elements of the visual element. When you save any xml layout file, this class gets updated.

These new development approaches have some bad consequences for developers, I think. Should there be an option like Ctrl + G + Save? save and generate :)

If you change any XAML and do not save when you press another XAML or CS (in any case, do not focus), this slow behavior still exists.

In addition, if you just save the user interface without generating, dev.environment cannot notify you of existing errors and warnings.

Finally, he steals too much time from developers.,

Need to decide.

I was getting ready to ask this question, I see it here. Thanks for the request.

+1
source

The XAML editor in Visual Studio 2010 (although better than before) still has performance issues. If possible, I recommend using Expression Blend and Visual Studio during the development process. They integrate well, and Blend is designed to handle XAML. You can also try Kaxaml , which is useful in some scenarios.

0
source

You can also use a common text editor using xaml, greatly improving performance, but you lose the WYSIWYG window.

To open using general, just right-click on the xaml → open file with → Source Code Editor (text) and make it the default if you want.

0
source

Right-click the Xaml file in Solution Explorer and select the XML editor (text), then click Set as Default.

Obviously, I no longer get the user interface preview, but you still get autocomplete in the xml editor, and that’s the difference in performance at night.

0
source

Use a simple editor to perform a large-scale modification, and then return to Visual Studio. compile and correct your code if necessary.

I use notepad ++, which can be opened by selecting the "Open with ..." entry from the context menu, and then adding to the list of your application.

These tips work well when I had to modify an existing large file.

0
source

After several months of performance problems .. empty the temporary directory. My bloated up to 100 GB and 10 thousand files. If you are not diligent, this dir cannot be cleared after a while:

% LOCALAPPDATA% \ Temp

t

C: \ Users {CurrentUser} \ AppData \ Local \ Temp

The WPF XAML editor works like it does now.

0
source
-1
source

Source: https://habr.com/ru/post/915792/


All Articles