diff --git a/StabilityMatrix.Avalonia/Controls/Card.cs b/StabilityMatrix.Avalonia/Controls/Card.cs new file mode 100644 index 00000000..ceb6ecd2 --- /dev/null +++ b/StabilityMatrix.Avalonia/Controls/Card.cs @@ -0,0 +1,23 @@ +using Avalonia.Controls; +using Avalonia.Controls.Primitives; +using Avalonia.Styling; + +namespace StabilityMatrix.Avalonia.Controls; + +public class Card : Expander +{ + public Card() + { + // Expander /template/ ToggleButton#PART_toggle + var customStyle = new Style(x => + x.OfType().Template().OfType().Name("PART_toggle")); + + customStyle.Setters.Add(new Setter + { + Property = IsVisibleProperty, + Value = false + }); + + Styles.Add(customStyle); + } +} diff --git a/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml b/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml index 0a911745..c79df581 100644 --- a/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml +++ b/StabilityMatrix.Avalonia/Views/LaunchPageView.axaml @@ -117,14 +117,9 @@ VerticalScrollBarVisibility="Auto" FontFamily="Cascadia Code,Consolas,Menlo,Monospace" /> - - - - - - + + +