8,757
社区成员
发帖
与我相关
我的任务
分享
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:View="clr-namespace:Carefree.Component.Consumption.VM;assembly=Carefree.Component.Consumption">
<DataTemplate DataType="{x:Type View:ServiceProductConsumptionRecordEditFormViewModel}">
<ContentControl Content="{Binding v}"/>
</DataTemplate>
</ResourceDictionary>
用户代码未处理 System.Xaml.XamlObjectWriterException
Message=“设置属性“System.Windows.ResourceDictionary.Source”时引发了异常。”,行号为“20”,行位置为“8”。
Source=System.Xaml
LineNumber=20
LinePosition=8
StackTrace:
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
在 MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(Object obj, XamlMember property, Object value)
在 System.Xaml.XamlObjectWriter.SetValue(Object inst, XamlMember property, Object value)
在 System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent)
在 System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx)
在 System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
在 System.Xaml.XamlObjectWriter.WriteEndMember()
在 System.Xaml.XamlWriter.WriteNode(XamlReader reader)
在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter)
在 System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled)
在 System.Windows.SystemResources.ResourceDictionaries.LoadGenericDictionary(Boolean isTraceEnabled)
在 System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache)
在 System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference)
在 System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
在 System.Windows.FrameworkElement.UpdateThemeStyleProperty()
在 System.Windows.FrameworkElement.OnInitialized(EventArgs e)
在 Xceed.Wpf.Toolkit.Primitives.UpDownBase`1.OnInitialized(EventArgs e) 位置 F:\Solution\Carefree\ThirdParty\Xceed.Wpf.Toolkit\Core\Primitives\UpDownBase.cs:行号 370
在 System.Windows.FrameworkElement.TryFireInitialized()
在 System.Windows.FrameworkElement.EndInit()
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin)
InnerException: System.NotSupportedException
Message=无法识别该 URI 前缀。
Source=System
StackTrace:
在 System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
在 System.Net.WebRequest.Create(Uri requestUri)
在 MS.Internal.WpfWebRequestHelper.CreateRequest(Uri uri)
在 System.IO.Packaging.PackWebRequest.GetRequest(Boolean allowPseudoRequest)
在 System.IO.Packaging.PackWebRequest.GetResponse()
在 MS.Internal.WpfWebRequestHelper.GetResponse(WebRequest request)
在 MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
在 System.Windows.ResourceDictionary.set_Source(Uri value)
在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value)
在 System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
InnerException: