Code Monkey home page Code Monkey logo

Comments (6)

CliffCawley avatar CliffCawley commented on June 6, 2024 1

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.

grochocki avatar grochocki commented on June 6, 2024

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.

NicoVermeir avatar NicoVermeir commented on June 6, 2024

is ItemsSource and SelectedItem necessary? default behavior is sorting by alphabet so it seems that they should end up in this order?

from xamlstyler.

grochocki avatar grochocki commented on June 6, 2024

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.

NicoVermeir avatar NicoVermeir commented on June 6, 2024

yes, definitely

from xamlstyler.

grochocki avatar grochocki commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.