Feature Request

With the new ReSharper you're doing more with the XAML. I have a request. Alot of times I see developers using default values in the XAML. I would like a way to detect these and strip them out. Similar to what we do in code.

An example I saw today.
<StackPanel Orentiation="Vertical">
...
</StackPanel>

Vertical is the default value. I would like to strip it out so there is less noise in the XAML and less content for my Silverlight users to download.

Michael

2 comments

While I'd love more support for XAML quick fixes and options, I think this one is pretty tricky. Dependency properties have default values but they can be overridden by an implicit style. ReSharper could of course detect the use of an implicit or explicit style that has been defined in XAML and then detect redundant property setters...

0

Hello Michael,

Thank you for your suggestion! I've logged a feature request: http://youtrack.jetbrains.net/issue/RSRP-223652.


Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Alot of times I see developers using default values in the XAML. I
would like a way to detect these and strip them out. Similar to what
we do in code.

An example I saw today.

<StackPanel Orentiation="Vertical">

...

</StackPanel>

Vertical is the default value. I would like to strip it out so there
is less noise in the XAML



0

Please sign in to leave a comment.