简体   繁体   English

SemanticZoom:是否可以在后面的代码中停止视图转换?

[英]SemanticZoom: is it possible to stop the view transition in code behind?

I have a grouped gridview inside my "zoomed in" part of the semanticView control. 我在语义视图控件的“放大”部分中有一个分组的gridview。 Groups can be empty (I used ). 组可以为空(我用过)。 In my "zoomed out" gridview I have listed all letters from "A" to "Z". 在“缩小”网格视图中,我列出了从“ A”到“ Z”的所有字母。 Letters referring to empty groups appears disabled (dimmed Foreground, there isn't a "IsEnabled" property available here). 指向空组的字母显示为已禁用(前景为灰色,此处没有“ IsEnabled”属性可用)。 What I need to do is abort the "zoom in" transition in response to a click on a letter corresponding to an empty Group. 我需要做的是响应与空组相对应的字母单击而中止“放大”过渡。 Any suggestion? 有什么建议吗? Thanks for your time. 谢谢你的时间。

Orf Quarenghi 奥尔夫·夸伦吉

I'm not 100% sure of this answer as I currently have no way to check/test - but as a suggestion I would check if IsEnabled property disables the semantic zoom transition from firing. 我目前尚无办法检查/测试,因此我不是100%肯定这个答案-但作为建议,我将检查IsEnabled属性是否禁用了触发的语义缩放转换。

You mentioned there isn't an 'IsEnabled' property - what are you checking? 您提到没有“ IsEnabled”属性-您要检查什么? If you use a datatemplate to render your UI in the gridview you could use something like a Border (which does have IsEnabled) to wrap your Child/Item UI and bind the 'IsEnabled' property to the respective field on whatever you have placed in your ItemSource. 如果您使用数据模板在gridview中呈现UI,则可以使用Border(确实具有IsEnabled)之类的东西来包装您的Child / Item UI,并将“ IsEnabled”属性绑定到放置在您的内容中的相应字段ItemSource。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM