-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to ignore design-time reference prefix when reordering #306
Comments
Xavalon#306 Corrected options descriptions.
Xavalon#306 Code cleanup and corrected version in manifest file.
Great idea, @mturczyn! Have you considered tying this to the designated design-time reference namespace prefix? I am imagining something like this: Display Name: "Ignore Design-Time Reference Prefix" |
@grochocki I don't understand "designated design-time reference namespace prefix" part. My idea which I implemented, is to:
I created pull requests, so you can see it in action :) |
@mturczyn I consulted with a few folks and I like what you are doing to leverage the namespace instead of the prefix (since someone could use something other than the standard/default of 'd'), but exposing a free form option feels heavy when there is a limited set of design namespaces. So, we'd like to propose a hybrid between my original suggestion and your implementation where we keep the exposed option a bool, but derive the prefix from the hardcoded namespace. If there are additional design namespaces added in the future, we can update that list.
Are two passes strictly necessary? I am wondering if we can optimize this by looking in the root node for the namespaces upfront. |
Corrected descriptions of options of XAML Styler.
@grochocki Hi! |
…elated to the feature
…ith ingoring design time namespaces option is set to true
… time namespaces, when there is no design time namespace specified in XAML
I recently started using more often design time properties, which requires to include blend namespace:
It leads to having "double" properties, such as:
Using styler, it separates the two, if there are other properties, which, by default would go between the two.
But I would like to have this behaviour disabled, i.e. properties which differ only by design time namespace, I want them together as much as possible.
It makes easier to read the XAML code, as I see instantly what property is and if it has design time value set.
I forked the repo and I can try to develop this feature. I think it won't be huge thing to carry out.
The text was updated successfully, but these errors were encountered: