public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Controls/ErrorMessageBox.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.DetailsEnabledStates = (VisualStateGroup) base.FindName("DetailsEnabledStates");
         this.ErrorMessageDetailDisabled = (VisualState) base.FindName("ErrorMessageDetailDisabled");
         this.ErrorMessageDetailEnabled = (VisualState) base.FindName("ErrorMessageDetailEnabled");
         this.DetailsStates = (VisualStateGroup) base.FindName("DetailsStates");
         this.DetailsVisible = (VisualState) base.FindName("DetailsVisible");
         this.DetailsNotVisible = (VisualState) base.FindName("DetailsNotVisible");
         this.BackgroundRectangle = (Rectangle) base.FindName("BackgroundRectangle");
         this.InnerDialogGrid = (Grid) base.FindName("InnerDialogGrid");
         this.DialogRectangle = (Rectangle) base.FindName("DialogRectangle");
         this.CloseButton = (Button) base.FindName("CloseButton");
         this.ErrorMessageTitleTextBlock = (TextBlock) base.FindName("ErrorMessageTitleTextBlock");
         this.ErrorMessageTextBlock = (TextBlock) base.FindName("ErrorMessageTextBlock");
         this.ButtonOK = (Button) base.FindName("ButtonOK");
         this.Icon = (TextBlock) base.FindName("Icon");
         this.SimpleErrorDetails = (Grid) base.FindName("SimpleErrorDetails");
         this.ShowDetailsToggle = (TextToggleButton) base.FindName("ShowDetailsToggle");
         this.DetailsTextBox = (TextBox) base.FindName("DetailsTextBox");
     }
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Controls/CaptionSettingsPopupContents.xaml", UriKind.Relative));
         this.userControl = (UserControl) base.FindName("userControl");
         this.LanguageOptionStates = (VisualStateGroup) base.FindName("LanguageOptionStates");
         this.ShowSettings = (VisualState) base.FindName("ShowSettings");
         this.HideSettings = (VisualState) base.FindName("HideSettings");
         this.MouseOverRect = (Rectangle) base.FindName("MouseOverRect");
         this.CaptionsToggle = (TextToggleButton) base.FindName("CaptionsToggle");
         this.SettingsGrid = (Grid) base.FindName("SettingsGrid");
         this.languageListBox = (ListBox) base.FindName("languageListBox");
         this.ClosedCaptioningSettings = (Button) base.FindName("ClosedCaptioningSettings");
     }
 }