internal void SetTarget(IPropertiesTarget value) { Task.Factory.StartNew(new Action(() => { m_CompletelyLoadedWaitHandle.WaitOne(); this.Dispatcher.Invoke(new SetTargetDelegate(_SetTarget), new object[] { value }); })); }
internal void SetTarget(IPropertiesTarget target) { TextCaption = target.SpanText; Vector2DPosition.ValueInPixel = target.GetLocation(); XLSColumn.UpdateList(MainWindow.instance.LayoutProperties.LayoutType); SelectListItem(XLSColumn.XLSColumsList, target.XlsColumn); FontChooser.SetTarget(target); }
private void _SetTarget(IPropertiesTarget target) { SelectedFontSize = Helper.ToPointSize(target.SpanFontSize, MainWindow.DpiY); SelectedFontFamily = target.SpanFontFamily; m_FontItalic = target.SpanFontStyle == FontStyles.Italic; ButtonFontItalic.BorderBrush = m_FontItalic ? new SolidColorBrush(ActiveBorderColor) : new SolidColorBrush(InActiveBorderColor); m_FontWeight = target.SpanFontWeight == FontWeight.FromOpenTypeWeight(700); ButtonFontWeight.BorderBrush = m_FontWeight ? new SolidColorBrush(ActiveBorderColor) : new SolidColorBrush(InActiveBorderColor); SelectFontsListItem(FontSelector, SelectedFontFamily.Source); }