mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-20 09:32:54 +01:00
Review
This commit is contained in:
1 parent
2cc9e93adb
commit
d147804166
2 files changed
+7
-9
No files matched your search
@@ -20,7 +20,6 @@ namespace FileConverter.ViewModels
|
||||
using GalaSoft.MvvmLight.Messaging;
|
||||
|
||||
using Microsoft.Win32;
|
||||
using ImageMagick;
|
||||
|
||||
/// <summary>
|
||||
/// This class contains properties that the main View can data bind to.
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
// <copyright file="DragDropExtension.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright>
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace FileConverter.Views
|
||||
{
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
|
||||
/// <summary>
|
||||
/// Provides extended support for drag drop operation
|
||||
/// </summary>
|
||||
|
||||
public static class DragDropExtension
|
||||
{
|
||||
public static readonly DependencyProperty ScrollOnDragDropProperty = DependencyProperty.RegisterAttached("ScrollOnDragDrop", typeof(bool), typeof(DragDropExtension), new PropertyMetadata(false, HandleScrollOnDragDropChanged));
|
||||
@@ -37,14 +36,14 @@ namespace FileConverter.Views
|
||||
|
||||
private static void HandleScrollOnDragDropChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
|
||||
{
|
||||
FrameworkElement container = dependencyObject as FrameworkElement;
|
||||
|
||||
if (dependencyObject == null)
|
||||
{
|
||||
Diagnostics.Debug.LogError("Invalid types!");
|
||||
return;
|
||||
}
|
||||
|
||||
FrameworkElement container = dependencyObject as FrameworkElement;
|
||||
|
||||
Unsubscribe(container);
|
||||
|
||||
if (true.Equals(args.NewValue))
|
||||
|
||||
Reference in new issue
Block a user