Click here to Skip to main content
12,824,299 members (44,722 online)

Silverlight / WPF

 
GeneralRe: binding: not work property Mode=TwoWay and UpdateSourceTrigger Pin
dominioYP3-Oct-12 23:24
memberdominioYP3-Oct-12 23:24 
QuestionHow do I reference embedded resources in Xaml? Pin
Gil Yoder2-Oct-12 19:57
memberGil Yoder2-Oct-12 19:57 
AnswerRe: How do I reference embedded resources in Xaml? Pin
Gil Yoder4-Oct-12 8:52
memberGil Yoder4-Oct-12 8:52 
Questionsilverlight Pin
rameshchetu30-Sep-12 10:12
memberrameshchetu30-Sep-12 10:12 
AnswerRe: silverlight Pin
Pete O'Hanlon30-Sep-12 10:45
protectorPete O'Hanlon30-Sep-12 10:45 
AnswerRe: silverlight Pin
Kenneth Haugland30-Sep-12 23:36
memberKenneth Haugland30-Sep-12 23:36 
AnswerRe: silverlight Pin
Abhinav S3-Oct-12 21:40
mvpAbhinav S3-Oct-12 21:40 
QuestionCheckk For WCF Service Running & Exit Pin
Kevin Marois29-Sep-12 10:51
memberKevin Marois29-Sep-12 10:51 
I'm trying to check to see if a WCF service is running, and if not, exit. So far I have this:

// Attempt to create an instance of the proxy
bool serviceRunning = true;
try
{
    Proxy = new MyAppServiceRef.MyAppServiceClient();
}
catch (Exception e)
{
    serviceRunning = false;
}
// Now check to see if the service is running
try
{
    serviceRunning = !Proxy.ServiceRunning();
}
catch (Exception e)
{
    serviceRunning = false;
}

// If the service is not running, then exit the app
if (!serviceRunning)
{
    string message = "The service appears to not be running. Please check the service. " + ApplicationTitle + " will now exit.";
    MessageBox.Show(message, "Service Error", MessageBoxButton.OK, MessageBoxImage.Stop);
    Application.Current.Shutdown();
}


1) is this really the way to do this?

2) After the call to Application.Current.Shutdown() the app continue to run and I get XAML errors. How to I actually stop the app dead right here?

Thanks
If it's not broken, fix it until it is

QuestionSendMessage in C# WPF Pin
dominioYP28-Sep-12 7:11
memberdominioYP28-Sep-12 7:11 
AnswerRe: SendMessage in C# WPF Pin
Pete O'Hanlon29-Sep-12 11:30
protectorPete O'Hanlon29-Sep-12 11:30 
GeneralRe: SendMessage in C# WPF Pin
dominioYP29-Sep-12 13:08
memberdominioYP29-Sep-12 13:08 
GeneralRe: SendMessage in C# WPF Pin
Pete O'Hanlon29-Sep-12 21:45
protectorPete O'Hanlon29-Sep-12 21:45 
QuestionNew to .net/ previous programming background Pin
ljv_az27-Sep-12 9:29
memberljv_az27-Sep-12 9:29 
AnswerRe: New to .net/ previous programming background Pin
Richard MacCutchan27-Sep-12 10:47
mvpRichard MacCutchan27-Sep-12 10:47 
GeneralRe: New to .net/ previous programming background Pin
ljv_az27-Sep-12 11:00
memberljv_az27-Sep-12 11:00 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan27-Sep-12 22:16
mvpRichard MacCutchan27-Sep-12 22:16 
GeneralRe: New to .net/ previous programming background Pin
ljv_az28-Sep-12 9:14
memberljv_az28-Sep-12 9:14 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan28-Sep-12 22:57
mvpRichard MacCutchan28-Sep-12 22:57 
GeneralRe: New to .net/ previous programming background Pin
ljv_az29-Sep-12 8:29
memberljv_az29-Sep-12 8:29 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan29-Sep-12 8:34
mvpRichard MacCutchan29-Sep-12 8:34 
GeneralRe: New to .net/ previous programming background Pin
ljv_az29-Sep-12 17:46
memberljv_az29-Sep-12 17:46 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan29-Sep-12 22:38
mvpRichard MacCutchan29-Sep-12 22:38 
GeneralRe: New to .net/ previous programming background Pin
ljv_az30-Sep-12 7:23
memberljv_az30-Sep-12 7:23 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan30-Sep-12 7:59
mvpRichard MacCutchan30-Sep-12 7:59 
GeneralRe: New to .net/ previous programming background Pin
ljv_az30-Sep-12 8:51
memberljv_az30-Sep-12 8:51 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 20 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid