Project Description
"XAML Markup Styler" is a xaml beautifer, which makes XAML markup source code beautify much easier by sorting the attributes based on their importance.
This tool can help you/your team maintain a better XAML coding style as well as a much better XAML readability.
Your suggestions are most welcome, and donate , if you love this add on.
New Features in 2.0.0: download...
- Change Log:
- ENHANCEMENT: Convert to Visual Studio 2012 detail...
New Features in 1.5.7: download...
- Change Log:
- ENHANCEMENT: The customized attribute sorting option does not take effect after change. (Issue: 564)detail...
New Features in 1.5.6: download...
- Change Log:
- NEW FEATURE: Element ordering option (Issue: 474) detail...
- NEW FEATURE: Ability to define preferred attribute order priority - from Jurev (Issue: 224)detail...
- NEW FEATURE: Option to automagically style on save (Issue: 364) detail...
- ENHANCEMENT: SL Some behaviors will change based on parameters order (Issue: 536)detail...
New Features in 1.5.5: download...
- Change Log:
- ENHANCEMENT: Fix "Elements no line break between attributes" gets back default value after VS2010 restarted - from Manuel (Issue: 339)detail...
- NEW FEATURE: Suggested Feature "Import Export Settings" (Issue: 373) detail...
New Features in 1.5.4: download...
- Change Log:
- ENHANCEMENT: Fix Binding with complex StringFormat incorrectly formatted. (Issue: 463)detail...
- ENHANCEMENT: Fix Cannot parse markup extension bug (Issue: 456) detail...
- ENHANCEMENT: Fix Style the MultiTrigger.Conditions as the Trigger (Issue: 360)detail...
- ENHANCEMENT: Fix Numeric character mappings are encoded incorrectly in attributes after format. (Issue: 418)detail...
- ENHANCEMENT: Fix Group attributes HorizontalContentAlignment and VerticalContentAlignment (Issue: 445)detail...
New Features in 1.5.3: download...
- Change Log:
- ENHANCEMENT: Fix Breaks bindings (Issue: #370) detail...
- ENHANCEMENT: Fix Doesn't work properly when Text contains linebreak (Issue: 369)detail...
New Features in 1.5.2: download...
- Change Log:
- ENHANCEMENT: Fix unwanted space before closing bracket of element beginning. detail...
New Features in 1.5.1: download...
- Change Log:
- ENHANCEMENT: Fix formatting error when handling nested Markup Extension as contructor value.
- ENHANCEMENT: Fix the text become selected from last cursor, to the end of the file, after beautify.
- ENHANCEMENT: Updated unit test for Markup Extension Handling accordingly.
- Note: Although, 1.5.1 has gone through all unit tests, pleasedisable markup extension format option or roll back to 1.4, if special forms of markup extensions causes serious malfunctioning. And your time in submitting the issue will be greatly appreciated.
New Features in 1.5: more...
- Change Log:
- *** NEW FEATURE: Capability to format markup extensions.
New Features in 1.4:
- Change Log:
- NEW FEATURE: Capability to collapse empty tags, e.g., <element></element> => <element/>
- ENHANCEMENT: Always put start&end tag of a "SINGLE LINE CONTENT" element on the same line if no line break applied to the start tag.
- ENHANCEMENT: Fix incorrect sort of "Property" and "Value" in Setter element.
New Features in 1.3:
- Change Log:
- Align subsequence attribute with first attribute vertically when "Position first attribute on the same line of first tag" is enabled.
- Prevent XamlStyler to style a read-only XAML.
New Features in 1.2:
- Add following options:
- Put ending bracket on new line
- Respect the built-in "Position first attribute on the same line as start tag"
New Features in 1.1:
- Add following options:
- Attribute tolerance
- Max attribute number per line
- Max attribute characters per line
- Elements no line break between attributes
- Add default shortcut key "Ctrl+K, Ctrl+2"
Feature Highlights
- Format/Beautify Xaml markup in one click.
- Sort attributes based on following rules:
- x:Class
- XML Namespaces
- WPF built-in namespaces
- User defined namespaces
- Key, Name or Title attributes
- Grid or Canvas related attached layout attributes
- Numeric layout attributes
- Width/MinWidth/MaxWidth
- Height/MinHeight/MaxHeight
- Margin
- Alignment related attributes
- HorizontalAlignment/ContentHorizontalAlignment
- VerticalAlignment/ContentVerticalAlignment
- Panel.ZIndex
- Other attributes
- Short attributes tolerance.
- When an element contains 2 or less than 2 attributes, line break is not applied for better readability.
- Special characters(e.g., &) are preserved.
- Respect "significant" whitespace situation.
- No new linefeed will be added to <Run/>, if it is immediatly following another element to prevent the rendering of unexpected space.
Significant Whitespace between <Run/> | | No Whitespace between <Run/> |
---|
| vs | |
<TextBlock> <Run>A<Run> <Run>B<Run></TextBlock> | vs | <TextBlock> <Run>A<Run><Run>B<Run></TextBlock> |
- Indent Xaml markup based on "Tab Size/Indent Size/Indent Charater" settings available in "Option/Text Editor/XAML/Tabs" page.
- XamlStyler specific options.
- Define your own attribute ordering rules
- Define your own attribute line break rules
- Markup extension formatting
- Automatically reformat Xaml file on saving
- Import/Export XamlStyler settings.