Hi everybody,
there is a problem using Ribbonwindows for me. When I change the window from Window to Ribbonwindow everything is fine but as soon as I add a ribbon the titlebar changes to black and has no more controls in it.
Is there anything I have to change?
<syncfusion:RibbonWindow x:Class="WILO_Labelling.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:p="clr-namespace:WILO_Labelling.Properties"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WILO_Labelling"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:skinmanager="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
mc:Ignorable="d"
Title=""
Height="350"
Width="525"
skinmanager:SfSkinManager.VisualStyle="Office365"
Closed="_mainWindow_Closed">
<syncfusion:RibbonWindow.DataContext>
<local:ViewModel_MainWindow />
</syncfusion:RibbonWindow.DataContext>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<syncfusion:Ribbon x:Name="_ribbon" VerticalAlignment="Top" IsQATContextMenuEnabled="True" IsQATCustomizationEnabled="True" EnableMoreCommands="True" BackStageCornerImageVisibility="Collapsed">
<syncfusion:RibbonTab Caption="Main">
<syncfusion:RibbonBar Header="Functions">
<syncfusion:RibbonButton Name="btnRibbon_Plants"
SizeForm="Large"
Label="Plants"
LargeIcon="/Assets/Business_64x.png"
Click="RibbonButton_Click"/>
<syncfusion:RibbonButton Name="btnRibbon_Cluster"
SizeForm="Large"
Label="Cluster"
LargeIcon="/Assets/Diagram_64x.png"
Click="RibbonButton_Click"/>
<syncfusion:RibbonButton Name="btnRibbon_Dashboard"
SizeForm="Large"
Label="Dashboard"
LargeIcon="/Assets/Timer_64x.png"
Click="RibbonButton_Click"/>
</syncfusion:RibbonBar>
</syncfusion:RibbonTab>
</syncfusion:Ribbon>
</Grid>
<Grid Grid.Row="1" x:Name="grdLabel">
<Frame Source="/Pages/pagLabelPrinting.xaml" />
</Grid>
</Grid>
</syncfusion:RibbonWindow>
If I just disable the ribbon everything looks good.
<syncfusion:RibbonWindow x:Class="WILO_Labelling.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:p="clr-namespace:WILO_Labelling.Properties"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WILO_Labelling"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:skinmanager="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
mc:Ignorable="d"
Title=""
Height="350"
Width="525"
skinmanager:SfSkinManager.VisualStyle="Office365"
Closed="_mainWindow_Closed">
<syncfusion:RibbonWindow.DataContext>
<local:ViewModel_MainWindow />
</syncfusion:RibbonWindow.DataContext>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<!--<syncfusion:Ribbon x:Name="_ribbon" VerticalAlignment="Top" IsQATContextMenuEnabled="True" IsQATCustomizationEnabled="True" EnableMoreCommands="True" BackStageCornerImageVisibility="Collapsed">
<syncfusion:RibbonTab Caption="Main">
<syncfusion:RibbonBar Header="Functions">
<syncfusion:RibbonButton Name="btnRibbon_Plants"
SizeForm="Large"
Label="Plants"
LargeIcon="/Assets/Business_64x.png"
Click="RibbonButton_Click"/>
<syncfusion:RibbonButton Name="btnRibbon_Cluster"
SizeForm="Large"
Label="Cluster"
LargeIcon="/Assets/Diagram_64x.png"
Click="RibbonButton_Click"/>
<syncfusion:RibbonButton Name="btnRibbon_Dashboard"
SizeForm="Large"
Label="Dashboard"
LargeIcon="/Assets/Timer_64x.png"
Click="RibbonButton_Click"/>
</syncfusion:RibbonBar>
</syncfusion:RibbonTab>
</syncfusion:Ribbon>-->
</Grid>
<Grid Grid.Row="1" x:Name="grdLabel">
<Frame Source="/Pages/pagLabelPrinting.xaml" />
</Grid>
</Grid>
</syncfusion:RibbonWindow>
Can you please help me?
Thank you very much!
Victor
Attachment:
RibbonWindow_1e4e4ff0.zip