/// <summary>
        /// Initializes a new instance of the <see cref="InspectorWindow"/> class.
        /// </summary>
        public InspectorWindow()
        {
            InitializeComponent();
            _viewModel = new InspectorViewModel();
            DataContext = _viewModel;

            _ensureWindowEnabledTimer = new DispatcherTimer();
            _ensureWindowEnabledTimer.Interval = TimeSpan.FromMilliseconds(500);
            _ensureWindowEnabledTimer.Tick += OnEnsureWindowEnabled;
            _ensureWindowEnabledTimer.IsEnabled = true;

            Loaded += OnLoaded;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InspectorWindow"/> class.
        /// </summary>
        public InspectorWindow1()
        {
            InitializeComponent();
            _viewModel  = new InspectorViewModel();
            DataContext = _viewModel;

            _ensureWindowEnabledTimer           = new DispatcherTimer();
            _ensureWindowEnabledTimer.Interval  = TimeSpan.FromMilliseconds(500);
            _ensureWindowEnabledTimer.Tick     += OnEnsureWindowEnabled;
            _ensureWindowEnabledTimer.IsEnabled = true;

            Loaded += OnLoaded;
        }