WPF – ContentPresenter won't display Content
I am trying to create a container-like component. It uses the MaterialDesign Card as a container, places a title in it and allows space for Content. <ContentControl x:Class="Client.Components.AisCard" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800"> <materialDesign:Card Margin="0,0,20,0" Padding="20,20,20,30"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Text="Opmerkingen" Style="{StaticResource MaterialDesignHeadline5TextBlock}" FontWeight="Medium" Margin="0,0,0,10"… Read More WPF – ContentPresenter won't display Content