F
F
fryette2015-02-26 11:12:10
WPF
fryette, 2015-02-26 11:12:10

How to correctly arrange object properties in HAML?

Let's say there is some Button

<Button x:Name="TestButton" HorizontalAlignment="Center" VerticalAlignment="Stretch" Margin="12,0,0,0" FontSize="19" IsDoubleTapEnabled="False" IsRightTapEnabled="False" />

In what order should its properties be arranged in order for this to be correct?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sydorenko, 2015-02-26
@fryette

The order of the properties in the XAML tag does not matter. The result will be the same if you use properties that are valid for this object (Button), or attached properties (Attached Properies).
In general, (2 + 4 + 7) \u003d (7 + 2 + 4) \u003d (7 + 4 + 2) \u003d ... from the rearrangement of the terms, the result in this case does not change.
a couple of links with recommendations for familiarization on the topic
log.maneu.net/my-xaml-coding-guidelines
https://paulstovell.wordpress.com/2007/05/04/xaml-...
but they only have recommendations , since it is convenient to read the author who wrote these recommendations .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question