我正在重新开发一个 WPF 应用程序,该应用程序使用以下 2 个程序集,因为它使用每个程序集的单独组件:
WPFToolkit 和 PresentationFramework。
在我的 Xaml.cs 中,我曾经extern alias使用过命名空间System.Windows.TemplateVisualState,这一切都很好,我的问题是在我的 Xaml.xaml 中,我将如何区分WPFToolkit.System.Windows.TemplateVisualState和PresentationFramework.System.Windows.TemplateVisualState?
下面是我的 Xaml 的顶部:
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:local="clr-namespace:CAIS2"
 xmlns:CodeLib="clr-namespace:CodeLib;assembly=CodeLib"
 xmlns:CAISCommon="clr-namespace:CAISCommon;assembly=CAISCommon"  >
这是 Resharper 抱怨的地方:
 <VisualStateManager.VisualStateGroups>
     <VisualStateGroup x:Name="LoginStates">
         <Windows:VisualState x:Name="LoggedOut">
             ......