DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


WpfCAD Sample

Source code for the sample is located in the Samples\NET\C#\WPF\WpfCAD folder of the DG Kernel installation directory

The application demonstrates usage of DG Kernel 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 DG Kernel 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

See also: Sample List.