views:

114

answers:

2

Are there any automated tools that will parse through XAML code and clean out values that are explicitly declared to their defaults?

Example:

<Grid Margin="0,0,0,0" Height="Auto" Width="Auto">

I would expect to be reduced to:

<Grid>
A: 

XAML Power Toys has a utility to remove designer generated XAML. It is not specifically for items that are set to their default values, but it is close to what you are lookig for.

John Myczek
+1  A: 

Kaxaml has a scrubber feature that does this. Be careful with removing XAML default properties. Sometimes they are necessary for animation starting values.

Alan Le