Click here to Skip to main content
15,894,825 members
Home / Discussions / WPF
   

WPF

 
QuestionPrintable Area's Size - SL Printing API Pin
jadughar4-May-11 0:38
jadughar4-May-11 0:38 
AnswerRe: PageVisual's Size - SL Printing API Pin
Pete O'Hanlon4-May-11 2:18
mvePete O'Hanlon4-May-11 2:18 
GeneralRe: PageVisual's Size - SL Printing API Pin
jadughar4-May-11 4:24
jadughar4-May-11 4:24 
QuestionMVVM Pin
arkiboys3-May-11 22:50
arkiboys3-May-11 22:50 
AnswerRe: MVVM Pin
Dave Kerr3-May-11 23:09
mentorDave Kerr3-May-11 23:09 
GeneralRe: MVVM Pin
arkiboys3-May-11 23:19
arkiboys3-May-11 23:19 
QuestionSilverlight Compatibility with existing C#2.0 libraries Pin
insanechingi3-May-11 22:14
insanechingi3-May-11 22:14 
AnswerRe: Silverlight Compatibility with existing C#2.0 libraries Pin
Pete O'Hanlon3-May-11 23:14
mvePete O'Hanlon3-May-11 23:14 
Silverlight does not use the same version of the CLR as standard .NET applications. This means that you cannot use existing DLLs directly.

Let me explain in a bit more detail. When you run a .NET application (any .NET application), the CLR has a system called Fusion which works with the embedded assembly manifest (inside the DLL/exe). The manifest contains a load of information, such as embedded resources, type system details, and details of the required assemblies for this process (hint: this info is really useful for Reflection). Fusion won't find the desktop CLR references because the .NET BCL libraries aren't there as far as it's concerned (remember that it is aimed at targetting machines which may not have the full runtime installed).

If you want to add your existing code, the common trick is to create a bunch of new Silverlight class libraries and then add the class files into these libraries using the "Add as link" option in the add existing item (you add as a link so that if fix your existing application, your Silverlight application will get the fix simply by recompiling it). There are a couple of caveats though - as the class libraries are different, certain features may not be present so you may have to find workrounds (e.g. you can't add a reference to log4net). Silverlight also runs at a more secured level, so you can't do things like P/Invoke in the browser.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


QuestionSilverlight best Printing solution ??? Pin
jadughar2-May-11 4:08
jadughar2-May-11 4:08 
AnswerRe: Silverlight best Printing solution ??? Pin
Pete O'Hanlon2-May-11 9:40
mvePete O'Hanlon2-May-11 9:40 
AnswerRe: Silverlight best Printing solution ??? Pin
Mycroft Holmes2-May-11 13:10
professionalMycroft Holmes2-May-11 13:10 
GeneralRe: Silverlight best Printing solution ??? Pin
jadughar3-May-11 23:36
jadughar3-May-11 23:36 
AnswerRe: Silverlight best Printing solution ??? Pin
Abhinav S2-May-11 18:59
Abhinav S2-May-11 18:59 
GeneralRe: Silverlight best Printing solution ??? Pin
jadughar2-May-11 22:32
jadughar2-May-11 22:32 
AnswerRe: Silverlight best Printing solution ??? Pin
thrakazog3-May-11 6:25
thrakazog3-May-11 6:25 
AnswerRe: Silverlight best Printing solution ??? Pin
jadughar3-May-11 20:58
jadughar3-May-11 20:58 
GeneralRe: Silverlight best Printing solution ??? Pin
Mycroft Holmes3-May-11 21:53
professionalMycroft Holmes3-May-11 21:53 
GeneralRe: Silverlight best Printing solution ??? Pin
Abhinav S3-May-11 22:09
Abhinav S3-May-11 22:09 
GeneralRe: Silverlight best Printing solution ??? Pin
Mycroft Holmes3-May-11 22:50
professionalMycroft Holmes3-May-11 22:50 
GeneralRe: Silverlight best Printing solution ??? Pin
Abhinav S3-May-11 23:10
Abhinav S3-May-11 23:10 
QuestionUpdate Domain context Pin
picasso230-Apr-11 14:51
picasso230-Apr-11 14:51 
AnswerRe: Update Domain context Pin
RichardGrimmer4-May-11 4:35
RichardGrimmer4-May-11 4:35 
Questionwhat's the wpf (tools) controls used to affiche some Match? Pin
tifasahraoui30-Apr-11 7:33
tifasahraoui30-Apr-11 7:33 
AnswerRe: what's the wpf (tools) controls used to affiche some Match? Pin
Pete O'Hanlon30-Apr-11 10:20
mvePete O'Hanlon30-Apr-11 10:20 
GeneralRe: what's the wpf (tools) controls used to affiche some Match? Pin
SledgeHammer011-May-11 16:34
SledgeHammer011-May-11 16:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.