Home Page > Programming Samples and Tutorials > .NET Samples > WPF
WpfCAD Sample Overview
WpfCAD Path Sample
Source code for the sample is located in the Samples\NET\C#\WPF\WpfCAD folder of the KernelCAD installation directory
The application demonstrates usage of KernelCAD in a Windows Presentation Framework application
The application
The application was created following the "Walkthrough: " MSDN topic: Hosting an ActiveX Control in WPF
One important difference is to change Build > Platform Target to x86 in both project properties
Notice the redefinition of the KernleCAD methods and properties in KcAxControl.cs. These are used in WPF\WpfCAD\Window1.xaml.cs to test access to the model and its first top object
|