public MainWindow() : base(VATRPWindowType.MAIN_VIEW)
        {
            _mainViewModel = new MainControllerViewModel();
            _mainViewModel.ActivateWizardPage = true;
            _mainViewModel.OfferServiceSelection = false;

            _linphoneService = ServiceManager.Instance.LinphoneService;
            _linphoneService.RegistrationStateChangedEvent += OnRegistrationChanged;
            _linphoneService.CallStateChangedEvent += OnCallStateChanged;
            _linphoneService.GlobalStateChangedEvent += OnGlobalStateChanged;
            _linphoneService.NetworkReachableEvent += OnLinphoneConnectivityChanged;

            ServiceManager.Instance.NewAccountRegisteredEvent += OnNewAccountRegistered;
            ServiceManager.Instance.LinphoneCoreStartedEvent += OnLinphoneCoreStarted;
            ServiceManager.Instance.LinphoneCoreStoppedEvent += OnLinphoneCoreStopped;
            InitializeComponent();
            DataContext = _mainViewModel;
            ctrlHistory.SetDataContext(_mainViewModel.HistoryModel);
            ctrlContacts.SetDataContext(_mainViewModel.ContactsModel);
            _dialpadBox = new Dialpad(_mainViewModel.DialpadModel);
            _messagingWindow = new MediaTextWindow(_mainViewModel.SipSimpleMessagingModel);
            ctrlDialpad.SetViewModel(_mainViewModel.DialpadModel);
            ctrlLocalContact.SetDataContext(_mainViewModel.ContactModel);
            ctrlCall.ParentViewModel =_mainViewModel;
            ctrlMoreMenu.SetDataContext(_mainViewModel.MoreMenuModel);
            //_settingsView.SetSettingsModel(_mainViewModel.SettingsModel);
            
            EnterFullScreenCheckBox.IsEnabled = false;

//            _settingsWindow = new SettingsWindow(ctrlCall, OnAccountChangeRequested);
//            ctrlSettings.SetCallControl(ctrlCall);
//            ctrlCall.SettingsControl = ctrlSettings;
            deferredHideTimer.Tick += DeferedHideOnError;
            deferredShowPreviewTimer.Tick += DeferredShowPreview;
            CombinedUICallViewSize.Width = 700;
            CombinedUICallViewSize.Height = 700;
        }
 public CallViewCtrl(MainControllerViewModel parentVM)
     : this()
 {
     _parentViewModel = parentVM;
 }