11-28win8 AppBar
来源:互联网 发布:淘宝凤求凰cdk抽奖 编辑:程序博客网 时间:2024/06/05 23:50
手势向上或者鼠标右键时AppBar出现
看看AppBar是什么,通过查看其Content属性知道AppBar中可以放任何控件
AppBar只是win8提供的在特殊位置显示的占位控件,可以向其中放入任何控件,说到底我们只是通过向其中放置控件来将控件放到顶部或底部(单机右键或者向上手势时出现)
AppBar样式
IsOpen:设置在程序加载时是否默认显示AppBar
IsOpen="True"
IsSticky="True"
Opened事件
Closed事件
来个例子吧
********************************xaml中
<Page.TopAppBar >
<AppBar IsOpen="True" >
<StackPanel Orientation="Horizontal" >
<Button Click="Button_Click_1" Style="{StaticResource PlayAppBarButtonStyle}" AutomationProperties.Name =" 播放"></Button>
<Button Style="{StaticResource PauseAppBarButtonStyle}" AutomationProperties.Name=" 暂停"></Button>
</StackPanel>
</AppBar>
</Page.TopAppBar>
<Page.BottomAppBar >
<AppBar IsSticky="True" Closed="AppBar_Closed_1" >
<StackPanel>
<Button Content=" 同步"></Button>
</StackPanel>
</AppBar>
</Page.BottomAppBar>
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Button Content=" 按钮" FontSize="30">
</Button>
</Grid>
实现其功能其实也很简单,就是写一写属性和样式主要看你的熟练程度了。
- 11-28win8 AppBar
- win8 AppBar
- <win8>(五)实例讲解win8(XAML+C#)开发--------课程表:Appbar,FilePicker,启动页面(动画)
- AppBar简述
- 自定义AppBar
- AppBar的WTL实现
- AppBar与Panel
- AppBar到CommandBar
- WinJS示例-AppBar控件
- AppBar的简单使用
- XAML中AppBar的使用
- Link - Windows Universal App - AppBar
- AppBar和Toolbar的联用
- 11-18win8 布局
- win8
- win8
- win8
- win8
- 自定义PreferenceActivity的样式
- hdu1316 a~b之间有多少fib数
- 多线程模拟冰淇淋店售货问题
- UML概述
- 黑马程序员_Java中集合的应用
- 11-28win8 AppBar
- 知易游戏开发教程cocos2d-x移植版004
- 创建SQlHelper类
- 感悟这句话
- linux中probe函数中传递的参数来源(上)
- Extjs4 GridPanel的主要配置参数-详解
- poj 1456.Supermarket
- Apache—DBUtils框架
- 数据结构学习四(KMP算法实现)