Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAML Designer - default zoom?

Tags:

I feel very much annoyed by default zoom of XAML Designer in VS2015 (not sure if version is relevant), which is Fit all by default.

Is there a way to set it to 100% by default? Disabling zoom feature is also an option. But there is nothing related in VS Settings - XAML Designer.

P.S.: tagging it with languages to be visible to peoples like me, who only look at tagged questions (in my case C#).

like image 589
Sinatr Avatar asked Dec 03 '15 14:12

Sinatr


People also ask

What replaced XAML?

The XAML Previewer has been deprecated in Visual Studio 2019 version 16.8 and Visual Studio for Mac version 8.8, and replaced by the XAML Hot Reload feature in Visual Studio 2019 version 16.9 and Visual Studio for Mac version 8.9.

How do I view XAML design in Visual Studio?

These include the artboard (which is the visual design surface), XAML editor, Document Outline window (Objects and Timeline window in Blend for Visual Studio), and Properties window. To open the XAML Designer, right-click a XAML file in Solution Explorer and choose View Designer.

How do I enable XAML live preview?

To open it, go to Debug > Windows > XAML Live Preview. Or, select the Show in XAML Live Preview button in the application toolbar.

How do I disable XAML designer?

To disable project code in the designer Alternatively, on the toolbar in the XAML designer, choose the Disable project code button. You can toggle the button again to re-enable project code.


1 Answers

Visual Studio 2015 (at least Professional with Update 1) remembers your XAML Designer's zoom setting.

Start just one instance of VS2015 and create a new WPF Application. Open the MainWindow.xaml and select the designer. In my case it opens up with 100% zoom:

Default 100 zoom

Now change the zoom to Fit all and then create a new WPF Application. Again open MainWindow.xaml and select the designer. The zoom should show something like 229.4% (which is the % for Fit all in this case):

Fit all default

Restart VS2015 and create new WPF project and again check the zoom. It should till default to your last selection.

Note: Selecting 400% didn't have this same behavior. The designer opened with 100% instead.

like image 83
Mikael Koskinen Avatar answered Oct 13 '22 01:10

Mikael Koskinen