C # WPF

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.