FlipView使用C#[W8.1]以编程方式进行控制 [英] FlipView Swipe to control programatically using C#[W8.1]

查看:89
本文介绍了FlipView使用C#[W8.1]以编程方式进行控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

请使用C#(表面平板电脑)以编程方式建议使用FlipView Swipe 控制解决方案

Please suggest solution for  FlipView Swipe  control programatically using C#(surface tablet  )

例如:

Flip_ViewPDF_SelectionChanged

Flip_ViewPDF_SelectionChanged

{//适用于桌面相同的测试表面平板电脑触摸不工作它允许滑动,我需要避免以编程方式滑动使用c#

{// works for Desktop same tested with surface tablet touch not working it allows to swipe ,i need to avoid swipe programatically using c#

if(flag == 1){

if(flag==1){

  Flip_ViewPDF.SelectedIndex = 1;

 Flip_ViewPDF.SelectedIndex = 1;

}

else

{

  Flip_ViewPDF.SelectedIndex = 0;

 Flip_ViewPDF.SelectedIndex = 0;

}

}

有问候,

Sandeep M

Sandeep M

推荐答案

您好sandeepmsandy,

Hi sandeepmsandy,

您可以将"IsHitTestVisible"属性设置为"false"禁用"滑动",但如果你这样做,你会发现左箭头和右箭头不显示。因此,您需要添加两个额外的按钮才能在FlipViewItem之间切换。 

You could set "IsHitTestVisible" property as "false" to disable "Swipe", but if you do it, you will find the left and right arrow will not show. So you would need to add two extra buttons to switch between FlipViewItems. 

此外,请阅读粘贴帖子,尤其是
发布指南:主题行标签

Windows 10 SDK和工具的已知问题 
 

In addition, please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools  

我们需要知道您项目的类型,请自行为标题添加标签。

We need to know your project's type, please add tag to title by yourself.

最好的问候,

Xavier Eoro

Xavier Eoro


这篇关于FlipView使用C#[W8.1]以编程方式进行控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆