CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 7/22/2005 4:17:37 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 11 Views: 12 Favorited: 0 Favorite
12 Items, 1 Pages 1 |< << Go >> >|
CWH
Asp.Net User
Skins in Design View7/22/2005 4:17:37 PM

0/0

Are skins not supported in VS.Net 2005's design view?

When I set the SkinID of a control, the appropriate attributes I set in a skin file aren't visible in design view.

If they currently aren't, anyone have any idea if functionality for previewing skinned controls will be available in later betas/retail?

Thanks

daniel.amaury
Asp.Net User
Re: Skins in Design View7/26/2005 4:54:02 PM

0/0

Here an Exemple for a gridvieu

In the file .skin

<%-- Gestion des grilles --%>

<asp:GridView SkinID="Grid1" runat="server" BorderWidth="1px" BorderColor="#96E391" GridLines="Both">
<
AlternatingRowStyle BackColor="#CCFFCC" />
<
RowStyle Font-Size="8pt" ForeColor="black" />
<
HeaderStyle Font-Size="8pt" Font-Bold="True" BackColor="#A7D7A7" />
<
SelectedRowStyle ForeColor="GhostWhite" BackColor="#699595" />
<
FooterStyle BackColor="#A7D7A7" />
<
PagerStyle HorizontalAlign="Center" BackColor="#A7D7A7" Font-Size="8pt" />
</
asp:GridView>

<asp:GridView SkinID="Grid2" runat="server" BorderWidth="1px" BorderColor="Tan" GridLines="Both">
<
AlternatingRowStyle BackColor="PapayaWhip" />
<
RowStyle Font-Size="8pt" ForeColor="black" />
<
HeaderStyle Font-Size="8pt" Font-Bold="True" BackColor="#F7D7BE" />
<
SelectedRowStyle ForeColor="GhostWhite" BackColor="#cc9999" />
<
FooterStyle BackColor="#F7D7BE" />
<
PagerStyle HorizontalAlign="Center" BackColor="#F7D7BE" Font-Size="8pt" />
</
asp:GridView>

<
asp:GridView SkinID="Grid3" runat="server" BorderWidth="1px" BorderColor="#9999CC" GridLines="Both">
<
AlternatingRowStyle BackColor="AliceBlue" />
<
RowStyle Font-Size="8pt" ForeColor="black" />
<
HeaderStyle Font-Size="8pt" Font-Bold="True" BackColor="#D0DDF7" />
<
SelectedRowStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue" />
<
FooterStyle BackColor="#D0DDF7" />
<
PagerStyle HorizontalAlign="Center" ForeColor="DarkSlateBlue" BackColor="#D0DDF7" Font-Size="8pt" />
</
asp:GridView>

In top of the page

<%@ Page Language="VB" ...................................................... title="test" Theme="NameYourTheme" %>

In table property of your grid to the field skinID, you will have in the drop-down menu the whole of the skinID for the grids.
If you selection "grid3"), you will have the following result:

<asp:GridView ID="GridView1" runat="server" ......................................EmptyDataText="Il n'y a pas de fournisseur."Width="100%" SkinID="Grid3">


I hope for to have understood your question well, because my English is null.

By


Daniel
CWH
Asp.Net User
Re: Skins in Design View7/27/2005 2:07:28 PM

0/0

Sorry, I think you misunderstood my question:

Skins are working for me, except when a theme is defined in design view in Visual Studio 2005, the skins are not being applied to the design view.  When I click "View in browser" the skins are being applied fine. 

Anyone else know of a workaround or whether design view will support skins in a future VS release?

lano
Asp.Net User
Re: Skins in Design View7/28/2005 6:03:44 AM

0/0

Hi,

In order to see theme apply at design view, you need to set stylesheetTheme="NameYourTheme" attribute instead of theme.
thanks,
Lan
CWH
Asp.Net User
Re: Skins in Design View7/28/2005 2:44:32 PM

0/0

Thanks, setting stylesheettheme does indeed seem to apply most theme attributes, but ImageUrl attributes on ASP:Image tags seem not to be showing up and also the styles are not being applied to a underlying master page if there is one.

Any chance there is some way to make the theme apply to the underlying Master Page and Image tags?

Thanks for the help

Scott Louvau
Asp.Net User
Re: Skins in Design View7/28/2005 7:52:32 PM

0/0

These both (should) work, but they are a little bit tricky.

For the Image control ImageURL:
 
The trick is that the URL needs to be relative to the Theme folder, not relative to the page. We wanted this feature to work no matter where the page is, so you have to do it this way. In the skin file, I have this: <asp:imagebutton skinid="Whidbey" runat="server" imageurl="Images/Whidbey.JPG" />. The Images folder is inside the Theme folder, and if you do it this way it will work. You should also be able to use App-Relative paths (~/...) and see the image render the way you expect. If you're doing something different which also works when you run the page but doesn't work on the Design Surface, let me know.

Themes on a Master Page:
You can?t define Themes directly on a Master Page. The problem is that they can be referenced by pages with different Themes, so you wouldn?t really know what the Master Page will look like. If you open a Web Form which references the Master Page and defines a StyleSheetTheme, you will see skins rendering on controls from the Master Page. You can set the Skin property for controls on the Master Page and see them rendered appropriately on the Content Page in Design View. We elected not to have the Theme and StyleSheetTheme attributes from the Master directive, and not to offer IntelliSense and Validation for SkinIDs. This is to keep it clear that individual pages define the Theme. We?re adding designer support for setting the Theme for a site in Web.Config (post Beta2), but I don?t think we?ll have Master Page support for this scenario either ? something we?ll consider for next version. Again, if I misunderstood the situation you have, let me know.

Hope this helps.
-Scott


This posting is provided "AS IS" with no warranties, and confers no rights.
CWH
Asp.Net User
Re: Skins in Design View7/28/2005 10:04:28 PM

0/0

Just to be clear, my issues with images not showing up are only in designer view, bringing it up in a browser works fine.

Here is my situation:

In my skin file I have a definition as follows:

<asp:Image SkinID="MorePic" ImageUrl="Images/More.gif" runat="server" />

I have a custom web part in which I want to output images which depend on the theme being chosen so I have in my web part:

protected override void RenderContents(HtmlTextWriter writer)
{
    Image More =  new Image();
    More.SkinID = "MorePic";
    More.ID = More.UniqueID;
    Controls.Add(More)
    ...
    some code here
    ...
    More.RenderControl(writer)
}

I have multiple themes defined each with a different More.gif in each directory.  So in designer view, I see a broken image link for the picture, even if the stylesheettheme/theme is set.  When I do "View in Browser" the broken links are gone and I see the appropriate image file.

If I directly put in <asp:Image ID="someID" SkinID="MorePic" runat="server" /> in the page (not the web part) the image shows up in both designer view/browser.

I guess I should have explained this more clearly at the outset...




Scott Louvau
Asp.Net User
Re: Skins in Design View8/1/2005 8:09:29 PM

0/0

Sorry about the delay, I had to do some research for this case. The product is working as expected - for custom controls you will have to implement a control designer and set UsePreviewControl to true.

-Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
CWH
Asp.Net User
Re: Skins in Design View8/2/2005 2:31:59 PM

0/0

Once again, everything below has to do with only design view.

It appears this property was already being set to true, as setting it to true makes no difference and setting it to false strips away the properties of the webpart itself.

Setting UsePreviewControl to true using:

        protected override bool UsePreviewControl
        {
            get { return true; }
        }

in my designer seems to do the following:

Setting UsePreviewControl to true makes design view register web part attributes defined in the skin file, but not of controls that were added in the web part.

So if my web part has a attribute "BGColor" that is set in the skin file which I then use in RenderControl to set the backgroundcolour programmatically, this is displayed in design view.
(Eg. in the skin file: <custom:myWebPart SkinID="Red" BGColor="red" runat="server">)

However if I add a control inside my web part and set the SkinID there, the attributes defined in the skin file for that SkinID are not picked up. (As with the image control in the previous post)

Setting UsePreviewControl to false makes even the web part attributes not register.

Let me know if I'm missing something here.

Thanks,

CWH

dennyzou
Asp.Net User
Re: Skins in Design View8/7/2005 1:52:41 AM

0/0

support skin,

but the IDE can't support it.

depwade
Asp.Net User
Re: Skins in Design View11/25/2005 7:06:52 AM

0/0

I am having exactly the same issue in the release version (never used themes in beta).

When in the browser everything is as it should be, however when in design view no styles/skins are applied.

The only way I can see these applied in design view is to set:

<%@ Page StylesheetTheme="test"......

However this does not work(in design view) for Theme=, or by setting in web.config, or by setting from code.

Strangely if I create a new website based on the 'Personal Website Starter Kit' template it all works as I would expect, event to new content pages added. I may try cutting it down to a usable template and saving it as a template and see if that works.

Surely this has to be a bug. Is there anyone that this does not happen to???






Scott Louvau
Asp.Net User
Re: Skins in Design View12/1/2005 6:25:37 PM

0/0

Yes, the design surface will only render themes set via the StyleSheetTheme attribute, though it should pick up themes set in Web.Config also as long as you use the StyleSheetTheme equivalent there as well (<pages styleSheetTheme="..." />).

The philosophy of Themes, which is a little strange, is that StyleSheetTheme is to be used as you are building a site to control the look and feel, and Theme is to be used by someone consuming the site after the initial development, as a final mechanism to override anything the final consumer would like to change. This also explains the order of precedence in themes - StyleSheetTheme is overridden by attributes set directly on the control, which is overridden by attributes set in the Theme.

Unfortunately, we can't pick up on Themes set in code because that would require us to execute it at design time, and for a variety of reasons (risk of hangs and exceptions from your code, inability to replicate the runtime state you expect at design time, security issues) we can't do it.

The good news is that StyleSheetTheme and Theme are really exactly the same, precedence aside. They both use Skin files with exactly the same sort of contents.

Hope this helps,
-Scott


This posting is provided "AS IS" with no warranties, and confers no rights.
12 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Bark Canoes and Skin Boats of North America Authors: Edwin Tappan Adney, Howard I. Chappelle, John McPhee, Pages: 276, Published: 2007
Flex 3: A Beginner's Guide Authors: Michele E. Davis, Jon A. Phillips, Pages: 274, Published: 2008
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Cultural Theory and Popular Culture: A Reader Authors: John Storey, Pages: 657, Published: 2006
Amazon.com Mashups Authors: Francis Shanahan, Pages: 379, Published: 2006
Show Me Microsoft Windows XP: Microsoft Windows XP Authors: Inc Perspection, Steve Johnson, Perspection Inc, Pages: 512, Published: 2004
DotNetNuke For Dummies Authors: Lorraine Young, Philip Beadle, Scott Willhite, Chris Paterra, Pages: 408, Published: 2007
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Fracture Mechanics: 19th National Symposium : Papers Authors: Thomas A Cruse, Committee E-24 on Fracture Testing, American Society for Testing and Materials, Tex.) Southwest Research Institute (San Antonio, Pages: 0, Published: 1988

Web:
Ted On Flash: Flex 3 - Monday: Designer/Developer Workflow Jun 4, 2007 ... Des/Dev enhancements to Flex 3 include support for much deeper skinning of Flex 3, Skin Importer, Design View Zoom/Pan, ItemRenderers in ...
Skins in Design View - ASP.NET Forums Skins are working for me, except when a theme is defined in design view in Visual Studio 2005, the skins are not being applied to the design ...
[#FB-7953] Inheriting HSlider track-skin CSS styling prevents ... Inheriting HSlider track-skin CSS styling prevents Builder DesignView from displaying. Created: 06/25/07 01:14 PM Updated: 06/25/07 01:14 PM ...
Rockband Guitar Skins Stripes Design: Compare Prices, View Price ... Rockband Guitar Skins Stripes Design - 2 Sellers Found - Lowest Price: $6.64.
Tiger Skin Web Design Tutorial Use Photoshop to design a website with a realistic tiger skin theme.
Can't able to change design view skin of emulator in Windows ... But I am unable to change the design view of Form at Visual Studio 2005 of that emulator. It still shows the previous emulator skin of 176x220. ...
Healthy Skin by Design Welcome to Healthy Skin by Design - Jan Marini Skin Care Products and Professional Skin Care. Jan Marini. Jan Marini Products: Log In to view Catalog ...
Wordpress Themes, vBulletin Styles, Skins, Joomla Templates, CSS ... October 20th, 2008How To Create Ironman View Interface Effect ... We create custom skins for Wordpress, vBulletin, Drupal, Joomla and OSCommerce. ...
[#FB-10948] skin attribute does not display in design view - Adobe ... Switch to DV Actual Results: Skin does not render, but if you run/debug the swc renders in the standalone flash player Expected Results: should render in DV ...
Skin maker & GUI design software for professional GUI development GUI design software that allows you to create custom skins for all your ... view , modify and control all graphical elements of an application skin. ...

Videos:
Body Painting - Mytego.com - WUTZ ON UR SKIN? Part 1. Mytego.com asks the question - wutz on ur skin? with unique body painting by renowned artist Pat Lazo, featuring the model talents of Nicole Pearson....
Apple iPhone 3G Custom Skin from mytego.com Design Your Own Completely Custom Apple iPhone 3G Skin Using Your Own Photos & Images at http://www.mytego.com The iPhone is a cool and wonderful ph...
Sony Ebook Reader PRS-505 gets a new skin from mytego.com The new Sony PRS-505 ebook reader is a dazzling display of technology. Where else can you now get to read all of your books with an easy to read inte...
Sterling Silver Turquoise 6-1/2" Cuff Bracelet - Item: 171-205 In a bygone era, the simple view of a woman's wrist was thought to be dangerously enticing. Release your power of suggestion with this flirty and f...
Sony PSP Playstation Portable Slim Gets a Tego Skin We've all seen the coolness of the Sony PSP - Playstation Portable Slim. Well, for the diehard fans who really like to make it truly their own, besid...
SUBARU UNVEILS REDESIGNED 2008 TRIBECA AND DEBUTS NEW 3.6-LITER H6 ENGINE Subaru today unveiled the redesigned and newly named 2008 Subaru Tribeca at the New York International Auto Show. With powerful new styling, a new, l...
Body Painting - Mytego.com - WUTZ ON UR SKIN? Part 2. Mytego.com asks the question - wutz on ur skin? with unique body painting by renowned graffiti artist Pat Lazo, featuring the model talents of Corina...
Blackberry Curve Gets Cooler with a Tego Is the Blackberry Curve a wicked and wild phone - absolutely! Better than the apple iphone - you betcha. But only when its got a Tego skin from http:...
Announcing the launch of eos, the evolution of smooth™ making the world a smoother place, two legs at a time! PRNewswire/eos, the evolution of smooth, today announced the debut of their beauty brand and the release of their launch product, ultra moisturizing ...
Stephen Harper Conservative supporter skins laptop at mytego We all like to show off who we support politically during elections. In Canada, if you are a Stephen Harper Conservative party supporter, you can now...




Search This Site:










recent projects > open websites option missing?

is there any difference between the alpha and the pdc version?

how to share a library file

how to turn off table resizing in "design mode"?

website in iis, opened in studio weird folder structure...

vs 2005 with sp1 crashes when adding a reference

another publishing website help post...

designer defaults? where are they?

checking a file out causes vb.net compiler to crash

interfaces

help! important visual studio question

deplyment - publish website. how to prevent upload of directories

how to test sub session_end(byval sender as object, byval e as eventargs) in global.asax

error while referencing dll of 2005 into 2003

delete of codefile, re-adding codefile - 'context is not a member of xxx.'

format text as a heading

another vs2003 broken feature in vs2005 - system.codedom.compiler

tableadapters

debuging error in asp.net

how do i see my page objects in code behind?

i have vista now, should i install it?

changes to specific file doesn't show when debug

register sdk help file in vs 2005

how can i permanantly exclude items from source control?

deployment build hot to

problem with vs 2005: quick find ctrl + f, quick replace ctrl + h, etc.

messages to debug window from custom build provider

no local debug for forms auth?

not authorized to perform the current operation

how to stop the refactoring that happens when you rename a control in the aspx designer?

  Privacy | Contact Us
All Times Are GMT