问题标签 [pixelsense]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
348 浏览

c# - PreviewContactChanged 和 ContactChanged 有什么区别?

标题相当不言自明,我正在开发 Microsoft Surface 应用程序,除了 PreviewContact(Changed/Down/etc) 集和 Contact(Changed) 之外,我不知道这两个事件处理程序集之间有什么区别/Down/etc) 设置通常不会。“预览”集仅仅是“常规”集的更新,还是与事件的触发方式有关?

0 投票
3 回答
705 浏览

wpf - 包含表面交互元素的 ScatterViewItems

这是交互元素内部交互元素的一个古老问题,但我希望 ScatterViewItem 包含其他表面交互元素,例如 SurfaceButton 或 SurfaceCheckBox。我的所有元素都在那里,它们会对点击等做出反应。问题是,一旦我单击不包含控件的区域,我只会获得正常的 ScatterView 行为。

即使联系人在 SurfaceButton 或 SurfaceCheckbox 上,是否有一个优雅的解决方案允许拖动?

例如

0 投票
2 回答
8074 浏览

wpf - Drag and Drop in MVVM with ScatterView

I'm trying to implement drag and drop functionality in a Surface Application that is built using the MVVM pattern. I'm struggling to come up with a means to implement this while adhering to the MVVM pattern. Though I'm trying to do this within a Surface Application I think the solution is general enough to apply to WPF as well.

I'm trying to produce the following functionality:

  • User contacts a FrameworkElement within a ScatterViewItem to begin a drag operation (a specific part of the ScatterViewItem initiates the drag/drop functionality)
  • When the drag operation begins a copy of that ScatterViewItem is created and imposed upon the original ScatterViewItem, the copy is what the user will drag and ultimately drop
  • The user can drop the item onto another ScatterViewItem (placed in a separate ScatterView)

The overall interaction is quite similar to the ShoppingCart application provided in the Surface SDK, except that the source objects are contained within a ScatterView rather than a ListBox.

I'm unsure how to proceeded in order to enable the proper communication between my ViewModels in order to provide this functionality. The main issue I've encountered is replicating the ScatterViewItem when the user contacts the FrameworkElement.

0 投票
1 回答
571 浏览

shadow - 使 ScatterViewItem 的阴影具有不同的形状

我正在使用 Expression Blend 和 Visual Studio 为 Surface 开发一个程序。我有一个带有椭圆和网格标签的自定义用户控件。这将需要放置在 scatterViewItem 中。

我的问题是 scatterviewitem 将在椭圆形内容下投射一个矩形阴影。我可以完全禁用阴影,但是有没有办法让阴影从其父级继承形状?或者我可以以任何方式设置 scatterviewItem 本身的形状吗?

0 投票
1 回答
782 浏览

wpf - 自定义散点视图的形状

我目前在 Blend 和 VS2008 中使用 Surface SDK 1.0,我遇到了一个问题:我在整个屏幕上使用了 scatterview。我在屏幕中间也有一个网格。中间的面板很烦人,因为我的 scatterviewitems 很容易在网格后面丢失,而且由于网格被锁定在适当的位置,我无法检索它们。

最好在网格周围添加“墙”,以便我的 scatterviewitems 会从它反弹,就像它在 scatterview 的边缘一样。

我怎么解决这个问题?

0 投票
1 回答
1520 浏览

wpf - s:ScatterView ItemTemplate - 如何设置高度或宽度?

我在为 Surface 开发软件时遇到了一个小问题:我有一个绑定的 ScatterView,它的项目有一个 DataTemplate。我的问题是:如何设置从 ItemTemplate 创建的 ScatterViewItem 的宽度和高度?

0 投票
2 回答
257 浏览

wpf - MS Surface 应用程序 (WPF) 使用哪种设计模式?

背景:我目前正在为我的大学创建一些简单的应用程序,展示Microsoft Surface可能的教育潜力。它们的功能介于基本演示应用程序和成熟的生产应用程序之间。

我们对使用 MVVM 或其他类型的 MVC 的犹豫是,除了我们拥有的少数数据支持的应用程序之外,我们的大多数应用程序都与它们的演示文稿(即 Surface 触摸屏)紧密相关。在这种情况下,强调业务逻辑和视图如此极端的分离似乎是不合逻辑的。

有任何想法吗?

0 投票
2 回答
319 浏览

windows-mobile - MS Surface 手机交互

查看一些 MS Surface 演示,他们使用运行窗口的 HTC 手机与 Surface 交互(访问手机内存并从中下载图像并使用散点视图显示)。

我的问题是他们是如何与电话沟通的?

它会一直使用蓝牙或无线连接吗?

它是检测哪种类型的电话并使用其 API 进行通信的情况吗?

有没有人做过很多这件事并得到任何指示。

目前正在搜索 HTC API 或者可能是 Windows Mobile 无线通信的案例。

让我想知道与其他类型的不运行 Windows 的手机集成会有多困难?

是时候忙于阅读了。

Ĵ

0 投票
1 回答
2452 浏览

c# - Surface ScatterViewItem 背景不透明

我正在使用 Microsoft Surface 并将圆形图像对象附加到 ScatterViewItem。我在隐藏方形 ScatterViewItem 的背景时遇到问题。如果我进去将背景设置为透明,它不是透明的,它更像是灰色半透明。所以我最终得到的是一个中间的圆形图像,它位于一个带有灰色半透明边缘的正方形上。我该如何隐藏这个?我正在通过 C# 以编程方式执行此操作。

0 投票
1 回答
867 浏览

wpf - WPF 沿路径轻拂(表面)

我正在为 Microsoft Surface 开发一个应用程序,并且我试图充分利用现有的库,如果能够轻弹 UI 元素,我所追求的功能。

ScatterView 控件使这很容易,但我想将 UI 元素限制为只能沿着设置的路径轻弹。这就是我遇到麻烦的地方。

所以我的问题是:

1)你能限制一个 ScatterViewItem 只能沿着一个路径轻弹吗?

2) 如果不是,您将如何实现轻弹手势以沿设定路径轻弹 UI 元素?

谢谢!

标记