Click here to Skip to main content
15,919,245 members
Home / Discussions / WPF
   

WPF

 
QuestionRe: Creating Custom Button control using Asp.Net Pin
VijaySofist4-Jun-08 23:59
VijaySofist4-Jun-08 23:59 
AnswerRe: Creating Custom Button control using Asp.Net Pin
Michael Sync5-Jun-08 2:20
Michael Sync5-Jun-08 2:20 
AnswerScaling woes Pin
Ray Hayes1-Jun-08 6:01
Ray Hayes1-Jun-08 6:01 
GeneralRe: Scaling woes Pin
TJoe3-Jun-08 2:22
TJoe3-Jun-08 2:22 
GeneralRe: Scaling woes Pin
Ray Hayes3-Jun-08 11:40
Ray Hayes3-Jun-08 11:40 
GeneralRe: Scaling woes Pin
Ray Hayes3-Jun-08 11:53
Ray Hayes3-Jun-08 11:53 
GeneralRe: Scaling woes Pin
TJoe4-Jun-08 1:56
TJoe4-Jun-08 1:56 
GeneralRe: Scaling woes Pin
Ray Hayes4-Jun-08 2:10
Ray Hayes4-Jun-08 2:10 
Ok, that makes sense too.

When I run (or indeed the designer does the same). I've now got an exception being fired by the WidthScaler

if ( values.Length != 2 || 
    values[0].GetType() != typeof(double) || 
    values[1].GetType() != typeof(double) )
{
    throw new NotSupportedException("Source values should be a pair of doubles");
}
The debugger shows that the first value, Duration, is correct. But the second, is DependancyProperty.UnsetValue. If I remove the throwing of an exception and return null, the WidthScaler (the IMultiValueConverter) doesn't seem to be called again!

Regards,
Ray

GeneralRe: Scaling woes Pin
TJoe4-Jun-08 2:13
TJoe4-Jun-08 2:13 
GeneralRe: Scaling woes Pin
Ray Hayes4-Jun-08 2:22
Ray Hayes4-Jun-08 2:22 
GeneralRe: Scaling woes Pin
TJoe4-Jun-08 2:25
TJoe4-Jun-08 2:25 
GeneralRe: Scaling woes Pin
Ray Hayes4-Jun-08 2:32
Ray Hayes4-Jun-08 2:32 
GeneralRe: Scaling woes Pin
TJoe4-Jun-08 2:37
TJoe4-Jun-08 2:37 
GeneralRe: Scaling woes Pin
Ray Hayes4-Jun-08 2:45
Ray Hayes4-Jun-08 2:45 
GeneralRe: Scaling woes Pin
TJoe4-Jun-08 2:47
TJoe4-Jun-08 2:47 
GeneralRe: Scaling woes Pin
TJoe4-Jun-08 2:50
TJoe4-Jun-08 2:50 
GeneralRe: Scaling woes Pin
Ray Hayes4-Jun-08 2:52
Ray Hayes4-Jun-08 2:52 
GeneralRe: Scaling woes Pin
Member 36739221-Jul-09 19:56
Member 36739221-Jul-09 19:56 
Questionerror while opening new window from a Asynchronou callback function Pin
vayanan31-May-08 11:15
vayanan31-May-08 11:15 
AnswerRe: error while opening new window from a Asynchronou callback function Pin
User 2710091-Jun-08 11:25
User 2710091-Jun-08 11:25 
QuestionRouted Command passing data Pin
Jammer31-May-08 7:39
Jammer31-May-08 7:39 
AnswerRe: Routed Command passing data Pin
User 2710091-Jun-08 11:27
User 2710091-Jun-08 11:27 
GeneralRe: Routed Command passing data Pin
Jammer1-Jun-08 12:32
Jammer1-Jun-08 12:32 
GeneralRe: Routed Command passing data Pin
User 2710092-Jun-08 1:07
User 2710092-Jun-08 1:07 
GeneralRe: Routed Command passing data Pin
Pete O'Hanlon2-Jun-08 1:19
mvePete O'Hanlon2-Jun-08 1:19 

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

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