public ConversationPage(Conversation conversationToDisplay, int localId)
        {
            InitializeComponent();
            conversation = conversationToDisplay;
            CheckIfClinicianAccessing();

            this.localId = localId;

            Title = conversation.externalName;
            conversationMessages = new CustomObservableCollection <Message>(conversationToDisplay.messages.Reverse());
            conversationMessages.CollectionChanged += ConversationMessages_CollectionChanged;

            MessagesListView.ItemsSource = conversationMessages;

            //MessagesListView.ScrollToLast();
            VSAppCenter.setConversationController(this);
        }
 /*
  * When the page dissapears, the push notification conversation controller
  * is disabled
  */
 protected override void OnDisappearing()
 {
     VSAppCenter.setConversationController(null);
 }