Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > Applying new style for mobile control

Reply
Thread Tools

Applying new style for mobile control

 
 
Eugene
Guest
Posts: n/a
 
      07-18-2005
Hi,

I'm trying create new style property for mobile panel control and getting
following error:
Specified cast is not valid
Line 21: set
Line 22: {
Line 23: this[DirectionKey] = value;
Line 24: }

Here is my code(just like in msdn site)
public class StyleWithRtl : Style
{
public static String DirectionKey =
RegisterStyle("Direction", typeof(String), string.Empty, true).ToString();


public String Direction
{
get
{
return (String)this[DirectionKey];
}
set
{
this[DirectionKey] = value;
}
}


}

Any help?
thanks,
Eugene

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iPhone4,iPhone3,Ipad,Apple Mobile,Blackberry Mobile,HTC Mobile,LGMobile,Motorola Mobile,Nokia Mobile,Samsung Mobile chen selina C++ 0 07-13-2010 08:53 AM
cheap LG Mobile Motorola Mobile Nokia Mobile Philips MobileSony-ericsson Mobile yuwenwu004@gmail.com C++ 0 12-09-2007 09:02 PM
cheap LG Mobile Motorola Mobile Nokia Mobile Philips MobileSony-ericsson Mobile yuwenwu004@gmail.com C Programming 0 12-09-2007 09:02 PM
cheap LG Mobile Motorola Mobile Nokia Mobile Philips MobileSony-ericsson Mobile yuwenwu004@gmail.com Java 0 12-09-2007 09:02 PM
cheap LG Mobile Motorola Mobile Nokia Mobile Philips MobileSony-ericsson Mobile yuwenwu004@gmail.com C Programming 0 12-09-2007 09:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57