我在Windows 10 UWP应用程序中有此代码:
MyListView.ManipulationMode = ManipulationModes.TranslateX;
MyListView.ManipulationStarted += (s, e) => x1 = (int)e.Position.X;
MyListView.ManipulationCompleted += (s, e) =>
{
x2 = (int)e.Position.X;
if (x1 > x2)
{
DataController.PaneOpen(false);
};
if (x1 < x2)
{
DataController.PaneOpen(true);
};
};
Run Code Online (Sandbox Code Playgroud)
该ManipulationCompleted活动无法在手机上播放ListView.处理程序内的代码永远不会被调用.它在PC上工作正常,但在手机上不起作用.我不明白为什么.
我尝试使用此代码,将Syncfusion图表包含在项目中
xmlns:charting="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.UWP"
Run Code Online (Sandbox Code Playgroud)
但是我收到一个错误:
XML命名空间中的未定义类型"SfChart""clr-namespace:Syncfusion.UI.Xaml.Charts; assembly = Syncfusion.SfChart.UWP"
如果我使用标准使用一切正常,但应用程序包太大,我不需要Syncfusion SDK的所有控件.
xmlns:charting="using:Syncfusion.UI.Xaml.Charts"
Run Code Online (Sandbox Code Playgroud)