stuck in Ribbonbutton.CommandHander , i have created wpf UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
using Autodesk.AutoCAD.ApplicationServices;
using System;
using System.Windows.Controls.Ribbon;
using System.Windows.Input;
using acadApp = Autodesk.AutoCAD.ApplicationServices.Application;
namespace LabelsCross
{
public class RibbonCommandHandler : ICommand
{
public event EventHandler CanExecuteChanged;
public bool CanExecute(object parameter)
{
return true;
}
public void Execute(object parameter)
{
Document doc = acadApp.DocumentManager.MdiActiveDocument;
if (parameter is RibbonButton)
{// here what i neeed do
Application.ShowModelessWindow(?);
}
}
}
}
Link copied