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

WPF

 
GeneralRe: wcf Pin
heba abu ghaleih22 20-Apr-12 22:10
heba abu ghaleih22 20-Apr-12 22:10 
QuestionBuilding WPF UI for editing simple XML Pin
Mahesha99919-Apr-12 4:38
Mahesha99919-Apr-12 4:38 
AnswerRe: Building WPF UI for editing simple XML Pin
Richard MacCutchan19-Apr-12 4:59
mveRichard MacCutchan19-Apr-12 4:59 
AnswerRe: Building WPF UI for editing simple XML Pin
Gerry Schmitz19-Apr-12 12:34
mveGerry Schmitz19-Apr-12 12:34 
Questionmdi container Pin
MemberDotNetting19-Apr-12 3:24
MemberDotNetting19-Apr-12 3:24 
QuestionThree ScrollViewers Pin
pix_programmer17-Apr-12 18:14
pix_programmer17-Apr-12 18:14 
AnswerRe: Three ScrollViewers Pin
Gerry Schmitz19-Apr-12 12:53
mveGerry Schmitz19-Apr-12 12:53 
QuestionMVVM - Unable to use savefiledialog in the service proxy callback Pin
G Nathan16-Apr-12 20:13
G Nathan16-Apr-12 20:13 
I am developing a silverlight application using MVVM pattern. I have a service which returns a string. I need to write that string in a text file. I call the save file dialog method in the service callback only when the returned string value is not null or empty. Here the problem is getting an exception in the savefiledialog statement "
Quote:
Dialog must be user initiated
"

Quote:
private void Service_Completed(ServiceCompletedEventArgs e)
{
if (e.Result != null)
{
if (string.IsNullOrEmpty(e.Result.Item))
{
MessageBox.Show("Empty Result"));
return;
}

bool? dialogResult = this.dialog.ShowDialog();

if (dialogResult == true)
{
byte[] fileBytes = UTF8Encoding.UTF8.GetBytes(e.Result.Item);

using (Stream stream = (Stream)this.dialog.OpenFile())
{
stream.Write(fileBytes, 0, fileBytes.Length);
stream.Close();
}
}
}
}


Please help me how to troubleshoot this exception in the event handler callback
G Nathan

AnswerRe: MVVM - Unable to use savefiledialog in the service proxy callback Pin
Wes Aday17-Apr-12 1:39
professionalWes Aday17-Apr-12 1:39 
QuestionBusyIndicator with uncommited new row in Datagrid throws exception Pin
AbhijeetB16-Apr-12 1:51
AbhijeetB16-Apr-12 1:51 
AnswerRe: BusyIndicator with uncommited new row in Datagrid throws exception Pin
Mycroft Holmes16-Apr-12 3:20
professionalMycroft Holmes16-Apr-12 3:20 
QuestionHow to overwrite current styles at runtime Pin
Errorrist14-Apr-12 2:44
Errorrist14-Apr-12 2:44 
QuestionLoading image to Stackpanel Pin
pix_programmer13-Apr-12 20:26
pix_programmer13-Apr-12 20:26 
AnswerRe: Loading image to Stackpanel Pin
Abhinav S13-Apr-12 20:48
Abhinav S13-Apr-12 20:48 
GeneralRe: Loading image to Stackpanel Pin
pix_programmer13-Apr-12 21:15
pix_programmer13-Apr-12 21:15 
AnswerRe: Loading image to Stackpanel Pin
Abhinav S14-Apr-12 4:53
Abhinav S14-Apr-12 4:53 
QuestionTabbed page navigation with separated navigation buttons Pin
Antonino Porcino13-Apr-12 8:52
Antonino Porcino13-Apr-12 8:52 
QuestionSet size for all "Window" in project at runtime Pin
Errorrist13-Apr-12 1:37
Errorrist13-Apr-12 1:37 
AnswerRe: Set size for all "Window" in project at runtime Pin
Wes Aday13-Apr-12 3:22
professionalWes Aday13-Apr-12 3:22 
AnswerRe: Set size for all "Window" in project at runtime Pin
Wayne Gaylard13-Apr-12 3:25
professionalWayne Gaylard13-Apr-12 3:25 
AnswerRe: Set size for all "Window" in project at runtime Pin
Errorrist13-Apr-12 8:35
Errorrist13-Apr-12 8:35 
Questioninsert data from excel file into datagrid Pin
MemberDotNetting12-Apr-12 23:23
MemberDotNetting12-Apr-12 23:23 
QuestionRe: insert data from excel file into datagrid Pin
Richard MacCutchan13-Apr-12 0:18
mveRichard MacCutchan13-Apr-12 0:18 
AnswerRe: insert data from excel file into datagrid Pin
MemberDotNetting13-Apr-12 1:45
MemberDotNetting13-Apr-12 1:45 
GeneralRe: insert data from excel file into datagrid Pin
Richard MacCutchan13-Apr-12 2:52
mveRichard MacCutchan13-Apr-12 2:52 

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.