Ask a Question related to ASP.NET Building Controls, Design and Development.
-
James Geurts #1
How to add vertical align attribute to designer
Hi,
I am trying to add designer support to my custom web control. It's similar
to the Panel control and I'd like to allow the user to specify vertical
align. I'm not quite sure what style is supported in the vs.net designer,
though.
So... in the OnBehaviorAttached() method of my designer class, I do
something like:
this.Behavior.SetStyleAttribute("vertical-align", true,
Enum.Format(typeof(VerticalAlign), propertyValue, "G"), true);
It doesn't appear that "vertical-align" is a valid style. Can someone tell
me what style I need to specify to accomplish this?
Also, is there a list of styles (and attributes) that are supported by the
vs.net designer?
Thanks
Jim
James Geurts Guest
-
Spry horizontal menu: vertical text align issue
Hello all, I have a simple horizontal Spry menu I'm working on. The menu is single level - no submenus. The problem is that I cannot get the... -
Retrive data from attribute spaced attribute.
Hi. I'm retrieving data from an excel sheet. But one of the attributes is name "Phone private". This is a problem when I want to write out the... -
Retrieving XML attribute using XML::XPath::Node::Attribute
Hi I am trying to retrieve an attribute of a particular node from my XML using "XML::XPath::Node::Attribute", but couldn't come across on how to... -
Align
How to align two or more object relative to the center axe of the last chosen one AND keep the position of the reference object (last picked)intact... -
how to Align text left & vertical align middle
Hello, I have a asp lable control, which I use to display text in, I would like to have the text display aligned in the center and vertical... -
Jeff Bowman #2
Re: How to add vertical align attribute to designer
Oops--layers don't support vertical alignment. It's a CSS issue, not a VS.NET
designer issue.
Now, that said, you might be able to find a CSS hack on Google--it's a hot
topic.
James Geurts wrote:> Hi,
>
> I am trying to add designer support to my custom web control. It's similar
> to the Panel control and I'd like to allow the user to specify vertical
> align. I'm not quite sure what style is supported in the vs.net designer,
> though.
>
> So... in the OnBehaviorAttached() method of my designer class, I do
> something like:
>
> this.Behavior.SetStyleAttribute("vertical-align", true,
> Enum.Format(typeof(VerticalAlign), propertyValue, "G"), true);
>
> It doesn't appear that "vertical-align" is a valid style. Can someone tell
> me what style I need to specify to accomplish this?
>
> Also, is there a list of styles (and attributes) that are supported by the
> vs.net designer?
>
> Thanks
>
> Jim
Jeff Bowman Guest
-
James Geurts #3
Re: How to add vertical align attribute to designer
Maybe I'm missing something, but how do layers factor into the designer? The
vs.net designer is just a glorified IE control, right? Is it that a
ReadWriteControlDesigner is not rendered as a div or span in the designer
view?
Again, I would like to know the styles and attributes that are supported
with the vs.net designer...
btw, vertical alignment is supported by CSS:
[url]http://www.w3.org/TR/CSS1#vertical-align[/url]
Thanks
Jim
"Jeff Bowman" wrote:
> Oops--layers don't support vertical alignment. It's a CSS issue, not a VS.NET
> designer issue.
>
> Now, that said, you might be able to find a CSS hack on Google--it's a hot
> topic.
>
>
>
>
> James Geurts wrote:>> > Hi,
> >
> > I am trying to add designer support to my custom web control. It's similar
> > to the Panel control and I'd like to allow the user to specify vertical
> > align. I'm not quite sure what style is supported in the vs.net designer,
> > though.
> >
> > So... in the OnBehaviorAttached() method of my designer class, I do
> > something like:
> >
> > this.Behavior.SetStyleAttribute("vertical-align", true,
> > Enum.Format(typeof(VerticalAlign), propertyValue, "G"), true);
> >
> > It doesn't appear that "vertical-align" is a valid style. Can someone tell
> > me what style I need to specify to accomplish this?
> >
> > Also, is there a list of styles (and attributes) that are supported by the
> > vs.net designer?
> >
> > Thanks
> >
> > Jim
>
>James Geurts Guest
-
Jeff Bowman #4
Re: How to add vertical align attribute to designer
James Geurts wrote:
The Panel control emits DIVs, which are layers.> Maybe I'm missing something, but how do layers factor into the designer? The
AFAIK, there's no way to access the HTML in designer view.> vs.net designer is just a glorified IE control, right? Is it that a
> ReadWriteControlDesigner is not rendered as a div or span in the designer
> view?
That one I don't know. In fact I'm kind of curious myself.> Again, I would like to know the styles and attributes that are supported
> with the vs.net designer...
Yes, for inline elements such as SPAN. DIV is a block-level element.> btw, vertical alignment is supported by CSS:
> [url]http://www.w3.org/TR/CSS1#vertical-align[/url]
[url]http://google.com/search?q=css+div+vertical+alignment[/url]
>
> Thanks
>
> Jim
>
> "Jeff Bowman" wrote:
>>> Oops--layers don't support vertical alignment. It's a CSS issue, not a VS.NET
>> designer issue.
>>
>> Now, that said, you might be able to find a CSS hack on Google--it's a hot
>> topic.
>>
>>
>>
>>
>> James Geurts wrote:>>> Hi,
>>>
>>> I am trying to add designer support to my custom web control. It's similar
>>> to the Panel control and I'd like to allow the user to specify vertical
>>> align. I'm not quite sure what style is supported in the vs.net designer,
>>> though.
>>>
>>> So... in the OnBehaviorAttached() method of my designer class, I do
>>> something like:
>>>
>>> this.Behavior.SetStyleAttribute("vertical-align", true,
>>> Enum.Format(typeof(VerticalAlign), propertyValue, "G"), true);
>>>
>>> It doesn't appear that "vertical-align" is a valid style. Can someone tell
>>> me what style I need to specify to accomplish this?
>>>
>>> Also, is there a list of styles (and attributes) that are supported by the
>>> vs.net designer?
>>>
>>> Thanks
>>>
>>> Jim
Jeff Bowman Guest



Reply With Quote

