Click here to Skip to main content
15,913,587 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Byte[] of PDF into image Pin
Pete O'Hanlon9-Oct-12 21:51
mvePete O'Hanlon9-Oct-12 21:51 
GeneralRe: Byte[] of PDF into image Pin
GomathiR10-Oct-12 4:22
GomathiR10-Oct-12 4:22 
QuestionSL application tha treads local registries Pin
picasso25-Oct-12 18:51
picasso25-Oct-12 18:51 
AnswerRe: SL application tha treads local registries Pin
Richard MacCutchan5-Oct-12 22:37
mveRichard MacCutchan5-Oct-12 22:37 
QuestionHow to dynamically load Theme in Application? Pin
Savalia Manoj M4-Oct-12 1:27
Savalia Manoj M4-Oct-12 1:27 
AnswerRe: How to dynamically load Theme in Application? Pin
Pete O'Hanlon4-Oct-12 1:55
mvePete O'Hanlon4-Oct-12 1:55 
AnswerRe: How to dynamically load Theme in Application? Pin
Shrinivas Ramesh Ambat17-Oct-12 2:38
Shrinivas Ramesh Ambat17-Oct-12 2:38 
GeneralRe: How to dynamically load Theme in Application? Pin
Pete O'Hanlon17-Oct-12 3:07
mvePete O'Hanlon17-Oct-12 3:07 
GeneralRe: How to dynamically load Theme in Application? Pin
Wayne Gaylard17-Oct-12 3:10
professionalWayne Gaylard17-Oct-12 3:10 
QuestionProblem in flow direction when value is right to left in Telerik Pin
Hossein Khalaj3-Oct-12 20:19
Hossein Khalaj3-Oct-12 20:19 
AnswerRe: Problem in flow direction when value is right to left in Telerik Pin
Pete O'Hanlon3-Oct-12 20:21
mvePete O'Hanlon3-Oct-12 20:21 
GeneralRe: Problem in flow direction when value is right to left in Telerik Pin
Hossein Khalaj3-Oct-12 20:23
Hossein Khalaj3-Oct-12 20:23 
GeneralRe: Problem in flow direction when value is right to left in Telerik Pin
Hossein Khalaj4-Oct-12 22:48
Hossein Khalaj4-Oct-12 22:48 
Questionbinding: not work property Mode=TwoWay and UpdateSourceTrigger Pin
dominioYP3-Oct-12 0:25
dominioYP3-Oct-12 0:25 
AnswerRe: binding: not work property Mode=TwoWay and UpdateSourceTrigger Pin
Pete O'Hanlon3-Oct-12 0:54
mvePete O'Hanlon3-Oct-12 0:54 
GeneralRe: binding: not work property Mode=TwoWay and UpdateSourceTrigger Pin
dominioYP3-Oct-12 22:24
dominioYP3-Oct-12 22:24 
QuestionHow do I reference embedded resources in Xaml? Pin
Gil Yoder2-Oct-12 18:57
Gil Yoder2-Oct-12 18:57 
AnswerRe: How do I reference embedded resources in Xaml? Pin
Gil Yoder4-Oct-12 7:52
Gil Yoder4-Oct-12 7:52 
Questionsilverlight Pin
rameshchetu30-Sep-12 9:12
rameshchetu30-Sep-12 9:12 
AnswerRe: silverlight Pin
Pete O'Hanlon30-Sep-12 9:45
mvePete O'Hanlon30-Sep-12 9:45 
AnswerRe: silverlight Pin
Kenneth Haugland30-Sep-12 22:36
mvaKenneth Haugland30-Sep-12 22:36 
AnswerRe: silverlight Pin
Abhinav S3-Oct-12 20:40
Abhinav S3-Oct-12 20:40 
QuestionCheckk For WCF Service Running & Exit Pin
Kevin Marois29-Sep-12 9:51
professionalKevin Marois29-Sep-12 9: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 6:11
dominioYP28-Sep-12 6:11 
AnswerRe: SendMessage in C# WPF Pin
Pete O'Hanlon29-Sep-12 10:30
mvePete O'Hanlon29-Sep-12 10:30 

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.