WynApse
Mining the Web for Silverlight so YOU don't have to
posts - 1130, comments - 584, trackbacks - 59
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
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
Silverlight Cream No. 743 is up -
http://snurl...teswz
about 1 day ago
WynApse
Silverlight Cream No. 742 is up -
http://snurl...teiii
about 1 day ago
WynApse
Silverlight Cream No. 741 is up -
http://snurl...tdy4a
about 2 days ago
WynApse
Silverlight Cream No. 740 is up -
http://snurl...tdmco
about 3 days ago
WynApse
Silverlight Cream No. 739 is up -
http://snurl...tdgp7
about 3 days ago
WynApse
Silverlight Cream No. 738 is up -
http://snurl...tdb2y
about 3 days ago
WynApse
@rickggaribay
BBKing was great as usual -- 84 years old and still jamming on that ES355 and belting out the blues and his band kicks hard
about 3 days ago
WynApse
waiting for BBKing concert in Phx
about 4 days ago
WynApse
Silverlight Cream No. 737 is up -
http://snurl...tbxct
about 5 days ago
WynApse
@vbandi
congratulations, and good luck Andras!
about 6 days ago
Tag Cloud
DevTeach
MIX09
Productivity
Silverlight
Silverlight 3
Silverlight 3 Beta
silverlight-3
Silverlight3
silverlight-3-beta
silverlight-4
SilverlightCream
WhattheTech
WynApse
more tags...
Archives
November, 2009 (25)
October, 2009 (24)
September, 2009 (25)
August, 2009 (25)
July, 2009 (40)
June, 2009 (23)
May, 2009 (28)
April, 2009 (28)
March, 2009 (42)
February, 2009 (32)
January, 2009 (37)
December, 2008 (40)
November, 2008 (32)
October, 2008 (40)
September, 2008 (30)
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
MIX 09
Silverlight 3
Silverlight 4
Communities
Syndication:
RSS
ATOM