scatterview

Connecting ScatterViewItems with a line

白昼怎懂夜的黑 提交于 2019-12-24 16:37:36
问题 I want to draw lines between ScatterViewItems but it doesn't work with what I already found here. There is a Line, but not connected to the center of the ellipses. Does anybody see my mistake? Here is what I have: <Grid> <s:ScatterView> <s:ScatterViewItem Height="250" Width="500" Background="Transparent" Orientation="0" HorizontalAlignment="Right" Margin="0,70,-764,-70" d:LayoutOverrides="HorizontalAlignment, Width"> <s:ScatterView Height="250" Width="500" Background="BlueViolet"> <s

How To Disable Inertia in ScatterView

帅比萌擦擦* 提交于 2019-12-24 08:28:34
问题 Using ScatterView control shipped in Windows Touch WPF. I want to prevent inertia from happening on a scatterview item. But I still want to allow user to move, scale and rotate the item. So I try this... ScatterviewItem svi = new ScatterviewItem(); svi.ManipulationDelta += OnManipulationDelta; ... void OnManipulationDelta(object sender, ManipulationDeltaEventArgs args) { if (args.IsInertial) { args.Complete(); args.Handled = true; } } But the event is never firing. Am I doing something wrong,

How make a Screenshot of UIElement in WPF

你说的曾经没有我的故事 提交于 2019-12-19 10:11:56
问题 I have a problem with creating a screenshot of a scatterview. My screenshot always contains a black frame. Here's my XAML-Code: <s:SurfaceWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="MakeScreenshots

ScatterView runtime exception on x64

此生再无相见时 提交于 2019-12-11 10:05:11
问题 I have the same issue as described here. We have developed several applications using the old Microsoft Surface 2.0 SDK. The applications are built as AnyCPU and those work perfectly fine running both in 32 bit and 64 bit mode. In one of these application I use a ScatterView . <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008"

How make a Screenshot of UIElement in WPF

核能气质少年 提交于 2019-12-01 10:56:03
I have a problem with creating a screenshot of a scatterview. My screenshot always contains a black frame. Here's my XAML-Code: <s:SurfaceWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="MakeScreenshots.SurfaceWindow1" Title="MakeScreenshots" Width="1000" Height="700" > <s:SurfaceWindow.Resources> <ImageBrush