I have been working with ModernUI, does the library have a a footer control thats ever present for all pages.
I tried this WPF ModernUI same footer for all pages had no success( am new to wpf)
I have been working with ModernUI, does the library have a a footer control thats ever present for all pages.
I tried this WPF ModernUI same footer for all pages had no success( am new to wpf)
You can define your page style with header and footer in app.xaml:
<Style x:Key="HeaderFooterPageStyle" TargetType="Page">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Page}">
<Grid Background="{TemplateBinding Background}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Header -->
<Border Grid.Row="0" Background="Red">
<TextBlock Text="Header"/>
</Border>
<!-- Body -->
<ContentPresenter Grid.Row="1"/>
<!-- Footer -->
<Border Grid.Row="2" Background="Red">
<TextBlock Text="Footer"/>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Then set style to all pages:
Style="{StaticResource HeaderFooterPageStyle}"