Explorar o código

Added double tap to expand

CPKreuz %!s(int64=2) %!d(string=hai) anos
pai
achega
3e2d42b139

+ 4 - 1
src/PixiEditor/Views/Dialogs/Guides/GuidesManager.xaml

@@ -10,7 +10,7 @@
         xmlns:ui="clr-namespace:PixiEditor.Extensions.UI;assembly=PixiEditor.Extensions"
         mc:Ignorable="d"
         ui:Translator.Key="GUIDES_MANAGER_TITLE"
-        Width="800" Height="450"
+        Width="500" Height="450"
         MinWidth="250" MinHeight="450"
         Background="{StaticResource AccentColor}"
         Foreground="White">
@@ -88,6 +88,9 @@
                                 <Setter Property="Foreground" Value="White"/>
                                 <EventSetter Event="MouseEnter" Handler="ListViewItem_MouseEnter"/>
                                 <EventSetter Event="MouseLeave" Handler="ListViewItem_MouseLeave"/>
+                                
+                                <EventSetter Event="MouseDoubleClick" Handler="ListViewItem_DoubleClick"></EventSetter>
+                                
                                 <Setter Property="Template">
                                     <Setter.Value>
                                         <ControlTemplate TargetType="ListViewItem">

+ 5 - 0
src/PixiEditor/Views/Dialogs/Guides/GuidesManager.xaml.cs

@@ -131,4 +131,9 @@ public partial class GuidesManager : Window
             guide.ShowExtended = false;
         }
     }
+
+    private void ListViewItem_DoubleClick(object sender, MouseButtonEventArgs e)
+    {
+        Width = Math.Abs(Width - 250) < 10 ? 630 : 250;
+    }
 }