1.WPF is written in the appealing language XAML.
2.WPF is flexible.
3. For rich interface development.
<window x:class="Wpfapplication1.window1"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="Http://schemas.microsoft.com/winfx/2006/xaml"Title="Window1"height=" -"Width=" -"> <Grid> <Grid.Background> <LinearGradientBrush> <gradientstop offset="0"Color="Blue"></GradientStop> <gradientstop offset="0.5"Color="LightBlue"></GradientStop> </LinearGradientBrush> </Grid.Background> <textbox heigh t=" at"margin="10,10,10,0"Name="TextBox1"Verticalalignment="Top"text="{Binding elementname=slider1, Path=value, updatesourcetrigger=propertychanged}"/> <slider height=" +"margin="10,38,10,0"Name="Slider1"Verticalalignment="Top"maximum=" -"/> <button content="Button"Horizontalalignment=" Left"margin="22,100,0,0"Verticalalignment="Top"Width="113"height=" +"/> <label content="Label"Horizontalalignment=" Left"margin="22,171,0,0"Verticalalignment="Top"height="Panax Notoginseng"Width="146"/> </Grid></Window>Window labels The title, Height, Width are the properties of the Window property in the XAML file, the type of the value of the property is always a string, but the XAML parser can convert these strings to any type of. Net
Specific effects.
The interface is simple and gorgeous.
The interface control's property adjustment interface is very intuitive.
As a whole, the XAML simplifies the code, allowing the coder or even a code to complete a beautiful program without writing it himself.
<grid margin="10,0,0,0">
Set Grid Grid Layout
Compared to the layout in Java FX is much simpler, the code operation only needs to modify the properties.
C # WPF