Comments (6)
Just to add to this, if you've defined a style and you attempt to override any properties from the style, you have to ensure you add those properties after the style attribute, otherwise it won't work.
<BoxView VerticalOptions="Start" Style="{StaticResource StyleBoxViewHorizontalSeperator}" />
versus
<BoxView Style="{StaticResource StyleBoxViewHorizontalSeperator}" VerticalOptions="Start" />
I fixed it for our project by adjusting the XamlStyler options and adding Style after Key
Key, x:Key, Uid, x:Uid
Style
Name, x:Name, Title
from xamlstyler.
Probably a good idea. I have the ItemsSource one in my projects as well. No sense in having everyone discover this issue and add their own custom rules for themselves. Are there any other common Attributes that should be considered?
from xamlstyler.
is ItemsSource and SelectedItem necessary? default behavior is sorting by alphabet so it seems that they should end up in this order?
from xamlstyler.
Hmm, good point. I think there was a bug in the past where wildcards did not work as expected. I imagine I should be able to remove the ItemsSource line from my config. I know that there are cases that ordering is significant, though. Perhaps we should use this issue to collect a list of them?
from xamlstyler.
yes, definitely
from xamlstyler.
It would be great to be able to account for attributes where order matters, but we also want to make sure we are comprehensive. We need to investigate the definitive list of attributes that are affected as well as check to ensure there are not any special considerations for Xamarin.
from xamlstyler.
Related Issues (20)
- Styles doesn't break line with a long binding expression - Styler should break lines when there are binding parameters
- Add option to list failures when running in Passive mode HOT 1
- Suggestion: Central package versioning HOT 1
- Visual Studio reports vulnerability in nuget reference HOT 3
- The package 'StylerPackage' did not load correctly HOT 4
- [Bug Report] Error when formatting project file HOT 1
- Incompatible with Rider EAP HOT 7
- Error to edit .csproj files on VS 17.9.0 HOT 5
- The description and the title of the Addin is incorrect
- TODO: Release XamlStyler 3.2401 HOT 5
- Generate JSON Schema for config file HOT 1
- When adding a Propertygroup to a project XAML, an error in StylerPackage appears HOT 3
- DataGrid Header HOT 3
- No such interface supported HOT 1
- New releases blocked on release build extension deployment bug and VS debugging HOT 7
- Final feature update and deprecate support for Visual Studio 2017
- Update Newtonsoft.Json package to version 12.0.2 HOT 3
- Files with UTF-16 encoding fail when running xstyler on Ubuntu
- Error: the nuget package not found HOT 2
- Output details about the failures when running in passive mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamlstyler.