diff --git a/Wabbajack/Views/BeginButton.xaml b/Wabbajack/Views/BeginButton.xaml new file mode 100644 index 00000000..2268ca1f --- /dev/null +++ b/Wabbajack/Views/BeginButton.xaml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + diff --git a/Wabbajack/Views/BeginButton.xaml.cs b/Wabbajack/Views/BeginButton.xaml.cs new file mode 100644 index 00000000..7cc65b79 --- /dev/null +++ b/Wabbajack/Views/BeginButton.xaml.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Wabbajack +{ + /// + /// Interaction logic for BeginButton.xaml + /// + public partial class BeginButton : UserControl + { + public ICommand Command + { + get => (ICommand)GetValue(CommandProperty); + set => SetValue(CommandProperty, value); + } + public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(nameof(Command), typeof(ICommand), typeof(BeginButton), + new FrameworkPropertyMetadata(default(ICommand), FrameworkPropertyMetadataOptions.BindsTwoWayByDefault)); + + public BeginButton() + { + InitializeComponent(); + } + } +} diff --git a/Wabbajack/Views/InstallationView.xaml b/Wabbajack/Views/InstallationView.xaml index 42597040..1e2122ed 100644 --- a/Wabbajack/Views/InstallationView.xaml +++ b/Wabbajack/Views/InstallationView.xaml @@ -288,33 +288,6 @@ - - - - - - - - - + Command="{Binding BeginCommand, Mode=OneWay}" /> @@ -424,7 +349,7 @@ + Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, FallbackValue=Hidden}"> diff --git a/Wabbajack/Wabbajack.csproj b/Wabbajack/Wabbajack.csproj index 851d5187..0d8357fe 100644 --- a/Wabbajack/Wabbajack.csproj +++ b/Wabbajack/Wabbajack.csproj @@ -161,6 +161,9 @@ MSBuild:Compile Designer + + BeginButton.xaml + DetailImageView.xaml @@ -204,6 +207,10 @@ TextViewer.xaml + + Designer + MSBuild:Compile + Designer MSBuild:Compile