Home > Net >  Wpf xaml in what is the difference between two kinds of writing
Wpf xaml in what is the difference between two kinds of writing

Time:11-03


This is the first

This is the second
According to a simple WPF, Liu Tiemeng teacher speak of is called tag and attribute features of writing, of course, personal understanding is that, in addition the two writing, Liu Tiemeng teacher let us write according to the situation, don't know how to understand you

CodePudding user response:

The beginning and the end of the first is the label written separately and then the corresponding property can be written in the middle of the two start and end tags like
when the layout XXXXX XXXXX is you layout and add the contents of the
The second is the start and end tags such as
the layout
My usual habit is to use the first method when writing a layout of the start and end tags separated write middle layout reflects the hierarchy
A single control when writing a second more clearly

CodePudding user response:

Property is also a child tags at the same time, the simple properties using the second method can, save a space, complex property Triggers that would have to write the first approach, or write is not complete,
  •  Tags:  
  • C#
  • Related