Windows 8 Store Apps學習(3) 內容控制項

來源:互聯網
上載者:User

ToolTip, Frame, AppBar, ContentControl

介紹

重新想象 Windows 8 Store Apps 之內容控制項

ToolTip - 提示框控制項

Frame - 架構控制項,用於導航內容

AppBar - 應用程式欄控制項

ContentControl ContentPresenter - ContentPresenter 用來呈現 ContentControl 的 Content

重新想象 Windows 8 Store Apps 之容器控制項

Border - 邊框控制項

Viewbox - 控制子項目如何展開的容器控制項

Popup - 彈出框控制項

樣本

1、ToolTip 的 Demo

ToolTipDemo.xaml

<Page       x:Class="XamlDemo.Controls.ToolTipDemo"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:XamlDemo.Controls"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d">              <Grid Background="Transparent">           <StackPanel Name="root" Margin="120 0 0 0">                                  <TextBlock Text="TextBlock" ToolTipService.ToolTip="ToolTipService.ToolTip" ToolTipService.Placement="Bottom" FontSize="14.667" />                      <!--                   ToolTip - 提示框控制項                       Content - 提示內容                       Placement - 提示框的顯示位置(Bottom, Right, Mouse, Left, Top)                       IsOpen - 提示框是否可見                       Closed - 提示框關閉後所觸發的事件                       Opened - 提示框開啟後所觸發的事件               -->               <TextBlock Text="TextBlock" FontSize="14.667" Margin="0 100 0 0">                   <ToolTipService.ToolTip>                      <ToolTip Name="toolTip" Content="ToolTipService.ToolTip" Placement="Bottom" />                   </ToolTipService.ToolTip>               </TextBlock>                            </StackPanel>       </Grid>   </Page>

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.