现在的位置: 首页 > 综合 > 正文

WPF SDK研究 Intro(1) QuickStart1

2012年02月26日 ⁄ 综合 ⁄ 共 534字 ⁄ 字号 评论关闭
QuickStart1
    This sample shows you how to create an Extensible Application Markup Language (XAML) page that displays "Hello World."
    一个用xaml做出的WPF,"Hello world!"。
    注意,在StackPanel中使用TextBlock显示文字。

<Page
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    
>
  
<StackPanel 
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml">
    
<TextBlock>
      Hello, World
!
    
</TextBlock>
  
</StackPanel>
</Page>

抱歉!评论已关闭.