diff --git a/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs b/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs index 5bd1cad..c07cdb0 100644 --- a/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs +++ b/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs @@ -15,37 +15,29 @@ public class ShowCaseItem : ContentControl private void SetupUi() { var mainLayout = new StackPanel(); - var showCaseTitle = new StackPanel + var showCaseTitle = new AtomUI.Controls.Separator() { - Orientation = Orientation.Horizontal, - Margin = new Thickness(0, 30, 0, 0) + Title = Title, + TitlePosition = AtomUI.Controls.SeparatorTitlePosition.Left, + FontWeight = FontWeight.Bold, }; - showCaseTitle.Children.Add(new Label() - { - VerticalAlignment = VerticalAlignment.Center, - HorizontalAlignment = HorizontalAlignment.Left, - Content = Title, - FontWeight = FontWeight.Bold - }); - showCaseTitle.Children.Add(new Separator() - { - VerticalAlignment = VerticalAlignment.Center, - HorizontalAlignment = HorizontalAlignment.Stretch, - Margin = new Thickness(10, 0), - Width = 200, - BorderBrush = new SolidColorBrush(Colors.Gray), - }); if (Content is Control contentControl) { LogicalChildren.Remove(contentControl); mainLayout.Children.Add(contentControl); } - + + mainLayout.Children.Add(new Border + { + Height = 10, + Background = Brushes.Transparent + }); mainLayout.Children.Add(showCaseTitle); mainLayout.Children.Add(new TextBlock() { Text = Description, - TextWrapping = TextWrapping.Wrap + TextWrapping = TextWrapping.Wrap, + Margin = new Thickness(0, 10, 0, 0) }); var outerBorder = new Border() @@ -53,7 +45,8 @@ public class ShowCaseItem : ContentControl BorderBrush = new SolidColorBrush(new Color(10, 5, 5, 5)), BorderThickness = new Thickness(1), Padding = new Thickness(20), - Child = mainLayout + Child = mainLayout, + CornerRadius = new CornerRadius(8) }; Content = outerBorder; diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml index 6e2a743..34d5883 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml @@ -54,7 +54,7 @@ Title="Size" Description="AtomUI supports three sizes of buttons: small, default and large. If a large or small button is desired, set the size property to either large or small respectively. Omit the size property for a button with the default size."> - + Expand direction: diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml index 5748199..0c9530c 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml @@ -87,7 +87,6 @@ Check all - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo. - + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.