2019-12-15 06:20:28 +00:00
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
using Wabbajack.Lib;
|
2019-10-30 19:39:12 +00:00
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for FilePicker.xaml
|
|
|
|
|
/// </summary>
|
2019-11-09 20:20:32 +00:00
|
|
|
|
public partial class FilePicker : UserControl
|
2019-10-30 19:39:12 +00:00
|
|
|
|
{
|
2019-12-15 06:20:28 +00:00
|
|
|
|
// This exists, as utilizing the datacontext directly seemed to bug out the exit animations
|
|
|
|
|
// "Bouncing" off this property seems to fix it, though. Could perhaps be done other ways.
|
|
|
|
|
public FilePickerVM PickerVM
|
|
|
|
|
{
|
|
|
|
|
get => (FilePickerVM)GetValue(PickerVMProperty);
|
|
|
|
|
set => SetValue(PickerVMProperty, value);
|
|
|
|
|
}
|
|
|
|
|
public static readonly DependencyProperty PickerVMProperty = DependencyProperty.Register(nameof(PickerVM), typeof(FilePickerVM), typeof(FilePicker),
|
|
|
|
|
new FrameworkPropertyMetadata(default(FilePickerVM)));
|
|
|
|
|
|
2019-10-30 19:39:12 +00:00
|
|
|
|
public FilePicker()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|