DataStandard: WPF Validated Binding is not working

DataStandard: WPF Validated Binding is not working

Anonymous
Not applicable
1,110 Views
2 Replies
Message 1 of 3

DataStandard: WPF Validated Binding is not working

Anonymous
Not applicable

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 Smiley Sad

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?

 

0 Likes
Accepted solutions (1)
1,111 Views
2 Replies
Replies (2)
Message 2 of 3

wangdu
Collaborator
Collaborator
Accepted solution

Hi,

 

The namespace that you have added in the beginning of the Inventor.xaml is the one for DataStandard for Vault. 

 

xmlns:WPF="clr-namespace:dataStandard.UI.View;assembly=dataStandard.UI"

The one above is what you should be including instead of the ones from the vault.

 

Hope it helps!

 

Regards,

Wangdu

 

coolOrange

www.coolOrange.com

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi Wangdu,

 

thank you very much for your help!

 

Everything works fine now.

0 Likes