Fontinfo expand/collapse

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Fontinfo expand/collapse

    I added a fontinfo property to a custom control

    public FontInfo TitleFont
    {
    get { return _title_font; }
    set { _title_font = value; }
    }

    In the designer TitleFont it is not expandable like on all other controls
    Font properties.
    Instead it is just a blank text box that you can type text into.
    How do I make it expandable to set the sub properties from the designer.

    Thanks,
    Shawn


    Shawn Meyer Guest

  2. Similar Questions and Discussions

    1. Expand/Collapse Table
      I am looking to create the following JS Toggle Table: DATE TRACK +TITLE +TITLE TRACK +TITLE +TITLE
    2. CFDirectoy Recurse then collapse expand.
      I want use CFDirectory to list the file and directories below it then with java script i want to to be able click on a directory and list all the...
    3. Expand or Collapse Tree branch?
      I am using the FTree component that came with the "Flash UI Components Set 2" component set... Is there an actionscript command to "remotely"...
    4. Expand and Collapse
      My codebehind file contains a lot of sub's. Is there a fast way to expand and collapse them in the VisualStudio? It's really exhausting to collapse...
    5. Site Expand/Collapse
      When I click on the expand/collapse icon of the Site Files dialogue box I no longer get a view of both the remote and local files. What happens is...
  3. #2

    Default Re: Fontinfo expand/collapse

    Hi Shawn,

    Where/How is _title_font being instantiated? Also you should only offer a
    get accesor for this property, there is no really a need for a set accesor.

    I'm assuming you have an Style instance in your type for which you want to
    expose its Font property. You could code the TitleFont property like this:
    [C#]
    [DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
    [NotifyParentProperty(true)]
    public FontInfo TitleFont {
    get {return _style.Font;}
    }

    Assuming you have instantiated _style properly, this will show up properly
    in the Properties window,

    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:
    [url]http://obies.com/vga/blog.aspx[/url]
    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

    "Shawn Meyer" <smeyer@interelate.com> wrote in message
    news:eEXp92sMEHA.556@TK2MSFTNGP10.phx.gbl...
    > I added a fontinfo property to a custom control
    >
    > public FontInfo TitleFont
    > {
    > get { return _title_font; }
    > set { _title_font = value; }
    > }
    >
    > In the designer TitleFont it is not expandable like on all other controls
    > Font properties.
    > Instead it is just a blank text box that you can type text into.
    > How do I make it expandable to set the sub properties from the designer.
    >
    > Thanks,
    > Shawn
    >
    >

    Victor Garcia Aprea [MVP] Guest

  4. #3

    Default Re: Fontinfo expand/collapse

    That worked great. Thanks much.
    Shawn

    "Victor Garcia Aprea [MVP]" <vga@NOobiesSPAM.com> wrote in message
    news:O29e46fNEHA.3944@tk2msftngp13.phx.gbl...
    > Hi Shawn,
    >
    > Where/How is _title_font being instantiated? Also you should only offer a
    > get accesor for this property, there is no really a need for a set
    accesor.
    >
    > I'm assuming you have an Style instance in your type for which you want to
    > expose its Font property. You could code the TitleFont property like this:
    > [C#]
    > [DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
    > [NotifyParentProperty(true)]
    > public FontInfo TitleFont {
    > get {return _style.Font;}
    > }
    >
    > Assuming you have instantiated _style properly, this will show up properly
    > in the Properties window,
    >
    > --
    > Victor Garcia Aprea
    > Microsoft MVP | ASP.NET
    > Looking for insights on ASP.NET? Read my blog:
    > [url]http://obies.com/vga/blog.aspx[/url]
    > To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    >
    > "Shawn Meyer" <smeyer@interelate.com> wrote in message
    > news:eEXp92sMEHA.556@TK2MSFTNGP10.phx.gbl...
    > > I added a fontinfo property to a custom control
    > >
    > > public FontInfo TitleFont
    > > {
    > > get { return _title_font; }
    > > set { _title_font = value; }
    > > }
    > >
    > > In the designer TitleFont it is not expandable like on all other
    controls
    > > Font properties.
    > > Instead it is just a blank text box that you can type text into.
    > > How do I make it expandable to set the sub properties from the designer.
    > >
    > > Thanks,
    > > Shawn
    > >
    > >
    >
    >

    Shawn Meyer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139