From 6e1c3e6d49aa10394ea266ac1e6e6a096c1a7183 Mon Sep 17 00:00:00 2001 From: Anthony Purchase Date: Sat, 27 Jan 2018 15:50:11 +0000 Subject: [PATCH] Fix drag-reordering of search filters Includes minor clean-ups. Closes #10 --- LarkatorGUI/MainWindow.xaml | 22 ++++++------------- LarkatorGUI/MainWindow.xaml.cs | 39 +++++++++++++++++++--------------- 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/LarkatorGUI/MainWindow.xaml b/LarkatorGUI/MainWindow.xaml index d4f5b4d..80f7896 100644 --- a/LarkatorGUI/MainWindow.xaml +++ b/LarkatorGUI/MainWindow.xaml @@ -11,9 +11,10 @@ xmlns:sysCol="clr-namespace:System.Collections;assembly=mscorlib" xmlns:sys="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d" + x:Name="root" SourceInitialized="Window_SourceInitialized" Loaded="Window_Loaded" Title="{Binding WindowTitle}" Background="{DynamicResource WindowBackgroundBrush}" - MaxHeight="1000" MinHeight="240" + MaxHeight="1016" MinHeight="240" Left="{Binding Source={StaticResource Settings}, Path=Default.MainWindowLeft, Mode=TwoWay}" Top="{Binding Source={StaticResource Settings}, Path=Default.MainWindowTop, Mode=TwoWay}" Width="{Binding Source={StaticResource Settings}, Path=Default.MainWindowWidth, Mode=TwoWay}" @@ -28,16 +29,6 @@ - - - - - - - - - - @@ -142,7 +133,7 @@ - + @@ -192,7 +183,8 @@ Background="Transparent" BorderThickness="0" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" SelectionChanged="Searches_SelectionChanged" SelectionMode="Single" - lvl:ListViewLayoutManager.Enabled="True" Padding="-1" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True" dd:DragDrop.DropHandler="{Binding ElementName=root}"> + lvl:ListViewLayoutManager.Enabled="True" Padding="-1" + dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True" dd:DragDrop.DropHandler="{Binding ElementName=root}">