我想每this blog post但在vb.netWPF标记扩展在VB.Net不工作
<Application x:Class="Application"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ShutdownMode="OnExplicitShutdown">
<Application.Resources>
</Application.Resources>
<JumpList.JumpList>
<JumpList ShowRecentCategory="True">
<JumpTask Title="Save as..." Arguments="-saveas"
ApplicationPath="{local:ApplicationFullPath}">
</JumpTask>
</JumpList>
</JumpList.JumpList>
</Application>
创建VB.Net标记扩展,但它是扔
错误1未知的构建错误,'密钥不能为空。 参数名称:钥匙行9位置62.' C:\ Users \用户jessed.ECREATIVE \我的收存箱\项目\ C2D2 \ C2D2 \ Application.xaml 9 62 C2D2
我转换的例子的C#部
Public Class ApplicationFullPath
Inherits Markup.MarkupExtension
Public Overrides Function ProvideValue(ByVal serviceProvider As System.IServiceProvider) As Object
Return System.Reflection.Assembly.GetExecutingAssembly.Location()
End Function
End Class
我思念的东西?任何帮助将不胜感激
创建一个标记扩展来返回一个值是...我不知道,只是不这样做。 – 2011-04-14 23:14:15