private void MakePopUp(InternalDictionary internalDictionaryObject)
 {
     popup = new Popup();
     popup.Height = 200;
     popup.Width = 200;
     control = new PopUpUserControl(internalDictionaryObject);
     popup.Child = control;
     popup.IsOpen = true;
     popup.Visibility = Visibility.Collapsed;
     popup.IsLightDismissEnabled = true;            
 }
        public OcrText()
        {
            this.InitializeComponent();

            //->Biswadip Maity Debugging Start
            internalDictionaryObject = new InternalDictionary();     //TODO: Optimize for time
            
            //internalDictionaryObject.searchForWord("House");
            //->Biswadip Maity Debugging End

            //->Ronak code starts
            articleText.AddHandler(TappedEvent, new TappedEventHandler(TextTapped), true);
            MakePopUp(internalDictionaryObject);
            //->Ronak code ends

            HardwareButtons.BackPressed += HardwareButtons_BackPressed;
        }
 public PopUpUserControl(InternalDictionary internalDictionaryObject)
 {
     this.internalDictionaryObject = internalDictionaryObject;
     this.InitializeComponent();
 }