我是C#的新手。它是一个反编译的C#代码。我收到以下警告信息
类型引用找不到名为' TabItem'的公共类型。第9行位置44.在tabbarcontrol.xaml上。
希望通过以下xaml
找出错误的建议<UserControl x:Class="UBotCoreUI.TabBarControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:r="clr-namespace:Wpf.Controls;assembly=Wpf.TabControl">
<Style TargetType="{x:Type r:TabItem}">
<Setter Property="Control.Padding" Value="5,0"/>
<Setter Property="FrameworkElement.Margin" Value="0"/>
</Style>
<Style TargetType="{x:Type ToggleButton}">
<Setter Property="Control.Background" Value="Red"/>
</Style>
TabItemMinWidth="150" TabItemMinHeight="25"
TabItemMaxHeight="25" Control.VerticalContentAlignment="Center" Control.BorderThickness="0"
TabItemNormalBackground="{DynamicResource tabInactiveColor}"
TabItemSelectedBackground="{DynamicResource tabActiveColor}"
TabItemMouseOverBackground="{DynamicResource tabMouseOverColor}">
<Control.BorderBrush>
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#7F8286" Offset="0"/>
<GradientStop Color="#7F8286" Offset="1"/>
</LinearGradientBrush>
</Control.BorderBrush>