all groups > asp.net webcontrols > october 2006 >
You're in the

asp.net webcontrols

group:

How do I get a bitmap from the theme?


How do I get a bitmap from the theme? David Thielen
10/29/2006 3:48:02 PM
asp.net webcontrols:
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

RE: How do I get a bitmap from the theme? wawang NO[at]SPAM online.microsoft.com
10/30/2006 12:00:00 AM
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 (wawang@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.
RE: How do I get a bitmap from the theme? David Thielen
10/30/2006 9:50:02 AM
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




[quoted text, click to view]
RE: How do I get a bitmap from the theme? wawang NO[at]SPAM online.microsoft.com
10/31/2006 12:00:00 AM
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 (wawang@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.
AddThis Social Bookmark Button