Click here to Skip to main content
       

Silverlight / WPF

 
GeneralRe: WPF Command Binding Problem PinprotectorPete O'Hanlon1-Aug-12 0:52 
GeneralRe: WPF Command Binding Problem PinmemberSledgeHammer011-Aug-12 13:20 
GeneralRe: WPF Command Binding Problem PinprotectorPete O'Hanlon2-Aug-12 6:38 
GeneralRe: WPF Command Binding Problem PinprotectorPete O'Hanlon25-Jul-12 21:46 
GeneralRe: WPF Command Binding Problem [UPDATE] [modified] PinmemberKevin Marois31-Jul-12 10:55 
GeneralRe: WPF Command Binding Problem Pinmembervinodkrebc26-Jul-12 8:40 
QuestionInflating color value PinmemberPrasoon Chaudhary25-Jul-12 1:59 
AnswerRe: Inflating color value PinmemberTony Richards25-Jul-12 2:54 
What exactly is going wrong? Are you getting an exception or a compiler error or is it just not doing what you expect?
 
One possible issue I can see is an overflow of the colour component. For example, with a byte, if you add 10 to 255 you'll actually end up with 9, and Math.Min won't work as you expect. You can catch this problem by surrounding the code with a checked statement, which will cause the runtime to throw on an overflow.
 
The quickest solution to this would be to cast the byte to an int first, do the addition, and cast the result back to a byte (once you're certain it'll fit).
GeneralRe: Inflating color value PinmemberPrasoon Chaudhary25-Jul-12 23:21 
AnswerRe: Inflating color value PinmemberChristian Amado2-Aug-12 9:19 
GeneralReg: Sending multiple objects from WCF service to silverlight PinmemberDomain admin fsl24-Jul-12 21:00 
GeneralRe: Reg: Sending multiple objects from WCF service to silverlight PinmvpAbhinav S24-Jul-12 21:52 
QuestionAuthentication on DomainService PinmemberChristian Amado24-Jul-12 11:31 
Questiongetting color value of pixel from outside of WPF Mainwindow PinmemberPrasoon Chaudhary24-Jul-12 1:24 
QuestionWhen WPF manipulation is ON, ListBox SelectionChanged event isn't fired Pinmembermonolicciolo24-Jul-12 1:04 
GeneralHow to get all Office version installed using SilverLight [modified] PinmemberdinhHaTinh22-Jul-12 17:43 
GeneralRe: How to get all Office version installed by SilverLight PinmemberMycroft Holmes22-Jul-12 19:03 
AnswerRe: How to get all Office version installed using SilverLight PinmemberChristian Amado23-Jul-12 2:59 
GeneralRe: How to get all Office version installed using SilverLight PinmemberdinhHaTinh31-Jul-12 23:13 
GeneralRe: How to get all Office version installed using SilverLight PinmemberEd Hill _5_3-Aug-12 4:22 
GeneralHow to bind inverse boolean properties? - [Answered] [modified] PinmemberAlisaunder22-Jul-12 13:23 
GeneralRe: How to bind inverse boolean properties? PinmemberMycroft Holmes22-Jul-12 18:07 
GeneralRe: How to bind inverse boolean properties? PinmemberAlisaunder22-Jul-12 18:28 
GeneralRe: How to bind inverse boolean properties? PinmemberMycroft Holmes22-Jul-12 19:02 
GeneralRe: How to bind inverse boolean properties? PinmemberAlisaunder23-Jul-12 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 24 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid