RibbonControlLibrary中有问题
|
我在Microsoft的ѭ0中面临一个问题。我创建了一个简单的WPF应用程序,并使用
RibbonControlLibrary
在顶部创建了一个功能区栏。问题如下图所示。
问题是\“东西\”下的菜单仅扩展到左侧菜单中的所有项目,即Item1,Item2 ...如果我增加左侧菜单中的某个项目,我会得到
但菜单中某些菜单下缺少窗台项目。
下面是我正在使用的XAML
<Ribbon:Ribbon ItemsSource=\"{Binding Path=CSIMRibbonTabs}\">
<Ribbon:Ribbon.ApplicationMenu>
<Ribbon:RibbonApplicationMenu CanUserResizeVertically=\"True\" ItemsSource=\"{Binding Path=MainItem}\">
<Ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height=\"*\"/>
</Grid.RowDefinitions>
<Border >
<StackPanel Orientation=\"Vertical\">
<Label Content=\"Something\" />
</StackPanel>
</Border>
<ItemsControl Grid.Row=\"1\" ItemsSource=\"{Binding Path=OtherItems}\"/>
</Grid>
</Ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
</Ribbon:RibbonApplicationMenu>
</Ribbon:Ribbon.ApplicationMenu>
</Ribbon:Ribbon>
码
public List<string> MainItem
{
get
{
return new List<string>() { \"Item1\", \"Item2\", \"Item3\"};
}
}
public List<string> OtherItems
{
get
{
return new List<string>() { \"val1\", \"val2\", \"val3\", \"val4\", \"val5\", \"val6\", \"val7\", \"val8\" };
}
}
如果列表中有项目,我该怎么做才能扩展\“ Something \”下的菜单?
没有找到相关结果
已邀请:
1 个回复
篮肥炼皖