我的项目遗失了System.Windows.Interactivity.谷歌说我必须安装Expression Blend,但是在我的另一台电脑上我有这个库,我没有安装Expression Blend.那么应该有另一种方式获得System.Windows.Interactivity?我该怎么办?(现在我没有另一台电脑所以我不能只复制这个库:)
我有几个只读的RichTextBox用于记录输出.因为它们是只读的,所以当文本更新时它们似乎不会自动滚动.我可以使用TextChanged事件来强制滚动结束,但是不是简单地在XAML中设置属性或其他东西的方法,以便滚动像正常一样发生吗?
我有Windows 10 Pro 64位,Microsoft Visual Studio 2015和完整的Windows 10 SDK包,但我无法找到gacutil.exe:
请不要告诉我这是重复的.其他答案实际上没有回答我的问题.
任何的想法?提前致谢!
我的 App.Resources MergedDictionary 遇到了一个棘手的问题。每次添加带有来自另一个程序集的源和 XML 命名空间的新字典时,都会产生错误,并且我无法构建我的程序。
该错误出现在 App.xaml 中,并带有下划线的 ResourceDictionary 和消息Value Cannot be Null. Parameter Name: item。这完全没有意义,因为我以前也做过同样的事情。唯一的区别是,这次我引用了另一个程序集(c# 类库)的命名空间。这是 App.xaml 文件:
<Application x:Class="Quiz.Client.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Quiz.Client"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles.xaml" />
<ResourceDictionary Source="Resources/Templates.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Run Code Online (Sandbox Code Playgroud)
下面是 Styles.xaml:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Quiz.Client">
<Style x:Key="StrongFont"
TargetType="ContentControl">
<Setter Property="FontSize"
Value="20" />
<Setter Property="FontWeight"
Value="ExtraBold" />
<Setter Property="Foreground"
Value="DarkRed" />
</Style>
</ResourceDictionary>
Run Code Online (Sandbox Code Playgroud)
这是 Templates.xaml:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Quiz.Client"
xmlns:domain="clr-namespace:Quiz.Core.Domain;assembly=Quiz.Core"
xmlns:common="clr-namespace:Quiz.Client.Common">
<DataTemplate x:Key="ArithmeticQuestionTemplate"
DataType="domain:ArithmeticQuestion">
</DataTemplate>
<common:QuestionTemplateSelector x:Key="QuestionTemplateSelector"
ArithmeticTemplate="{StaticResource ArithmeticQuestionTemplate}" /> …Run Code Online (Sandbox Code Playgroud)