// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// Interaction logic for MainView.xaml
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Views
{
using System.Windows;
using HandBrake.ApplicationServices.Model;
using HandBrakeWPF.ViewModels.Interfaces;
///
/// Interaction logic for MainView.xaml
///
public partial class MainView : Window
{
///
/// Initializes a new instance of the class.
///
public MainView()
{
InitializeComponent();
}
///
/// Gets ViewModel.
///
private IMainViewModel ViewModel
{
get
{
return ((IMainViewModel)this.DataContext);
}
}
///
/// Set the Selected Preset Property.
/// The SelectedItem property of a treeview is readonly.
///
///
/// The sender.
///
///
/// The RoutedPropertyChangedEventArgs.
///
private void TreeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs