Click here to Skip to main content
15,889,216 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Update TreeView's ItemsSource during runtime Pin
Pete O'Hanlon8-Aug-11 4:26
mvePete O'Hanlon8-Aug-11 4:26 
GeneralRe: Update TreeView's ItemsSource during runtime Pin
Mc_Topaz8-Aug-11 5:02
Mc_Topaz8-Aug-11 5:02 
GeneralRe: Update TreeView's ItemsSource during runtime [modified] Pin
SledgeHammer018-Aug-11 6:17
SledgeHammer018-Aug-11 6:17 
GeneralRe: Update TreeView's ItemsSource during runtime Pin
Mc_Topaz8-Aug-11 21:54
Mc_Topaz8-Aug-11 21:54 
Questioncolumns are empty Pin
picasso26-Aug-11 11:18
picasso26-Aug-11 11:18 
QuestionService Model Pin
mehrdadc486-Aug-11 2:17
mehrdadc486-Aug-11 2:17 
AnswerRe: Service Model Pin
Mycroft Holmes6-Aug-11 2:50
professionalMycroft Holmes6-Aug-11 2:50 
AnswerRe: Service Model Pin
Simon Bang Terkildsen8-Aug-11 1:05
Simon Bang Terkildsen8-Aug-11 1:05 
If you can reference an assembly with your service interface and any types you might use. Then you can use the ChannelFactory
C#
ChannelFactory factory = new ChannelFactory<IService>()
IService myService = factory.CreateChannel();
myService.Foo();

the drawback is you don't have any auto generated code so if you need asynchronous calls then you'll have to write that yourself.

If you need the auto generated code, then I suppose you could use svcutil in the post build event of your service project.
eg.
svcutil "http://localhost:1892/IMyService.svc" /out:OutputDir\MyService.cs

This however requires that you have an ISS running with a site that has your service's output directory as it's Content directory.
Also you proporbly have some kind of source control so you might want to add some lines before the above line so that MyService.cs is checked out before svcutil overwrites it.

That's the only two way I know of to avoiding having to update the service reference.
GeneralRe: Service Model Pin
Mycroft Holmes8-Aug-11 1:31
professionalMycroft Holmes8-Aug-11 1:31 
GeneralRe: Service Model Pin
Simon Bang Terkildsen8-Aug-11 1:46
Simon Bang Terkildsen8-Aug-11 1:46 
QuestionSilverlight and SmartCards Pin
#realJSOP6-Aug-11 1:59
mve#realJSOP6-Aug-11 1:59 
AnswerRe: Silverlight and SmartCards Pin
Mycroft Holmes6-Aug-11 2:47
professionalMycroft Holmes6-Aug-11 2:47 
QuestionBuild TreeViewItem dynamically [modified] Pin
McCombi5-Aug-11 1:19
McCombi5-Aug-11 1:19 
AnswerRe: Build TreeViewItem dynamically Pin
SledgeHammer015-Aug-11 4:57
SledgeHammer015-Aug-11 4:57 
GeneralRe: Build TreeViewItem dynamically Pin
McCombi7-Aug-11 22:29
McCombi7-Aug-11 22:29 
AnswerRe: Build TreeViewItem dynamically Pin
Mycroft Holmes5-Aug-11 18:09
professionalMycroft Holmes5-Aug-11 18:09 
AnswerRe: Build TreeViewItem dynamically Pin
McCombi7-Aug-11 22:43
McCombi7-Aug-11 22:43 
AnswerRe: Build TreeViewItem dynamically Pin
McCombi31-Aug-11 2:39
McCombi31-Aug-11 2:39 
QuestionWindows Phone 7, buttons and events when moving your finger Pin
Sir TK4-Aug-11 22:50
Sir TK4-Aug-11 22:50 
Questiondatabinding in wpf Pin
GLolita4-Aug-11 15:57
GLolita4-Aug-11 15:57 
QuestionOveriding context menu default style except for textbox contextmenu Pin
John-ph3-Aug-11 20:05
John-ph3-Aug-11 20:05 
AnswerRe: Overiding context menu default style except for textbox contextmenu Pin
SledgeHammer014-Aug-11 8:50
SledgeHammer014-Aug-11 8:50 
QuestionHow to disable Button in RadGridView. Pin
Sunil G 33-Aug-11 20:00
Sunil G 33-Aug-11 20:00 
AnswerRe: How to disable Button in RadGridView. Pin
Mycroft Holmes4-Aug-11 13:00
professionalMycroft Holmes4-Aug-11 13:00 
QuestionError: Cannot find governing FrameworkElement for target element Pin
John-ph3-Aug-11 19:39
John-ph3-Aug-11 19:39 

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.