WynApse
Technical Musings
posts - 663, comments - 347, trackbacks - 61
Wednesday, January 17, 2007
#
Minor Errors in WPF/E QuickStart
While working on
the last part of the WPF/E QuickStart
, I was doing my thing which is normally thinking of other stuff to try to do with the sample code. The slider looked like fun, and I thought if I started it in the center instead of on the left that would be interesting. The outer Canvas in the xaml already had a Loaded= line in it, so I simply used it to try to set the center.
'Loaded' was pointed at "javascript::slider_loaded. That in turn called slider_SetValue. So I changed this call to pass 100 instead of 0.
And it didn't work. Hmmm
A couple of alerts pointed out more than one problem with the original code:
The Loaded= line in the xaml calls out "slider_
l
oaded", but the actual javascript is named "slider_
L
oaded", so no matter what the value was set to, it wasn't being called.
Once I had that repaired, it still wasn't working because the call from slider_Loaded to slider_SetValue was passing 'slider' instead of 'sender'. There is no variable named 'slider'.
These are both reasonably minor, but if someone is trying to use the QuickStart code as a springboard to other things, it will slow them down.
I downloaded the latest WPF/E QuickStart and documentation from late December, and the problems are still there.
This article is essentially mirrored on my site in the WPF/E Tutorial section:
http://www.wynapse.com/WPFE/Tutor/Minor_QuickStart_Errors.aspx
posted @
Wednesday, January 17, 2007 8:28 PM
|
Feedback (0)
«
January
»
Sun
Mon
Tue
Wed
Thu
Fri
Sat
31
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
1
2
3
4
5
6
7
8
9
10
WynApse
SilverlightCream
Read my article at
CoDe Magazine
Check out our book:
My Events:
DevTeach Montreal
Disclaimer:
Any random thought patterns or comments made on these pages attributed to me are mine and mine alone and should in no way be assumed to reflect on my employer, my customer, or my parentage.
Mileage may vary, Restrictions apply, While Supplies Last, Void where Prohibited, Do not remove under penalty of law, Professional Stunt Driver -- Do Not Attempt...You get the idea.
[Not related to
Chad
]
About
Contact
Login
Twitter
WynApse
can still send to twitter via admin page on my site guid/guidadmin.aspx... BF URL :)
about 15 hours ago
WynApse
Client SW audit. if they didn't install it, it goes, including SL, FF, my editor, OneNote, just shoot me
about 15 hours ago
WynApse
I'll assume that got sent since I can't get twitter in PageFlakes any longer... this is getting stupefying
about 15 hours ago
WynApse
Silverlight Cream #359 is up --
http://snurl...3lpb3
about 4 days ago
WynApse
Can't believe 1) I'm in a meeting and 2) it's Fri afternoon < holiday.. should be quiet in here so I can get things done!
about 6 days ago
WynApse
Interesting twitter functionality... write-only... so DM or email to reach me!
about 6 days ago
WynApse
freakin' busy work bugs me... putting useless functionality in just so some Mgr can get their input before signing off..grrr
about 6 days ago
WynApse
Silverlight Cream #358 is up --
http://snurl...3kw1v
about 7 days ago
WynApse
sux that I haven't been able to get to twitter from work...I'd been using PageFlakes, but maybe IT caught on :)
about 7 days ago
WynApse
Looks like twitter is one-way for me for some reason. Yesterday and today I can't get to twitter thru pageflakes :(
about 9 days ago
Archives
September, 2008 (4)
August, 2008 (30)
July, 2008 (32)
June, 2008 (40)
May, 2008 (51)
April, 2008 (27)
March, 2008 (39)
February, 2008 (40)
January, 2008 (42)
December, 2007 (31)
November, 2007 (36)
October, 2007 (30)
September, 2007 (26)
August, 2007 (33)
July, 2007 (25)
June, 2007 (36)
May, 2007 (37)
April, 2007 (18)
March, 2007 (11)
February, 2007 (18)
January, 2007 (17)
December, 2006 (13)
November, 2006 (24)
October, 2006 (3)
Post Categories
C#, .NET 2.0 +
Crystal Reports
Productivity
Non-Technical
Rants & Randomness
SlickEdit
General Technical
WPF/E
Silverlight
MIX07
Silverlight 1.0
Silverlight .NET 1.1
Silverlight Cream
Tutorials
Silverlight Tooltips
MIX08
Silverlight 2
Silverlight 2 Tooltips
Communities
Syndication:
RSS
ATOM