I have a Silverlight Parent Page which is like a master page.
the child page derives from the parent page.
This works fine.
But if i want to add additional controls on the child page it is not possible.
How can i achieve this functionality in Silverlight? Can anybody suggest some good workaround for this?
I have a Silverlight Parent Page which is like a master page. the child
Share
Try this: Look for a place in your XAML code when you want to insert the new controls, and in that place put a
<ContentPresenter x:Name="ContentTag" />. In code create a property of typeObjectthat sets the Content property of the newly added tag. Now you have a spot in your XAML to put stuff. At the end you might get something like this:your code might look like:
The beauty of this is that you can add as many ContentPresenters as needed.