.NET WPF supported?
Comments
-
WPF works fine with Bricscad. I've been using it since v13. Check the API \dotNet directory for info and examples to get you started.0
-
Hello,
An ElemetHost needs to be used.
See example code for a palette in BricsCAD.#region PalettesetWpf
public static _AcWnd.PaletteSet ps_wpf = null;
public static WPF Palette_WPF = null;
public static ElementHost host = new ElementHost();[CommandMethod("PaletteWPF")]
public static void CreatePaletteWPF()
{
if (ps_wpf == null)
{
ps_wpf = new _AcWnd.PaletteSet("WPF");
Palette_WPF = new WPF();
ElementHost host = new ElementHost();
host.AutoSize = true;
host.Dock = DockStyle.Fill;
host.Child = Palette_WPF;
ps_wpf.Add("Add ElementHost", host);
ps_wpf.Visible = true;
host.Refresh();
}
else
{
ps_wpf.Visible = true;
}
}
#endregion PalettesetWpf0