命名空间调整
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user