【问题标题】:WPF - Telerik issue? Working fine in Windows 7 environment but not Windows 8.1WPF - Telerik 问题?在 Windows 7 环境中工作正常,但在 Windows 8.1 中无法正常工作
【发布时间】:2016-04-25 15:48:35
【问题描述】:

大家好。我知道信息有点简短,但这里有没有好心人,能够向我指出这条错误消息的确切含义是什么?

代码在 Windows 7 平台上运行良好。但是,当我使用 Windows 8.1 运行它时,它会崩溃。

我几乎可以肯定问题与 telerik 有关。这是因为当我从我的 xaml 中删除相关的 RadGridView 时,它工作正常。 RadGridView绑定 一个 ICollection 作为其 ItemSource

此刻非常绝望。提前感谢您的任何帮助!欣赏它:)

【问题讨论】:

    标签: wpf xaml telerik


    【解决方案1】:

    问题是由 Windows 8.x 中的触摸屏/辅助功能支持引起的

    您可以通过在 Telerik 中禁用 UI 自动化来解决此问题,如下所示:

    using Telerik.Windows.Automation.Peers; 
    
    public partial class App : Application
    {
        public App()
        {
            AutomationManager.AutomationMode = AutomationMode.Disabled;
            this.InitializeComponent();
        }
    }
    

    【讨论】:

    • @DriLLFreAK100 如果这不起作用,请尝试this
    • 会试一试,然后来找你:D
    • 嗨@Gled,看来我不能使用AutomationManager。它带有红色下划线,表示它在当前上下文中不存在。我已经包含了“使用 Telerik.Windows.Automation.Peers”这一行
    猜你喜欢
    • 1970-01-01
    • 2015-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多