Apply the MahApps.Metro theme and focus on other controls or rectangles

I am trying to put a status bar at the bottom of the window that uses the same color scheme as the title bar. I know that the part I am missing is style inheritance and / or template customization, but I read for hours, and I cannot figure it out.

Here's what my window looks like:

Window composition when run

Here's what it looks like in a designer:

Window composition in the designer

What I want:

, . , , , , , , . , , ( , - , - ). , , , ? style , , staticresource, .

( cmdline):

<Grid Grid.Row="1">
    <Grid.RowDefinitions>
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="0.5*"/>
        <ColumnDefinition Width="0.5*"/>
    </Grid.ColumnDefinitions>
    <Label Grid.Column="0"/>
    <Grid  Grid.Column="1">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <TextBox Grid.Row="0" Grid.Column="0"/>
        <TextBox Grid.Row="0" Grid.Column="1"/>
    </Grid>
</Grid>
+4
1

, AccentColorBrush .

<Grid Grid.Row="1" Background="{DynamicResource AccentColorBrush}">

, XAML MahApps.Metro GitHub. , , XAML/WPF/MVVM, . , -, .

+10

All Articles