public TextRenderer(AtomicBlockBase atomic) : base(atomic) { textControl = new TextBlock(); Children.Add(textControl); }
public TextEntryRenderer(AtomicBlockBase atomic) : base(atomic) { textControl = new TextBox(); textControl.Text = Atomic.FormSubmissionHint ?? String.Empty; textControl.GotFocus += new RoutedEventHandler(textControl_GotFocus); textControl.TextChanged += new TextChangedEventHandler(textControl_TextChanged); hasTextHint = (Atomic.FormSubmissionHint != null); Children.Add(textControl); }
public ImageRenderer(AtomicBlockBase atomic) : base(atomic) { ExpectedSize = Size.Empty; imageControl = new Image(); imageControl.Stretch = Stretch.None; imageControl.ImageOpened += (s, e) => { ExpectedSize = new Size(imageControl.ActualWidth, imageControl.ActualHeight); }; Children.Add(imageControl); }
public RendererBase(AtomicBlockBase atomic) : base() { Atomic = atomic; }