Click here to Skip to main content
15,887,175 members
Home / Discussions / WPF
   

WPF

 
QuestionText mouse selection while list binding.. Pin
koltaviy23-Dec-09 2:28
koltaviy23-Dec-09 2:28 
AnswerRe: Text mouse selection while list binding.. Pin
ProtoBytes29-Dec-09 11:30
ProtoBytes29-Dec-09 11:30 
GeneralRe: Text mouse selection while list binding.. Pin
koltaviy29-Dec-09 17:34
koltaviy29-Dec-09 17:34 
QuestionWPF: Starting Tutorials Pin
Abbas_here22-Dec-09 20:56
Abbas_here22-Dec-09 20:56 
AnswerRe: WPF: Starting Tutorials Pin
Mark Salsbery23-Dec-09 7:15
Mark Salsbery23-Dec-09 7:15 
GeneralRe: WPF: Starting Tutorials Pin
Abbas_here23-Dec-09 18:28
Abbas_here23-Dec-09 18:28 
QuestionLoad dll client side Pin
Adriaan Davel22-Dec-09 20:37
Adriaan Davel22-Dec-09 20:37 
AnswerRe: Load dll client side Pin
Mark Salsbery24-Dec-09 7:57
Mark Salsbery24-Dec-09 7:57 
Adriaan Davel wrote:
would like to load a dll on the client side and invoke methods based on an interface, can it be done?


Yes.

Given a Stream to an assembly DLL, you can use the
AssemblyPart.Load method to load the assembly into
the current app domain and get an Assembly object.
Then you can use Assembly.CreateInstance to create
instances of classes in the assembly.

Stream sourcestream = ...;
AssemblyPart assemblypart = new AssemblyPart();
Assembly assembly = assemblypart.Load(sourcestream);
IMyInterface myinterfaceobject = assembly.CreateInstance("MyNamespace.SomeClassThatInheritsFromIMyInterface") as IMyInterface;


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Load dll client side Pin
Adriaan Davel3-Jan-10 19:41
Adriaan Davel3-Jan-10 19:41 
GeneralRe: Load dll client side Pin
Mark Salsbery3-Jan-10 19:56
Mark Salsbery3-Jan-10 19:56 
GeneralRe: Load dll client side Pin
Adriaan Davel3-Jan-10 20:33
Adriaan Davel3-Jan-10 20:33 
GeneralRe: Load dll client side Pin
Mark Salsbery3-Jan-10 20:44
Mark Salsbery3-Jan-10 20:44 
GeneralRe: Load dll client side Pin
Adriaan Davel4-Jan-10 2:44
Adriaan Davel4-Jan-10 2:44 
AnswerRe: Load dll client side Pin
Mark Salsbery24-Dec-09 8:39
Mark Salsbery24-Dec-09 8:39 
AnswerRe: Load dll client side Pin
Adriaan Davel3-Jan-10 22:05
Adriaan Davel3-Jan-10 22:05 
Question[WPF] XamlParseException ----> The calling thread must be STA Pin
pbalaga22-Dec-09 11:00
pbalaga22-Dec-09 11:00 
QuestionRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
Mark Salsbery23-Dec-09 7:06
Mark Salsbery23-Dec-09 7:06 
AnswerRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
pbalaga25-Dec-09 3:56
pbalaga25-Dec-09 3:56 
GeneralRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
Mark Salsbery25-Dec-09 8:02
Mark Salsbery25-Dec-09 8:02 
GeneralRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
pbalaga25-Dec-09 10:09
pbalaga25-Dec-09 10:09 
QuestionCreate Radio Button!! Pin
Sr...Frank22-Dec-09 4:08
Sr...Frank22-Dec-09 4:08 
AnswerRe: Create Radio Button!! Pin
Mark Salsbery22-Dec-09 5:59
Mark Salsbery22-Dec-09 5:59 
GeneralRe: Create Radio Button!! Pin
Sr...Frank22-Dec-09 6:24
Sr...Frank22-Dec-09 6:24 
GeneralRe: Create Radio Button!! Pin
Mark Salsbery23-Dec-09 6:21
Mark Salsbery23-Dec-09 6:21 
QuestionListBox Multi Selection without holding Shift Key? Pin
Member 232448321-Dec-09 20:14
Member 232448321-Dec-09 20:14 

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.