Custom RibbonGroupBox

Jul 29, 2010 at 2:12 PM
Edited Jul 29, 2010 at 2:29 PM
Hello, I would like to ask, if is possible create custom RibbonGroupBox and adds this one to a RibbonTabItem?
I try tried somethink and it doesn't work :(

public partial class MyRibbonGroupBox : RibbonGroupBox

 ...

<Fluent:RibbonGroupBox
	x:Class="FluentTest2.MyRibbonGroupBox"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
	mc:Ignorable="d" 
	d:DesignHeight="300" d:DesignWidth="300">

	<Fluent:Button Content="Test button"/>

</Fluent:RibbonGroupBox>

and main RibbonWindow

<Fluent:RibbonWindow
	x:Class="FluentTest2.MainWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
	xmlns:local="clr-namespace:FluentTest2"
	Title="MainWindow" Height="350" Width="525">
	<Grid>
		<Fluent:Ribbon AutomaticStateManagement="True">
			<Fluent:RibbonTabItem Header="Home">
				<local:MyRibbonGroupBox Header="My group"/>
			</Fluent:RibbonTabItem>
		</Fluent:Ribbon>
	</Grid>
</Fluent:RibbonWindow>

 Can you help me please?

It would be nice also: create UserControl with collection of RibbonGroupBoxes and this adds to a RibbonItem...

 Thanks Lukas

Aug 24, 2010 at 11:52 AM

Nobody can help me?