Where to deploy Xceed.Wpf.Toolkit.dll

Where to deploy Xceed.Wpf.Toolkit.dll

ifrankel
Participant Participant
1,475 Views
2 Replies
Message 1 of 3

Where to deploy Xceed.Wpf.Toolkit.dll

ifrankel
Participant
Participant

I'm customizing the Data Standard dialog box located in C:\ProgramData\Autodesk\Vault 2018\Extensions\DataStandard\CAD\Configuration\AutoCAD.xaml. I need to implement a textbox edit mask so I installed the Extended.Wpf.Toolkit into the project I have open while modifying and testing the form. I added the MaskedTextBox to the form and it displays fine in both VS 2017 and in Blend 2017. However, once I ran AutoCAD Civil3D and brought up the Data Standard dialog box, I got the following error message:

    Cannot create unknown type '{http://schemas.xceed.com/wpf/xaml/toolkit/}MaskedTextBox.

 

I've tried deploying the dll to the following folders without any success:

  -- C:\ProgramData\Autodesk\Vault 2018\Extensions\DataStandard

  -- C:\ProgramData\Autodesk\ApplicationPlugins\Autodesk DataStandard 2018.bundle\Contents

  -- C:\Program Files\Autodesk\Vault Professional 2018\Explorer

  -- C:\Program Files\Autodesk\AutoCAD 2018

 

Here's my declaration at the head of the xaml file:

xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"

 

Am I wrong to assume this can be done in the AutoCAD.xaml environment?

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

wangdu
Collaborator
Collaborator
Accepted solution

Hi,

 

If you are just placing the Xceed.Wpf.Toolkit.dll in one of those folders, it would not load. You need to call either Add-Type Cmdlet or using reflection Assembly LoadFrom() depending on the powershell version to load the assembly.

 

Hope it helps!

 

Wangdu

 

coolOrange

www.coolOrange.com

Message 3 of 3

ifrankel
Participant
Participant

Adding the dll name and location into Default.ps1 via the following statement worked perfectly:

[System.Reflection.Assembly]::LoadFrom("C:\Users\ifrankel\Documents\VSTS\Product\Source\Vault.DataStandard.Custom\bin\Debug\Xceed.Wpf.Toolkit.dll").

Thanks!

0 Likes