Wpf sdk research intro (3) quickstart3

Source: Internet
Author: User
Quickstart3
This sample shows you how to construct a complex eXtensible Application Markup Language (XAML) layout by nesting textblock, button, and dockpanels within a parent dockpanel.
This example demonstrates any embedded control in the control, as shown below:

The XAML documentation is as follows: < Page
Xmlns = " Http://schemas.microsoft.com/winfx/2006/xaml/presentation "
Xmlns: x = " Http://schemas.microsoft.com/winfx/2006/xaml " >
< Dockpanel
Xmlns = " Http://schemas.microsoft.com/winfx/2006/xaml/presentation "
Xmlns: x = " Http://schemas.microsoft.com/winfx/2006/xaml " >
< Textblock background = " Lightblue "
Dockpanel. Dock = " Top " > Some text </ Textblock >
< Textblock dockpanel. Dock = " Bottom "
Background = " Lightyellow " > Some text at the bottom of the page. </ Textblock >
< Textblock dockpanel. Dock = " Left "
Background = " Lavender " > Some more text </ Textblock >
< Dockpanel background = " Bisque " >
< Stackpanel dockpanel. Dock = " Top " >
< Button horizontalalignment = " Left "  
Height = " 30px "
Width = " 100px "
Margin = " 10, 10, 10 " > Button1 </ Button >
< Button horizontalalignment = " Left "
Height = " 30px "
Width = " 100px "
Margin = " 10, 10, 10 " > Button2 </ Button >
</ Stackpanel >
< Textblock background = " Lightgreen " > Some text below the buttons </ Textblock >
</ Dockpanel >
</ Dockpanel >
</ Page >

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.