【发布时间】:2014-02-24 22:03:13
【问题描述】:
下载并安装扩展 WPF 工具包 - 2.1.0
添加了参考
我可以看到它对象资源管理器
我在未找到 AutoSelectTextBox 时收到以下错误。
<Window x:Class="ComboBoxDynamic.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="MainWindow" Height="350" Width="525">
<Grid>
<StackPanel>
<StackPanel.Resources>
<Style TargetType="{x:Type xctk:AutoSelectTextBox}">
<Setter Property="Margin" Value="5"/>
<Setter Property="AutoSelectBehavior" Value="{Binding SelectedItem, ElementName=_autoSelectBehavior}"/>
<Setter Property="AutoMoveFocus" Value="{Binding IsChecked, ElementName=_autoMoveFocus}"/>
</Style>
</StackPanel.Resources>
</StackPanel>
</Grid>
</Window>
但在后面的代码中我可以访问。
Xceed.Wpf.Toolkit.AutoSelectTextBox astb = new AutoSelectTextBox();
【问题讨论】: