I'm developing a kind of website content management system. Users can drop 'blocks' of content on a page and some blocks are silverlight applications (for example picturebooks). I want users to be able to 'skin' the silverlight application like a css stylesheet would do that for a webpage. I was thinking of defining properties for objects used in the silverlight application (for example a button and an image) and let the user decide the values of the properties.
Is there a built in feature in Silverlight which allows me to create such functionality or do I have to write code for each and every property in silverlight which means a lot (A LOT) of coding...
You could merged dictionaries to provide alternate "skins" for controls.
Allowing the user to change them will require some coding definitely, because
you'll need to build dictionaries at runtime and probably need a way to save
the user's preferences.
The ImplicitStyleManager can help for applying styles to controls at
runtime so you don't have to do that part manually.
I see the following error while connecting to a wcf service through my silverlight application.
An error occurred while trying to make a request to URI 'http://localhost:3046/Service1.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.
How are you hosting the WCF app? How are you hosting the
If the Silverlight app isn't hosted at http://localhost:3046
then you'l have a cross domain issue. That means you'll
need to provide a clientaccesspolicy.xml file at the root of
the domain the WCF service is hosted at.
--> By clicking the ADD button i have to create a new row with new controls as in 2nd row.
--> By clicking the DELETE button in the 5th cell the corresponding row should be deleted.
--> By clicking the EDIT button in the 4th cell the corresponding row should be UPDATED(if user want)
Can I achieve this by taking WPF Data grid (WPF tool Kit Latest Build ), and how?