"缩微胶片" / Metro UI具有单个散点图项目? [英] "Microfiche" / Metro UI with a single scatter view item?

查看:81
本文介绍了"缩微胶片" / Metro UI具有单个散点图项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立一个"Microfiche"。像 体验。非常类似于"无限"的在Win Phone 7 Metro UI中平移画布。

I am trying to build a "Microfiche" like experience. Very similar to the "infinite" panning canvas in the Win Phone 7 Metro UI.

我有一个ItemsControls,它有一组项目(这些是行)。 items控件中的每个项本身都是ItemsControl(这些是我的列)

I have a ItemsControls that has a collection of items (these are the rows). Each item in the items control is itself an ItemsControl (these are my columns)

这为我提供了项目的动态行和列布局。我将这个嵌套的ItemsControl结构包装在一个分散视图项中,CanRotate = false CanMove = True,CanScale = true。

This gives me a dynamic row and column layout of my items. I wrap this nested ItemsControl structure inside a single scatter view item with CanRotate=false CanMove=True and CanScale=true.

 

我免费平移和缩放(这给了我"Microfiche"类型的感觉)。

This gets me panning and zooming for free (which gives me the "Microfiche" type feel).

 

我的问题是我注意到了一些分散视图项在放大非常大时的奇怪行为。在一定的点上,它开始在一个负面的Y方向上转换,而不是继续均匀地缩放(这使得我的ScatterViewItem
跳到屏幕顶部)。

My problem is I am noticing some strange behavior with the scatter view item when it is scaled up very large. At a certain point it starts to translate in a neagtive Y direction instead of continuing to scale evenly (this makes my ScatterViewItem jump up to the top of the screen).

 

我认为还有一些奇怪的边界问题与ScatterViewItem中心点计算有关。我试图向左或向右平移,当ScatterViewItem放大到非常大时,它倾向于"反弹"。在我可以
pan出售我的所有内容之前,在桌子旁边。这会导致无法使用的体验。

Also there is some strange bounding issues I think related to the ScatterViewItem center point calculations. I am trying to pan left or right and when the ScatterViewItem is scaled up very large it tends to "bounce" off the side of the table before I can pan to sell all my content. This causes a unusable experience.

 

有没有更好的方法来实现我想要做的事情,而无需实施所有平移和缩放手势支持自己? ScatterViewItem中是否存在导致翻译和"弹跳"的错误。问题?

Is there a better way to achieve what I am trying to do without having to implement all the panning and zooming gesture support myself? Is there some bug in the ScatterViewItem I am hitting that is causing the translation and "bouncing" issues?

 

我们将不胜感激任何想法/帮助。

Any ideas / help would be appreciated.

 

谢谢 

 

 

推荐答案

一些随意的想法:

A couple random thoughts:


  • 您是否可以为ScatterViewItem命中MaxWidth / MaxHeight? 
  • 我想知道你是否最好将你的内容放在网格或画布上并将其放在SurfaceScrollViewer中。


这篇关于"缩微胶片" / Metro UI具有单个散点图项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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