Tricky Business

OK, I'm coming at this from a complete non-technical angle, I'm a designer trying to 'reskin' the 'sleek video player' WPF/e sample and am struggling to get the project running.

I am coming from a 'Flash' background but keen to expand my horizons.

First I encountered the 'canvas error' corrected by inserting -

Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" in the xaml window, (it is interesting that htis product is 'sold-in' on the basis that the designer will not have to touch the xaml code, and I am fiddling with it within the first hour).

Now I have a second error:

Cannot find the member handleLoad" on the target type (line 2)

Something to do with:

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded='javascript:handleLoad'>

Can anybody help wtih this

Thanks

Tricky



Re: Silverlight (formerly WPF/E) Developer Issues Help - opening samples in Blend...

Chad Campbell

Hi Tricky,

I am assuming you are using Expression Blend. There is a key item that will cause some frustration for you at the moment. Expression Blend is geared for full blown WPF applications. Because you are working with a "WPF/E" sample, this will cause some limitations. WPF/E is only a codename at the moment. In addition, WPF/E is a subset of WPF which is why some of the functionality appears not to work. Because it is a subset, if you are working on designing a WPF/E project, you will have to edit the xaml code for the time being.

The "handleLoad" method is searching for a JavaScript method to handle when the Canvas is loaded. Do you need to handle something when the Canvas Loads if not, you can remove the "Loaded='javascript:handleLoad'" and run the application. If you do need it, the HTML file that houses your WPF/E component can either define the handleLoad JavaScript method.

If this answers your question, please select "Mark as Answer", otherwise, please post a followup question.

Thank you,

Chad Campbell






Re: Silverlight (formerly WPF/E) Developer Issues Help - opening samples in Blend...

Tricky Business

Hi Chad,

Thanks for responding.

I am using Expression Blend, are you suggesting that no WPF/E samples can be edited in blend without touching the code - doesn't this defeat the object

Regarding the javascript: As mentioned, I am not a 'coder' or even a 'script-kiddy', my specialist field is branding and design. Do you think that there are any wpf/e 'movie players' that can be opened in Blend and edited wihtout touching the xaml - if so please point me in that direction...

Thanks again,

Tricky






Re: Silverlight (formerly WPF/E) Developer Issues Help - opening samples in Blend...

Bryant Likes

I posted this over in the designer forums, but it might help you with your issue:

This question comes up a lot and I'm glad there is finally a good answer. If you're looking to do design work for WPF/E you can use Blend. Just follow this tutorial here:

http://designerslove.net/ p=34

Go check it out and watch that blog for more design tips.

Note: This won't help with modifying the javascript, but that is developer stuff anyways right :)





Re: Silverlight (formerly WPF/E) Developer Issues Help - opening samples in Blend...

Tricky Business

Thanks Bryant,

As an MSDN newbie I'm still finding my way in the forums, I've bookmarked your page and will check it out the tutorial in the morning (GMT).

Thanks again

Tricky