zoukankan      html  css  js  c++  java
  • WPF SDK研究 Intro(5) QuickStart5

    QuickStart5
        This sample shows you how to use Hyperlink elements to create a simple two-page Extensible Application Markup Language (XAML) application.
        该实例使用Hyperlink控件实现了两个页面的跳转,请在xaml中注意Hyperlinkd的NavigateUri属性。

    <!--    Page1    -->
    <Page
        xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x
    ="http://schemas.microsoft.com/winfx/2006/xaml">
      
    <StackPanel Background="LightBlue">
        
    <TextBlock Margin="10,10,10,10">Start Page</TextBlock>    
        
    <TextBlock  HorizontalAlignment="Left"
                    Margin
    ="10,10,10,10">
          
    <Hyperlink  NavigateUri="Page2.xaml">Go To Page 2</Hyperlink>
        
    </TextBlock>
      
    </StackPanel>
    </Page>


    <!--    Page2    -->
    <Page
      xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x
    ="http://schemas.microsoft.com/winfx/2006/xaml">
        
    <StackPanel Background="LightGreen">
            
    <TextBlock DockPanel.Dock="Top"
                  Margin
    ="10,10,10,10">Page 2</TextBlock>
            
    <TextBlock  HorizontalAlignment="Left"
                        Margin
    ="10,10,10,10">
                
    <Hyperlink  NavigateUri="Page1.xaml">Go To The Start Page</Hyperlink>
            
    </TextBlock>
        
    </StackPanel>
    </Page>
  • 相关阅读:
    BZOJ3575 [Hnoi2014]道路堵塞
    BZOJ4456/UOJ184 [Zjoi2016]旅行者
    BZOJ4455/UOJ185 [Zjoi2016]小星星
    BZOJ1036 [ZJOI2008]树的统计Count
    BZOJ2594 [Wc2006]水管局长数据加强版
    BZOJ3669/UOJ3 魔法森林(LCT)
    BZOJ1012:[JSOI2008]最大数
    洛谷【P1175】表达式的转换
    HDU4699:Editor
    BZOJ3039:玉蟾宫
  • 原文地址:https://www.cnblogs.com/Jax/p/1096750.html
Copyright © 2011-2022 走看看