The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

stevegw (39) [Avatar] Offline
#1
This section of the code

this.RootVisual = new MainPage()
{
ListId = listId,
ItemId = itemId
};

The ListId and ItemId cannot be resolved

from your example code I not sure where they are used and where they are defined
wictor.wilen (29) [Avatar] Offline
#2
Re: 11.2.3 Input parameters to the Silverlight Web Part
Hi,
thanks for the input - I will clarify this a bit.

It is two properties on the main page class, like this.
public string ListId;
public int ItemId;

The text says "These variables are then sent to the MainPage object, which represents the Silverlight application control, which has been extended with two public properties that accepts the values from the initialization properties."

Will look into making this more understandable!

Thanks for commenting
/WW
stevegw (39) [Avatar] Offline
#3
Re: 11.2.3 Input parameters to the Silverlight Web Part
Wictor,

I kind a guessed that or should I say Resharper re-factored it for me smilie but still did not see from the text once you had the values where they where used.



Steve
wictor.wilen (29) [Avatar] Offline
#4
Re: 11.2.3 Input parameters to the Silverlight Web Part
Hi,
that code was first a part of a larger sample but I cut it down. As I said I will explain it better in the final release.

Thanks again for bringing it up
/WW