xaml Scrollviewer– 禁用整个窗口的滚动橡皮筋效果回d效果反d

xaml Scrollviewer– 禁用整个窗口的滚动橡皮筋效果回d效果反d,第1张

概述xaml Scrollviewer – 禁用整个窗口的滚动/橡皮筋效果/回d效果/反d

当我在列表框中使用滚动查看器时,当我通过触摸滚动到达列表框的末端时,整个窗口会d起。 当我使用我的鼠标滚轮时,不会出现此行为。 我怎样才能禁用这种过度滚动/橡皮筋效应/回d效应/d跳效果。

我正在使用windows 8计算机上的.NET Framework 4.5。

您可以在此vIDeo中看到反d效果: http : //www.vIDup.de/v/gQ2pI/

这是我的示例代码:

python调用外部程序而不打开控制台(DOS提示符)

haskell:输出非ASCII字符

如何创build一个DLL库的Python包装

C#启动应用程序进程而不偷窃重点

windows 7:无论其他窗口有什么焦点,如何把窗口带到前面?

<Window x:Class="style_test_for_scrollvIEwer.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="MainWindow" Height="350" WIDth="525"> <GrID> <ListBox WIDth="200"> <WrapPanel WIDth="200" ScrollVIEwer.PanningMode="VerticalOnly" ScrollVIEwer.CanContentScroll="True" ScrollVIEwer.VerticalScrollbarVisibility="Visible"> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> <button Height="200" WIDth="200"></button> </WrapPanel> </ListBox> </GrID> </Window>

练习14学习python的难办法

按TAB时,防止GTK Entry隐藏文本input

在类文件中不兼容魔术值21877456

如何让Python使用Assembly

http状态:在.net浏览器控件中的12002

您可以通过重写OnManipulationBoundaryFeedback方法来删除此行为:

public class FixedListBox : ListBox { protected overrIDe voID OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs e) { e.Handled = true; } }

另一种解决方案是将以下处理程序添加到ManipulationBoundaryFeedback事件(直接在ListBox上或通过样式):

<ListBox ManipulationBoundaryFeedback="OnManipulationBoundaryFeedback"/>

要么:

<Style targettype="{x:Type ListBox}"> <EventSetter Event="ManipulationBoundaryFeedback" Handler="OnManipulationBoundaryFeedback"/> </Style>

有了下面的代码:

protected voID OnManipulationBoundaryFeedback(object sender,ManipulationBoundaryFeedbackEventArgs e) { e.Handled = true; }

这些方法也适用于ScrollVIEwer。

总结

以上是内存溢出为你收集整理的xaml Scrollviewer – 禁用整个窗口的滚动/橡皮筋效果/回d效果/反d全部内容,希望文章能够帮你解决xaml Scrollviewer – 禁用整个窗口的滚动/橡皮筋效果/回d效果/反d所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/langs/1267653.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存