using Autodesk.Revit.UI; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace HStation.RevitDev.RevitDataExport.Forms { /// /// WPF_FamilyPanel.xaml 的交互逻辑 /// public partial class Wpf_FamilyPanel : Page, IDockablePaneProvider { public Wpf_FamilyPanel() { InitializeComponent(); } public void SetupDockablePane(DockablePaneProviderData data) { data.FrameworkElement = this; DockablePaneState state = new DockablePaneState(); state.DockPosition = DockPosition.Right; data.InitialState = state; } private void CreateInstance(object sender, RoutedEventArgs e) { TaskDialog.Show("提示","无论如何,调用是成功了的"); } } }