Click here to Skip to main content
15,920,111 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Disable button from one control in another control Pin
nitin_ion20-Apr-12 3:53
nitin_ion20-Apr-12 3:53 
AnswerRe: Disable button from one control in another control Pin
dhirajonnet27-Apr-12 2:24
professionaldhirajonnet27-Apr-12 2:24 
QuestionNo fields in XamDataGrid Pin
Ignaton19-Apr-12 23:00
Ignaton19-Apr-12 23:00 
AnswerRe: No fields in XamDataGrid Pin
Mycroft Holmes20-Apr-12 13:32
professionalMycroft Holmes20-Apr-12 13:32 
GeneralRe: No fields in XamDataGrid Pin
Ignaton22-Apr-12 18:16
Ignaton22-Apr-12 18:16 
Questionwcf Pin
heba abu ghaleih22 19-Apr-12 9:38
heba abu ghaleih22 19-Apr-12 9:38 
AnswerRe: wcf Pin
Abhinav S19-Apr-12 16:05
Abhinav S19-Apr-12 16:05 
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 

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.