Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Shawn Meyer #1
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
-
Expand/Collapse Table
I am looking to create the following JS Toggle Table: DATE TRACK +TITLE +TITLE TRACK +TITLE +TITLE -
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... -
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"... -
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... -
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... -
Victor Garcia Aprea [MVP] #2
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
-
Shawn Meyer #3
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...accesor.> 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 setcontrols>
> 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>> > 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



Reply With Quote

