Message 1 of 3
Not applicable
04-07-2016
06:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In one of my xaml Configuration for Inventor i want to use the WPF function ValidatedBinding Prop from the coolorange blog:
https://blog.coolorange.com/2015/08/21/data-standard-dynamic-properties/
But every time i use this function, my dialog doesn't work any more ![]()
I have installed the update 3 for DS 2016.
At the beginning of the xaml, the namespace for wpf
xmlns:behaviours="clr-namespace:Common.Wpf;assembly=Common"
xmlns:WPF="clr-namespace:CreateObject.WPF;assembly=CreateObject"For my textbox
<TextBox Grid.Row="0" Grid.Column="1" Text="{WPF:ValidatedBinding Prop[Title].Value}"/>Error from the DS log file
2016-04-07 15:22:08,503 [1] ERROR dataStandard.InvAddIn.EventHandlers.MyViewCallerBaseMulti - Exception when calling myView
System.Windows.Markup.XamlParseException: Zeilennummer "218" und Zeilenposition "63" von "Der unbekannte Typ "{clr-namespace:CreateObject.WPF;assembly=CreateObject}ValidatedBinding" kann nicht erstellt werden.". ---> System.Xaml.XamlObjectWriterException: Zeilennummer "218" und Zeilenposition "63" von "Der unbekannte Typ "{clr-namespace:CreateObject.WPF;assembly=CreateObject}ValidatedBinding" kann nicht erstellt werden.".
bei System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
bei System.Windows.Markup.WpfXamlLoader.WriteStartObject(XamlReader xamlReader, XamlObjectWriter xamlWriter, XamlContextStack`1 stack)
bei System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, Boolean skipJournaledProperties, Uri baseUri)
bei System.Windows.Markup.XamlReader.Load(XamlReader xamlReader, ParserContext parserContext)
bei System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode)
bei dataStandard.UI.XamlReaderImpl.Parse(String xamlString)
bei dataStandard.UI.XamlObjectsFactory.CreateXamlObject[TXamlType](String fileName, IFile file, IXamlReader xamlReader)
bei dataStandard.UI.MyViewDialog.CreateMyViewWindow(Object viewModel)
bei dataStandard.UI.MyViewDialog.CommonShowDialog(Object viewModel)
bei dataStandard.UI.MyViewDialog.ShowMyViewDialog(IList`1 documentInfo, IVaultSecurityInfo securityInfo, Dictionary`2 uiStringsXml)
bei dataStandard.UI.MyViewDialog.ShowMyView(IList`1 documentInformation, IVaultSecurityInfo securityInfo, Dictionary`2 uiStringsXml)
bei dataStandard.InvAddIn.EventHandlers.MyViewCallerBaseMulti.ShowMyView()
bei dataStandard.InvAddIn.EventHandlers.MyViewCallerBaseMulti.TryExecute()
bei dataStandard.InvAddIn.EventHandlers.MyViewCallerBaseMulti.Execute(IList`1 documentAndInterests, EventTimingEnum timing)Unknown type {clr-namespace:CreateObject.WPF;assembly=CreateObject}ValidatedBinding
But why is this not working?
Solved! Go to Solution.