A toolbar is on the first row. How can you stretch the toolbar to be the width of the entire row?
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ToolBarTray Background="Transparent">
<!--Toolbar.xaml-->
<ToolBar x:Name="mainToolbar"
Style="{StaticResource mainToolBarStyle}"
ItemsSource="{Binding ToolbarItems}"
ItemTemplateSelector="{StaticResource toolBarItemTemplateSelector}"
DataContext="{Binding}">
</ToolBar>
</ToolBarTray>
I removed the ToolbarTray
and set HorizontalContentAlignment="Stretch"
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With