Beispiel #1
0
 /// <summary>
 ///    <para>
 ///       Initializes the designer with the component for design.
 ///    </para>
 /// </summary>
 /// <param name='component'>
 ///    The control element for design.
 /// </param>
 /// <remarks>
 ///    <para>
 ///       This is called by the designer host to establish the component for
 ///       design.
 ///    </para>
 /// </remarks>
 /// <seealso cref='System.ComponentModel.Design.IDesigner'/>
 public override void Initialize(IComponent component)
 {
     Debug.Assert(component is System.Web.UI.MobileControls.TextView,
                  "TextViewDesigner.Initialize - Invalid TextView Control");
     _textView = (System.Web.UI.MobileControls.TextView)component;
     base.Initialize(component);
 }
 /// <summary>
 ///    <para>
 ///       Initializes the designer with the component for design.
 ///    </para>
 /// </summary>
 /// <param name='component'>
 ///    The control element for design.
 /// </param>
 /// <remarks>
 ///    <para>
 ///       This is called by the designer host to establish the component for
 ///       design.
 ///    </para>
 /// </remarks>
 /// <seealso cref='System.ComponentModel.Design.IDesigner'/>
 public override void Initialize(IComponent component)
 {
     Debug.Assert(component is System.Web.UI.MobileControls.TextView,
                  "TextViewDesigner.Initialize - Invalid TextView Control");
     _textView = (System.Web.UI.MobileControls.TextView) component;
     base.Initialize(component);
 }
 private MobileControl CreateControlForText(String text)
 {
     if (text.IndexOf('\r') != -1)
     {
         TextView textView = new TextView();
         textView.Text = text;
         return textView;
     }
     else
     {
         Label label = new Label();
         label.Text = text;
         return label;
     }
 }
 public TextViewLiteralTextParser(TextView parent)
 {
     _parent = parent;
 }
Beispiel #5
0
 public override void Initialize(IComponent component)
 {
     this._textView = (TextView) component;
     base.Initialize(component);
 }
 public DesignerTextViewAdapter(TextView textView)
 {
     base.set_Control(textView);
 }