C# 将System.Diagnostics.ProcessPriorityClass枚举绑定到WPF组合框

C# 将System.Diagnostics.ProcessPriorityClass枚举绑定到WPF组合框,c#,wpf,data-binding,C#,Wpf,Data Binding,我的ResourceDictionary声明为: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:AutoStart.View

我的ResourceDictionary声明为:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:AutoStart.View"
                    xmlns:system="clr-namespace:System;assembly=mscorlib"
                    xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=mscorlib">


    <ObjectDataProvider x:Key="processPrioritiesList" MethodName="GetValues" ObjectType="{x:Type system:Enum}">
        <ObjectDataProvider.MethodParameters>
            <x:Type TypeName="diagnostics:ProcessPriorityClass"/>
        </ObjectDataProvider.MethodParameters>
    </ObjectDataProvider>
</ResourceDictionary>

它抛出了一个错误,说:

命名空间中不存在名称“ProcessPriorityClass” “clr命名空间:System.Diagnostics;assembly=mscorlib”

我检查了ProcessPriorityClass是否是System.Diagnostics命名空间的公共成员,但由于某些原因,它不允许我使用要绑定到组合框的枚举值

如何完成此操作?

程序集名称错误:

xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=System"
错误的程序集名称:

xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=System"

它在System.dll中,不是mscorlib.dll。它在System.dll中,不是mscorlib.dll。