From 09617376286cd43c4cb3b5ee0c5e26973e7b59c5 Mon Sep 17 00:00:00 2001 From: Nicolai Henriksen Date: Sat, 2 Jul 2022 01:05:35 +0200 Subject: [PATCH 1/3] Added card styles and sample Default card style is now MaterialDesignElevatedCard and a new alternative style, MaterialDesignOutlineCard added. --- MainDemo.Wpf/Cards.xaml | 62 ++++++++++ .../DoubleToCornerRadiusConverter.cs | 13 +++ MaterialDesignThemes.Wpf/Themes/Generic.xaml | 1 + .../Themes/MaterialDesignTheme.Card.xaml | 107 +++++++++++------- 4 files changed, 145 insertions(+), 38 deletions(-) create mode 100644 MaterialDesignThemes.Wpf/Converters/DoubleToCornerRadiusConverter.cs diff --git a/MainDemo.Wpf/Cards.xaml b/MainDemo.Wpf/Cards.xaml index e87a47aa83..78a2206432 100644 --- a/MainDemo.Wpf/Cards.xaml +++ b/MainDemo.Wpf/Cards.xaml @@ -83,6 +83,68 @@ + + + + + + + + + + + + Outlined style + + + + + + + +