public ReplyBoxControl() { // Required to initialize variables InitializeComponent(); this.replyText.Text = string.Empty; this.replyTitle.Text = string.Empty; BindEvents(); InteractionEffectManager.AllowedTypes.Add(typeof(LoopingListItem)); InteractionEffectManager.AllowedTypes.Add(typeof(Button)); this.IsListEnabled = false; this._tagSource = new AwfulTextBoxTagOptionAdapter(this.replyText, this.tagOptions, this.Context.Tags); }
public NewThread() { InitializeComponent(); BindEvents(); InteractionEffectManager.AllowedTypes.Add(typeof(RadDataBoundListBoxItem)); InteractionEffectManager.AllowedTypes.Add(typeof(RadListPicker)); InteractionEffectManager.AllowedTypes.Add(typeof(RadListPickerItem)); this._context = this.LayoutRoot.DataContext as ViewModels.ThreadRequestViewModel; if (this._context == null) throw new Exception("DataContext should not be null."); this._tagSource = new AwfulTextBoxTagOptionAdapter(this.ThreadTextBox, this.tagOptions, this._context.Tags); this._previewContext = new ViewModels.ThreadRequestPreviewViewModel(); this.PreviewViewer.SetViewModel(this._previewContext); this.PreviewViewer.PageHeaderPanel.Visibility = System.Windows.Visibility.Collapsed; this._defaultBar = this.ApplicationBar; }