I have a Dashboard with diffrent tiles. In my last tile, I included a OxyPlot-Chart as a UserControl. But it's the only UserControl that won't stretch. It renders with Height = 0. I just get the result by setting the height to a fix size - Auto also does not affect anything. Also remove the "d" size of the UserControl.
xaml:
<StackPanel Grid.Column="2" Grid.Row="2" Background="{StaticResource TileBackground}" Margin="10">
<DockPanel LastChildFill="False" VerticalAlignment="Top" HorizontalAlignment="Stretch" Background="#FF1E7DBF" Margin="0,0,0,5">
<TextBlock DockPanel.Dock="Top" Text="24H-PERFORMANCE" Margin="30,10,30,10"
TextAlignment="Center" FontFamily="Segoe UI SemiBold" Foreground="White" FontSize="26" />
</DockPanel>
<local:DayPerformance />
</StackPanel>
userControl:
<Grid>
<oxy:PlotView x:Name="performanceMonitor" Model="{Binding performancePlot}" Background="Transparent"/>
</Grid>