Tips and Tricks in a world of Mix

Archive for the ‘Silverlight’ Category

Silverlight–Formatting Xaml – beautify

1. In VS2008 or VS2010 go to Tools –> Options

2. Expand Text Editor -> XAML -> Formatting –> Spacing

image

 

image

 

 

3. Under "Attribute Spacing" check "Position each attribute on separate line".

4. If you prefer, you can also put the first attribute on the same line as the tag by checking the box.  I use this setting because it isn’t offensive and still saves a little space.

image

Now, whenever you edit XAML in Visual Studio, press "Ctrl+K+D" and Visual Studio will reformat the XAML as desired.

image

if you check

Position first attribute on same line as start tag it’ll look like this :

image

I think that I preffer the second option.

Advertisements

Unhandled Error in Silverlight Application Code : 2103 – Invalid or malformed application : Check manifest

 

Line: 54
Error: Unhandled Error in Silverlight Application
Code: 2103   
Category: InitializeError      
Message: Invalid or malformed application: Check manifest   

(more…)

Ria Services DomainServices missing

image

image

image

using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
using System.ServiceModel

 

try to take it from  :

C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server\

 

If you don’t have it goto -  http://www.silverlight.net/getstarted/riaservices/

Silverlight runtime error–2104–InitializeError

When running Silverlight Prism Template Quickstart of Silverlight – got this error .

image

After going over a few posts

(more…)

Dll’s for DomainService

image

Pay attention that the Microsoft.Practices.Unity that by default installed in your Program Files folder is different from Silverlight Prism template .

Choose the one from Silverlight Prism template . I’m managing all third party or in a way special dll’s  in an External.Libs for each project – this makes the project portable .

It has to be in our case 1.2.0.0 version.

Tag Cloud

%d bloggers like this: