diff --git a/SukiUI.Demo/Features/Playground/PlaygroundView.axaml b/SukiUI.Demo/Features/Playground/PlaygroundView.axaml
index 271b3b6cd..dd1828c00 100644
--- a/SukiUI.Demo/Features/Playground/PlaygroundView.axaml
+++ b/SukiUI.Demo/Features/Playground/PlaygroundView.axaml
@@ -2,13 +2,117 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit"
+ xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit" x:DataType="playground:PlaygroundViewModel"
xmlns:controls="clr-namespace:SukiUI.Controls;assembly=SukiUI"
+ xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
+ xmlns:playground="clr-namespace:SukiUI.Demo.Features.Playground"
+ xmlns:theme="clr-namespace:SukiUI.Theme;assembly=SukiUI"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SukiUI.Demo.Features.Playground.PlaygroundView">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SukiUI.Demo/Features/Playground/PlaygroundView.axaml.cs b/SukiUI.Demo/Features/Playground/PlaygroundView.axaml.cs
index 4d9f59dcf..bbd95dc57 100644
--- a/SukiUI.Demo/Features/Playground/PlaygroundView.axaml.cs
+++ b/SukiUI.Demo/Features/Playground/PlaygroundView.axaml.cs
@@ -6,6 +6,7 @@
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using Avalonia.Input;
+using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
using Avalonia.Styling;
@@ -102,7 +103,7 @@ private void textEditor_TextArea_TextEntered(object sender, TextInputEventArgs e
private void Editor_OnTextChanged(object? sender, EventArgs e)
{
- string PreviewCode = "" +
+ string PreviewCode = "" +
_textEditor.Text + "";
try
@@ -131,6 +132,35 @@ private void Editor_OnTextChanged(object? sender, EventArgs e)
" \n" +
"";
+
+ private void OpenPane(object? sender, RoutedEventArgs e)
+ {
+ this.Get("Playground").IsPaneOpen = true;
+
+ ((Button)sender).IsHitTestVisible = false;
+ ((Button)sender).Animate(OpacityProperty,1,0);
+
+ this.Get("TabControls").Animate(OpacityProperty,0,1);
+ this.Get("TabControls").IsHitTestVisible = true;
+ }
+
+ private void ClosePane(object? sender, RoutedEventArgs e)
+ {
+ this.Get("Playground").IsPaneOpen = false;
+
+ this.Get