Posted 16 years ago
by Willie

Hi,
I created a status bar, that i want to use in different ribbonwindows. I try to create a usercontrol and place the statusbar on this, but i get a message "the statusbar is not defined". What am i doing wrong? When i place this in a ribbon window, it works fine.
I created a status bar, that i want to use in different ribbonwindows. I try to create a usercontrol and place the statusbar on this, but i get a message "the statusbar is not defined". What am i doing wrong? When i place this in a ribbon window, it works fine.
<UserControl x:Class="WpfStatusBar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300" Height="300">
<ribbon:RibbonWindow.StatusBar>
<StatusBar x:Name="MainStatusBar" Padding="0,0,0,0" HorizontalAlignment="Stretch" FocusManager.IsFocusScope="True">
</StatusBar>
</ribbon:RibbonWindow.StatusBar>
</UserControl>