public LabelPlotStyleControl() { InitializeComponent(); DefaultSeverityColumnColors.NormalColor = _guiLabelColumn.Background; _fontControlsGlue = new FontXControlsGlue() { CbFontFamily = _cbFontFamily, CbFontStyle = _cbFontStyle }; _backgroundGlue = new BackgroundControlsGlue() { CbStyle = _cbBackgroundStyle, CbBrush = _cbBackgroundBrush }; _backgroundGlue.BackgroundStyleChanged += EhBackgroundStyleInstanceChanged; _backgroundGlue.BackgroundBrushChanged += this.EhBackgroundBrushChanged; }
public TextGraphicControl() { InitializeComponent(); _backgroundGlue = new BackgroundControlsGlue(); _backgroundGlue.CbStyle = _cbBackgroundStyle; _backgroundGlue.CbBrush = _cbBackgroundBrush; _backgroundGlue.BackgroundStyleChanged += new EventHandler(EhBackgroundStyleChanged); _backgroundGlue.BackgroundBrushChanged += new EventHandler(EhBackgroundStyleChanged); _previewBitmap = new GdiToWpfBitmap(16, 16); m_pnPreview.Source = _previewBitmap.WpfBitmap; }