public YoutubeSearchView(IEventAggregator eventAggregator)
        {
            InitializeComponent();

            EventAggregator = eventAggregator;
            DataContext = ViewModel = new YoutubeSearchViewModel(EventAggregator);

            TabName = "Search";
            TabIsSelected = true;
            TabMargin = new Thickness(2);
            TabBorderThickness = new Thickness(2);
            TabBorderBrush = ClassicBorderDecorator.ClassicBorderBrush;
        }
示例#2
0
        public YoutubeSearchView(IEventAggregator eventAggregator)
        {
            InitializeComponent();

            EventAggregator = eventAggregator;
            DataContext     = ViewModel = new YoutubeSearchViewModel(EventAggregator);

            TabName            = "Search";
            TabIsSelected      = true;
            TabMargin          = new Thickness(2);
            TabBorderThickness = new Thickness(2);
            TabBorderBrush     = ClassicBorderDecorator.ClassicBorderBrush;
        }