【问题标题】:WPF Extended Toolkit Getting StartedWPF 扩展工具包入门
【发布时间】: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();

【问题讨论】:

    标签: .net wpf toolkit


    【解决方案1】:

    我以前看到过这个错误,因为 Windows 阻止了 DLL,因为它们已被下载。请参阅https://wpftoolkit.codeplex.com/releases/view/106016 的说明中的第 3 步

    • 在 Windows 资源管理器中右键单击 -> 属性 -> 取消阻止。对您需要的所有 DLL 执行此操作,或删除它们并取消阻止 zip 并再次提取。

    或者

    • 在 VS 中删除对 DLL 的引用并改用 nuget 包。

    相关问题:Unblocking a DLL on a company machine. How?

    【讨论】:

    • 今天晚了,但我明天去看看。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多