Home All Groups Group Topic Archive Search About

How do I get a bitmap from the theme?

Author
29 Oct 2006 11:48 PM
David Thielen
Hi;

I created a control and I think I should get the bitmaps it uses from the
theme. How do I set that up?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Author
30 Oct 2006 7:28 AM
Walter Wang [MSFT]
Hi David,

A theme can consist of a combination of a css file and one or many skin
files to control how ASP.NET server controls are rendered. A skin file
looks a bit like ASP.NET WebForm in that they contain server control
definitions and are used to alter the visual appearance of ASP.NET
elements.

For a control, whether a theme is used or which theme is used is totally
transparent, the control has some additional properties set using the skin
file. For example, if your control have a BackgroundImageUrl property and
it's been set in the applied skin, you will get this by reading the
property.

Since your question is rather brief, I'm not sure if I fully understood
your question. Please feel free to reply here if anything is unclear.

Sincerely,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Author
30 Oct 2006 5:50 PM
David Thielen
Hi;

I noticed that most themes have an images directory that has bitmaps for the
tree control. If I create a control that needs 4 bitmaps, how can I have it
get the default image from APP_Themes\dave\images and use those?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




Show quoteHide quote
"Walter Wang [MSFT]" wrote:

> Hi David,
>
> A theme can consist of a combination of a css file and one or many skin
> files to control how ASP.NET server controls are rendered. A skin file
> looks a bit like ASP.NET WebForm in that they contain server control
> definitions and are used to alter the visual appearance of ASP.NET
> elements.
>
> For a control, whether a theme is used or which theme is used is totally
> transparent, the control has some additional properties set using the skin
> file. For example, if your control have a BackgroundImageUrl property and
> it's been set in the applied skin, you will get this by reading the
> property.
>
> Since your question is rather brief, I'm not sure if I fully understood
> your question. Please feel free to reply here if anything is unclear.
>
> Sincerely,
> Walter Wang (waw***@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications. If you are using Outlook Express, please make sure you clear the
> check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
> promptly.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
Author
31 Oct 2006 5:53 AM
Walter Wang [MSFT]
Hi David,

Based on my understanding, those images are used by the CSS or Skin of the
theme. If your control needs 4 bitmaps for different states, I believe you
will need 4 properties to assign these 4 bitmaps to your control. For your
control, you will just access the properties to get the bitmaps.

Regards,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.