The Artima Developer Community
Sponsored Link

.NET Buzz Forum
.NET Compact Framework 2.0 (CF) - Programming your own CSS Stylesheets

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Damir Tomicic

Posts: 2504
Nickname: damir
Registered: Apr, 2004

Damir Tomicic is Microsoft Regional Director for Germany and INETA Lead
.NET Compact Framework 2.0 (CF) - Programming your own CSS Stylesheets Posted: Apr 21, 2004 11:14 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Damir Tomicic.
Original Post: .NET Compact Framework 2.0 (CF) - Programming your own CSS Stylesheets
Feed Title: Damir Tomicic : community powered
Feed URL: http://tomicic.de/SyndicationService.asmx/GetRss
Feed Description: stuff about .NET, community and life - in several languages.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Damir Tomicic
Latest Posts From Damir Tomicic : community powered

Advertisement

1. Create a style sheet in your project, e.g.:

.myLabel {  font-weight: bold;  color: orangered; }

2. Add CSSLocation attribute to <mobile:Form> tag pointing at stylesheet

<mobile:Form id="myForm" csslocation="myStylesheet.css“ runat="server" >

3. Set allowCustomAttributes=“true” in web.config

<system.web>
...
    <mobileControls allowCustomAttributes="true“ />
...
</system.web>

4. Use CssClass attribute to apply a style class in the style sheet to a label:

<mobile:label id="myLabel" cssclass=“myLabel" runat=“server”>
    My label looks fine ;-)
</mobile:label>

Et voilà ... Credits to Andy Wigley for his wonderfull Presentation at MDC 2004 ;-)

Read: .NET Compact Framework 2.0 (CF) - Programming your own CSS Stylesheets

Topic: Phillip Torrone's video feed Previous Topic   Next Topic Topic: Spring Framework .NET

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use