Browse Source

Fixed OptionPopup

Krzysztof Krysiński 1 year ago
parent
commit
481340d0e2

+ 1 - 1
src/PixiEditor.AvaloniaUI/Views/Dialogs/OptionPopup.axaml

@@ -21,7 +21,7 @@
         </Grid.RowDefinitions>
 
         <ContentPresenter Content="{Binding #popup.PopupContent}"
-                          Grid.Row="1" Margin="15"/>
+                          Grid.Row="0" Margin="15"/>
 
         <ItemsControl ItemsSource="{Binding #popup.Options}" Grid.Row="1" Margin="15">
             <ItemsControl.ItemTemplate>

+ 0 - 8
src/PixiEditor.AvaloniaUI/Views/Dialogs/OptionPopup.axaml.cs

@@ -35,8 +35,6 @@ public partial class OptionPopup : PixiEditorPopup
 
     public RelayCommand CancelCommand { get; set; }
 
-    public RelayCommand CloseCommand { get; set; }
-
     public OptionPopup(string title, object content, ObservableCollection<object> options)
     {
         Title = title;
@@ -59,11 +57,5 @@ public partial class OptionPopup : PixiEditorPopup
         Result = null;
         Close();
     }
-
-    private void Close(object parameter)
-    {
-        Result = parameter;
-        Close();
-    }
 }