示例#1
0
        public TextRenderer(AtomicBlockBase atomic)
            : base(atomic)
        {
            textControl = new TextBlock();

            Children.Add(textControl);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 public RendererBase(AtomicBlockBase atomic)
     : base()
 {
     Atomic = atomic;
 }