Can not place <Grid> in <Fluent:RibbonWindow> with <Fluent:Ribbon>
See original GitHub issueI’m trying to follow the basic setup tutorial, but I’m receiving an error “The property “Content” can only be set once.”
<Fluent:RibbonWindow x:Name="winMain" x:Class="Icon_Labeler.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Fluent="urn:fluent-ribbon"
Title="Ben's Icon Labeler" Height="600" Width="800" Drop="WinMain_Drop" DragEnter="WinMain_DragEnter" AllowDrop="True">
<Fluent:Ribbon>
<!--Backstage-->
<Fluent:Ribbon.Menu>
<Fluent:Backstage>
</Fluent:Backstage>
</Fluent:Ribbon.Menu>
<!--Tabs-->
<Fluent:RibbonTabItem Header="Home">
<Fluent:RibbonGroupBox Header="Group">
<Fluent:Button Header="Green"
Icon="Images\Green.png"
LargeIcon="Images\GreenLarge.png" />
</Fluent:RibbonGroupBox>
</Fluent:RibbonTabItem>
</Fluent:Ribbon>
<Grid></Grid>
</Fluent:RibbonWindow>
Environment
- Fluent.Ribbon v5.0.1.10
- Windows 10
- .NET Framework 4.6.2
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Why is ribbon items not showing on the window?
I'm developing an app, using .NET Core 3.1. adding reference to Fluent Ribbon but when I write some XAML nothing shows. <Window x:Class="WpfApp2 ......
Read more >Can not get started with Fluent Ribbon (Black window ...
Hello. I am trying to use Fluent Ribbon, but it does not work in my way. Nothing appeared in the preview window in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will change the tutorial to show the complete assembled code for a first window to prevent such starting issues in the future.
Because you are trying exactly that, setting the content twice. Your first content is
<Fluent:Ribbon>
and the second is<Grid>
you have to do something like: