Tag: Windows手机8.1

滑动时禁用网页导航(后退和前进)

在Windows手机上,如果滑动来自边缘,用户可以通过在屏幕上滑动来前后移动。 这个操作系统级别的function阻碍了我的网页的用户体验。 有没有可以禁用的JS或CSS? 有些黑客也会这样做。 来自windowsphone网站的快照: 以下是参考页面的链接: http : //www.windowsphone.com/en-in/how-to/wp8/basics/gestures-swipe-pan-and-stretch 请注意,我仍然需要触摸水平滚动。

以编程方式animation(平滑)ScrollViewer

有没有办法在Windows Phone 8.1 Runtime中平滑地设置ScrollViewer的垂直偏移? 我已经尝试使用ScrollViewer.ChangeView()方法,无论是否将disableAnimation参数设置为true或false,垂直偏移的更改都不会生成animation。 例如: myScrollViewer.ChangeView(null, myScrollViewer.VerticalOffset + p, null, false); 偏移量被改变而没有animation。 我也尝试使用垂直偏移调解器: /// <summary> /// Mediator that forwards Offset property changes on to a ScrollViewer /// instance to enable the animation of Horizontal/VerticalOffset. /// </summary> public sealed class ScrollViewerOffsetMediator : FrameworkElement { /// <summary> /// ScrollViewer instance to forward Offset changes on to. […]

Windows Phone 8.1 – 页面导航

来自Windows Phone 8我从来没有想过会对Windows Phone 8.1代码做很多改变。 基本上我只是想知道如何做页面导航,就像你将如何做到这一点在Windows Phone 8 。 要做到这一点,你应该添加: NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative)); 但该代码不适用于Windows Phone 8.1 。 有人可以帮我这个吗? 如果可能,请提供所有新的Windows Phone 8.1方法的链接或文档。

使用Windows RT客户端证书(Windows 8.1 / Windows Phone 8.1)

我正在尝试Windows 8.1和Windows Phone 8.1的一个新function,即证书存储和可能性使用客户端证书在服务器端的客户端身份validation。 不过,我有这个function的问题。 我有一个基本的testingWCF服务运行IIS快递。 IIS Expressconfiguration为支持SSL和客户端证书。 在IIS的configuration文件(configurationhost.config)中我已经设置了这个: <access sslFlags="SslRequireCert" /> (tried also SslNegotiateCert) <clientCertificateMappingAuthentication enabled="true" /> 我已经在Windows RT应用程序中添加了客户端证书,如下所示: //Install the self signed client cert to the user certificate store string CACertificate = null; try { Uri uri = new Uri("ms-appx:///Assets/AdventureWorksTestClient1.pfx"); var file = await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(uri); IBuffer buffer = await FileIO.ReadBufferAsync(file); using (DataReader dataReader […]

通用应用程序消息框:“名称”MessageBox“在当前上下文中不存在”

我想在我的WP8.1应用程序中使用MessageBox来显示下载错误。 我补充说: using System.Windows; 但是当我input: MessageBox.Show(""); 我收到错误: "The name 'MessageBox' does not exist in the current context" 在对象浏览器中,我发现这样的类应该存在,并在“Project-> Add reference …-> Assemblies-> Framework”中显示所有程序集都被引用。 我想念什么? 或者有另一种方式如何显示像messagebox的东西?

在Silverlight 8.1应用程序中注册后台任务

我正在使用BLE与项目进行通信的应用程序,我需要从中接收后台通知。 我知道GattCharacteristicNotificationTrigger的存在,但我找不到在Silverlight 8.1应用程序中注册后台任务的方法。 任何小费?

暂停事件没有提高使用WinRT

我遇到了使用WinRT在Windows Phone 8.1上暂停事件的问题,它不会触发。 我不知道为什么。 这是我的代码: /// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { InitializeComponent(); Suspending += OnSuspending; #if DEBUG this.displayRequest = new DisplayRequest(); #endif } /// <summary> /// Invoked […]