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>