|
| |
| daniel.amaury | Asp.Net User |
| Re: Skins in Design View | 7/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 |
| Scott Louvau | Asp.Net User |
| Re: Skins in Design View | 7/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. |
| dennyzou | Asp.Net User |
| Re: Skins in Design View | 8/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 View | 11/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 View | 12/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. |
|
| |
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:
|
|