小编SYL*_*SYL的帖子

ListView ManipulationCompleted事件在手机上不起作用

我在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上工作正常,但在手机上不起作用.我不明白为什么.

c# windows-10 windows-10-mobile uwp windows-10-universal

11
推荐指数
1
解决办法
771
查看次数

无法在项目中使用Syncfusion程序集

我尝试使用此代码,将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)

c# xaml syncfusion uwp uwp-xaml

5
推荐指数
1
解决办法
1262
查看次数

Pivot Header风格

C#UWP Windows 10项目

我需要将Pivot标题样式设置为这样的东西 在此输入图像描述

我试图从stackoverflow使用这个例子,但不是成功的.

你能说我如何在标题文本后面设置矩形(如图像)并更改所选未选项的背景颜色?

c# xaml win-universal-app visual-studio-2015 uwp

3
推荐指数
1
解决办法
3560
查看次数