- 浏览: 62508 次
- 性别:
- 来自: 北京
-
文章分类
- 全部博客 (93)
- java (3)
- ios (9)
- wp (15)
- android (0)
- js (1)
- 服务器 (0)
- db (0)
- linux (1)
- python (0)
- xcode (0)
- ide (2)
- maven (0)
- spring (0)
- sql (0)
- 第三方 (1)
- nexus (0)
- nginx (11)
- tomcat (0)
- jenkins (0)
- zookeeper (1)
- git (1)
- svn (0)
- uml (0)
- redis (4)
- activemq (1)
- flume (0)
- kafka (0)
- mysql (1)
- memcached (0)
- mybatis (0)
- mac (0)
- mongo (1)
- docker (6)
- cache (0)
- jvm (0)
- markdown (0)
- springboot (24)
- mycat (3)
- LTS (3)
- 运维 (0)
- opts (1)
- netty (1)
- tcc (0)
- ffmpeg (2)
- 直播 (6)
- cxf (0)
- nodejs (0)
- storm (0)
- elasticjob (0)
- php (0)
最新评论
首先导入Toolkit.dll文件
将App.xaml.cs中InitializePhoneApplication()函数里的RootFrame进行修改
RootFrame=new TransitionFrame();
引入xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
上代码:
Slide.xaml
<phone:PhoneApplicationPage
x:Class="wp8Transaction.Slide"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d"
shell:SystemTray.IsVisible="True"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
>
<!--LayoutRoot 是包含所有页面内容的根网格-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--TitlePanel 包含应用程序的名称和页标题-->
<StackPanel Grid.Row="0" Margin="12,17,0,28">
<TextBlock Text="我的应用程序" Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock Text="页面名称" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<!--ContentPanel - 在此处放置其他内容-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
</Grid>
</Grid>
<toolkit:TransitionService.NavigationInTransition>
<toolkit:NavigationInTransition>
<toolkit:NavigationInTransition.Backward>
<toolkit:SlideTransition Mode="SlideDownFadeIn"/>
</toolkit:NavigationInTransition.Backward>
<toolkit:NavigationInTransition.Forward>
<toolkit:SlideTransition Mode="SlideRightFadeIn"/>
</toolkit:NavigationInTransition.Forward>
</toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
<toolkit:NavigationOutTransition>
<toolkit:NavigationOutTransition.Backward>
<toolkit:SlideTransition Mode="SlideLeftFadeOut"/>
</toolkit:NavigationOutTransition.Backward>
<toolkit:NavigationOutTransition.Forward>
<toolkit:SlideTransition Mode="SlideUpFadeOut"/>
</toolkit:NavigationOutTransition.Forward>
</toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>
</phone:PhoneApplicationPage>
执行下面方法 可见到滑动效果
private void slideClick(object sender, RoutedEventArgs arg)
{
NavigationService.Navigate(new Uri("/Slide.xaml", UriKind.Relative));
}
关于自定义transition
ITransition接口 实现此接口 重写GetTransition方法
将App.xaml.cs中InitializePhoneApplication()函数里的RootFrame进行修改
RootFrame=new TransitionFrame();
引入xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
上代码:
Slide.xaml
<phone:PhoneApplicationPage
x:Class="wp8Transaction.Slide"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d"
shell:SystemTray.IsVisible="True"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
>
<!--LayoutRoot 是包含所有页面内容的根网格-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--TitlePanel 包含应用程序的名称和页标题-->
<StackPanel Grid.Row="0" Margin="12,17,0,28">
<TextBlock Text="我的应用程序" Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock Text="页面名称" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<!--ContentPanel - 在此处放置其他内容-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
</Grid>
</Grid>
<toolkit:TransitionService.NavigationInTransition>
<toolkit:NavigationInTransition>
<toolkit:NavigationInTransition.Backward>
<toolkit:SlideTransition Mode="SlideDownFadeIn"/>
</toolkit:NavigationInTransition.Backward>
<toolkit:NavigationInTransition.Forward>
<toolkit:SlideTransition Mode="SlideRightFadeIn"/>
</toolkit:NavigationInTransition.Forward>
</toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
<toolkit:NavigationOutTransition>
<toolkit:NavigationOutTransition.Backward>
<toolkit:SlideTransition Mode="SlideLeftFadeOut"/>
</toolkit:NavigationOutTransition.Backward>
<toolkit:NavigationOutTransition.Forward>
<toolkit:SlideTransition Mode="SlideUpFadeOut"/>
</toolkit:NavigationOutTransition.Forward>
</toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>
</phone:PhoneApplicationPage>
执行下面方法 可见到滑动效果
private void slideClick(object sender, RoutedEventArgs arg)
{
NavigationService.Navigate(new Uri("/Slide.xaml", UriKind.Relative));
}
关于自定义transition
ITransition接口 实现此接口 重写GetTransition方法
发表评论
-
wp win8开发:scrollview滑动动画效果
2017-01-10 17:07 483产品需求,暂别ios开发,着手win8开发。 说说这个scr ... -
wp wp8:自定义Button图片背景
2017-01-10 17:11 350自定义一个返回按钮,以下是我的操作。 内容部分也是在网上 ... -
wp wp8:指定通信资源(端口)已由另一个应用程序使用 错误
2017-01-10 17:06 440测试机器是820t时,一直正常运行,后来改用920t的时候安装 ... -
wp wp8:自定义控件 自定义progressbar
2017-01-11 13:31 365MProgress.cs using System; usi ... -
wp wp8:服务器推送
2017-01-11 13:32 442前提:必须使用真机,真机注册 服务器端使用的是winform ... -
wp wp8:lbs
2017-01-12 10:51 468上码:不解释 using System; using Sys ... -
wp wp8:计划通知
2017-01-10 17:06 425using System; using System.Coll ... -
wp wp8:后台任务
2017-01-10 17:10 412MScheduledTaskAgent项目下 Schedule ... -
wp wp8:公共样式定义
2017-02-07 10:12 492在Resources下创建一个名称为buttonStyle.x ... -
wp wp8:后台传输服务
2017-01-11 13:27 4821.TransferPreferences属性设置: 后台传 ... -
wp wp8:自定义dll库创建
2017-01-11 13:28 506鉴于项目测试: 创建一个wp8项目 在解决方案下 右键 操 ... -
wp wp8:sqlite安装
2017-01-12 10:47 484打开vs 检测一下时候安装了sqlite for window ... -
wp wp8:手势GuestureService/GuestureListener
2017-01-12 10:51 5761.利用Silverlight Tookit中提供的手势服务监 ... -
wp wp8&win8:Stretch的Uniform和UniformToFill
2017-01-12 10:51 601Uniform,控件的高度和宽度会增加直到达到了容器的大小,也 ...
相关推荐
【标题】"首页 中式 触摸切换产品 WP模版" 涉及的主要知识点是WordPress网站设计,尤其是关于创建一个具有中式风格且支持触摸切换的产品展示页面。在WordPress环境中,模版(Template)是网站设计的核心部分,它定义...
和大家分享一个来自 Codrops 的基于CSS3实现的全屏网页过渡特效。...支持HTML5跨平台开发,原有Java跨平台插件支持Android、Symbian、Kjava的跨平台和原生开发,已覆盖Android、iOS、WP、Symbian、Kjava操作系统平台。
在UI层面,Windows Phone提供了丰富的控件库,如Silverlight Toolkit,包含了AutoCompleteBox、ContextMenu、DatePicker等控件,以及专为WP7设计的Page Transitions、PerformanceProgressBar等。Coding for Fun项目...
python
原始信息首先通过与伪随机序列相乘或者异或实现扩频调制,再利用振荡器所产生的载波进行载波调制后通过发射机发射出去,在接收端使用混频器对信号进行降频处理,再利用本地扩频码和载波对信号进行解扩、解调后得到发送端所发送的信息。 扩频系统的扩频运算是通过伪随机码来实现的。理论上,用纯随机序列来扩展信号的频谱是理想的,但是接收端必须复制同一个随机序列,由于随机序列的不可复制性,因此在工程应用中,采用伪随机序列。伪随机序列具有类似于随机噪声的某些统计特性,同时又能重复发生。m序列是最长线性反馈移位寄存器序列(Maximal Length Linear Feedback Shift Register Sequence)的简称。它是由带线性反馈的移位寄存器产生的周期最长的序列。 由于BPSK中,输入0时,输出相位为0,输入1时,输出相位为Π。 将二进制序列,串并转换后将分成两路速率减半的二进制序列得到基带波形I(t),Q(t)。这两路码元在时间上是对齐的,称这两路信号分别是同相支路和正交支路,后续进行上采样,成型滤波器,最后通过IQ调制实现QPSK信号的波形生成。 1.生成双极性的 15 位 m 序列: 2.生成随机的50位待发送二进制信息序列,并进行扩频: 3.对扩频前后的待发送序列进行 BPSK 调制,并观察时域波形: 4.计算并观察扩频前后 BPSK 调制信号的频谱: 循环谱法利用循环平稳信号与随机信号谱相关特性之间的不同,实现对DSSS 信号的检测,而这些算法在检测信号的过程中也可以将载频参数提取出来。设x(t)是一个零均值的非平稳信号,其时变自相关函数定义为: Rr(t,T)= E{x(t)x*(t-T)}若R(t,T)是周期为T的周期函数,统计特性具有二阶周期性,则可用傅里叶级数将其展开为:
汽车轮帽外壳模具设计.zip
基于bpx-api自动交易工具.zip
游戏机按钮注塑模具设计.rar
Ollama 0.5.7 Windows版本
STM32F103ZET6开发板
该资源为h5py-3.13.0-cp313-cp313-macosx_11_0_arm64.whl,欢迎下载使用哦!
汽车半轴机械加工工艺及工装设计.zip
圆珠笔笔盖的模具设计.rar
20190417-护花小萌宠.rar
橡胶履带牵引车辆改进设计(机械双功率流转向装置).rar
该资源为h5py-3.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl,欢迎下载使用哦!
Nacos动态路由教学案例.rar
移动手柄的工艺工装设计.rar
深度学习入门-基于Python的理论与实践
关于新闻事件的命名实体的训练集数据