private void ResetGrid()
        {
            this.rowIndex = 0;

            this.uxResultGrid.Children.Clear();

            this.uxResultGrid.RowDefinitions.Clear();

            this.uxResultGrid.RowDefinitions.Add(this.GetRowDefinition());

            LableItem bible = new LableItem {
                Content = "Bible", FontWeight = FontWeights.Bold
            };

            LableItem verse = new LableItem {
                Content = "Verse", FontWeight = FontWeights.Bold
            };

            LableItem text = new LableItem {
                Content = "Verse Text", FontWeight = FontWeights.Bold
            };

            this.SetUiElementPosition(bible, 0);

            this.SetUiElementPosition(verse, 1);

            this.SetUiElementPosition(text, 2);

            ++this.rowIndex;
        }
        private void LoadSearchResults(BibleVerseModel[] result)
        {
            foreach (BibleVerseModel row in result)
            {
                this.uxResultGrid.RowDefinitions.Add(this.GetRowDefinition());

                if (this.showBibleColumn)
                {
                    int bibleId = Formatters.GetBibleFromKey(row.BibleVerseKey);

                    LableItem bible = new LableItem {
                        Content = this.bibleNames[bibleId]
                    };

                    this.SetUiElementPosition(bible, 0);
                }

                LableItem verse = new LableItem {
                    Content = GlobalStaticData.Intance.GetKeyDescription(row.BibleVerseKey)
                };

                this.SetUiElementPosition(verse, 1);

                HighlightRitchTextBox text = new HighlightRitchTextBox
                {
                    Text        = row.VerseText,
                    Tag         = row,
                    BorderBrush = Brushes.Transparent,
                    IsReadOnly  = true,
                    Margin      = new Thickness(2, 0, 0, 15)
                };

                text.GotFocus += this.Verse_GotFocus;

                text.HighlightText(this.searchSplitResult);

                this.SetUiElementPosition(text, 2);

                ++this.rowIndex;
            }
        }
 public void Add(LableItem item)
 {
     this.uxLablesStack.Children.Add(item);
 }