I'm having an issue where the styles don't seem to apply in the WPF designer, so it only shows the default ones but works correctly at runtime.
I'm using MaterialDesignInXaml which worked fine before.
I've tried reinstalling Rider several times, followed the quick start guide, and copied everything it had in new projects. I've also tried MahApps which gave the same issue. and it does seem like it's a Rider issue only as it works fine in visual studio 22.
Here's an image that shows the difference between the WPF preview (Above) and the app at runtime
As for the code:
<Button Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left"
Content="Button 1" FontSize="18"
Style="{DynamicResource MaterialDesignFlatButton}" />
<Button Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" Content="Button 2"
FontSize="15"
Style="{DynamicResource MaterialDesignFlatButton}" />
<Button Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Content="Button 3"
FontSize="15"
Style="{DynamicResource MaterialDesignFlatButton}" />
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Dark" PrimaryColor="Teal" SecondaryColor="Lime" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Downgrading Rider to 2021.3.4 fixed this.