private void UpdateWindowPosition()
        {
            if (_window == null || !_window.IsLoaded)
            {
                return;
            }
            Point position = _positionProvider.GetPosition(_window.GetWidth(), _window.GetHeight());

            _window.SetPosition(position);
        }
        private void InitializeWindow()
        {
            lock (_syncRoot)
            {
                if (_window != null)
                {
                    return;
                }

                _window = new NotificationsWindow(_positionProvider.ParentWindow);
                _window.SetDisplayOptions(_displayOptions);
                _window.MinHeight = _positionProvider.GetHeight();
                _window.Height    = _positionProvider.GetHeight();
                _window.SetPosition(new Point(Double.NaN, Double.NaN));
                _window.SetKeyboardEventHandler(_keyboardEventHandler);
            }
        }