by Fenton Webb
Using WPF databinding, you can actually bind your WPF colors to the CommandLine color settings.
This can be achieved using the Autodesk.AutoCAD.Windows.Data.DataBindings.ColorSettings ObserveableCollection.
The possible color settings property names are:
-
CommandLineForeground
-
CommandLineBackground
If you want a good example of how to use the Autodesk.AutoCAD.Windows.Data.DataBindings collections then check out this blog http://adndevblog.typepad.com/autocad/2012/03/using-autocad-wpf-data-binding-collection-properties-to-export-to-excel-in-vbnet.html and my Autodesk University class on WPF http://au.autodesk.com/?nd=material&session_material_id=5576

Leave a Reply