Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8830361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:03:57+00:00 2026-06-14T08:03:57+00:00

Recently I have noticed that most of the code examples on MSDN are missing

  • 0

Recently I have noticed that most of the code examples on MSDN are missing vital formatting characters such as spaces and newlines.

For example, this page on the Setter.TargetName property has some example XAML but it is not formatted, and there are no spaces between element names and attributes:

<Stylex:Key="Slider_Thumb"TargetType="{x:Type Thumb}"><SetterProperty="OverridesDefaultStyle"Value="true"/><SetterProperty="Width"Value="14"/><SetterProperty="Height"Value="14"/><SetterProperty="Template"><Setter.Value><ControlTemplateTargetType="{x:Type Thumb}"><GridWidth="14"Height="14"><EllipseFill="{TemplateBinding Foreground}"/><EllipseStroke="{TemplateBinding BorderBrush}"StrokeThickness="1"x:Name="ThumbCover"><Ellipse.Fill><LinearGradientBrushEndPoint="0,1"StartPoint="0,0"><LinearGradientBrush.GradientStops><GradientStopColor="#CCFFFFFF"Offset="0"/><GradientStopColor="#00000000"Offset=".5"/><GradientStopColor="#66000000"Offset="1"/></LinearGradientBrush.GradientStops></LinearGradientBrush></Ellipse.Fill></Ellipse></Grid><ControlTemplate.Triggers><TriggerProperty="IsDragging"Value="true"><SetterTargetName="ThumbCover"Property="Fill"><Setter.Value><LinearGradientBrushEndPoint="0,1"StartPoint="0,0"><LinearGradientBrush.GradientStops><GradientStopColor="#CCFFFFFF"Offset="1"/><GradientStopColor="#00000000"Offset=".5"/><GradientStopColor="#66000000"Offset="0"/></LinearGradientBrush.GradientStops></LinearGradientBrush></Setter.Value></Setter></Trigger></ControlTemplate.Triggers></ControlTemplate></Setter.Value></Setter></Style>

Is anybody else having this problem, and is there anything I can do about it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:03:59+00:00Added an answer on June 14, 2026 at 8:03 am

    Enable Auto-Formatting event in your VS for paste from clipboard(Tools -> Options) –

    enter image description here

    It will format your xaml as soon you paste code in your XAML file but you need to fix some spacing issues manually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never come across this issue but most recently I noticed that a
I have recently noticed that my test code is too close to the production
I have recently noticed that a lot of JavaScript files on the Web start
I have a few forms that use tiny mce. I have noticed recently that
I recently have a problem that my java code works perfectly ok on my
I recently installed Visual Studio Professional 2010 Beta 1 and noticed that most of
I have recently noticed that when i visit certain websites, there are usually links
Recently I have been using thrust a lot. I have noticed that in order
I have recently noticed that nobody uses views in my company (and it's a
i have noticed that eclipse recently creates a .settings directory with 1 file inside

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.