命名空间调整

This commit is contained in:
GG Z
2025-09-04 22:39:00 +08:00
parent 85435fb676
commit 36234cb529
58 changed files with 933 additions and 2241 deletions

View File

@@ -202,12 +202,7 @@ public class ModifyTabApp
/// <param name="tab"></param>
private void AlignPanel(RibbonTab tab)
{
//新建面板
Autodesk.Windows.RibbonPanel alignElemsPanel = new() { FloatingOrientation = System.Windows.Controls.Orientation.Vertical };
//面板资源
RibbonPanelSource alignSource = new() { Id = "ID_Layout_Panel", Title = "布局" };
alignElemsPanel.Source = alignSource;
//面板按钮
var alignLeftBtn = new Autodesk.Windows.RibbonButton
{
@@ -367,9 +362,14 @@ public class ModifyTabApp
ribbonRowPanel1.Items.Add(new RibbonRowBreak());
ribbonRowPanel1.Items.Add(alignBottomBtn);
//面板资源
RibbonPanelSource alignSource = new() { Id = "ID_Layout_Panel", Title = "布局" };
//布局添加到面板数据源
alignSource.Items.Add(ribbonRowPanel);
alignSource.Items.Add(ribbonRowPanel1);
//新建面板
Autodesk.Windows.RibbonPanel alignElemsPanel = new() { FloatingOrientation = System.Windows.Controls.Orientation.Vertical };
alignElemsPanel.Source = alignSource;
tab.Panels.Add(alignElemsPanel);
}
/// <summary>