public override void MountView() { if (_tokenHelper != null) { TokenReplacer = _tokenHelper.TokenReplacerWithPlaceHolders; var tokens = _tokenHelper.GetTokenListForExternalFiles(); var filter = Translation.PDFFiles + @" (*.pdf)|*.pdf|" + Translation.AllFiles + @" (*.*)|*.*"; AttachmentFileSelectFilesUserControlViewModel = _selectFilesUserControlViewModelFactory.Builder() .WithTitleGetter(() => Translation.SelectAttachmentFile) .WithFileListGetter(profile => profile.AttachmentPage.Files) .WithFileFilter(filter) .WithTokens(tokens) .Build(); AttachmentFileSelectFilesUserControlViewModel.PropertyChanged += (s, a) => { if (a.PropertyName == nameof(AttachmentFileSelectFilesUserControlViewModel.FileListDictionary)) { CheckIfVersionIsPdf20(); } }; RaisePropertyChanged(nameof(AttachmentFileSelectFilesUserControlViewModel)); AttachmentFileSelectFilesUserControlViewModel.MountView(); } CheckIfVersionIsPdf20(); base.MountView(); }