Projektdateien hinzufügen.
This commit is contained in:
51
VideoBrowser/Models/SettingsButton.cs
Normal file
51
VideoBrowser/Models/SettingsButton.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
namespace VideoBrowser.Models
|
||||
{
|
||||
using System.Windows;
|
||||
using VideoBrowser.Controls.CefSharpBrowser;
|
||||
using VideoBrowser.Controls.CefSharpBrowser.ViewModels;
|
||||
using VideoBrowser.Controls.CefSharpBrowser.Views;
|
||||
using VideoBrowser.Resources;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the <see cref="SettingsButton" />.
|
||||
/// </summary>
|
||||
internal class SettingsButton : CreateTabAddInButton
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SettingsButton"/> class.
|
||||
/// </summary>
|
||||
/// <param name="viewModel">The viewModel<see cref="SettingsViewModel"/>.</param>
|
||||
internal SettingsButton(SettingsViewModel viewModel) : base("Settings", Icons.Settings)
|
||||
{
|
||||
this.SettingsViewModel = viewModel;
|
||||
this.ToolTip = "Adjust the Settings";
|
||||
}
|
||||
|
||||
#endregion Constructors
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the SettingsViewModel.
|
||||
/// </summary>
|
||||
public SettingsViewModel SettingsViewModel { get; }
|
||||
|
||||
#endregion Properties
|
||||
|
||||
#region Methods
|
||||
|
||||
/// <summary>
|
||||
/// The CreateView.
|
||||
/// </summary>
|
||||
/// <returns>The <see cref="UIElement"/>.</returns>
|
||||
protected override UIElement CreateView()
|
||||
{
|
||||
var view = new SettingsView { DataContext = this.SettingsViewModel };
|
||||
return view;
|
||||
}
|
||||
|
||||
#endregion Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user