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

WPF

 
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 
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 
Hi,
In my View
I have a datagrid and a 'Undo' button. On 'Undo' I am showing a BusyIndicator.
Suppose,
1) I try to add a new row in the datagrid
2) Datagrid row goes into the error state because of some validation failure
3) While datagrid is in edit mode, without loosing focus on the datagrid, I presses a shortcut 'Ctrl+Z' to Undo changes

Following exception occurs:-
System.Windows.Media.Animation.AnimationException: Cannot animate the 'IsEnabled' property on a 'System.Windows.Controls.ContentControl' using a 'System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames'. For details see the inner exception. ---> System.InvalidOperationException: 'NewItemPlaceholderPosition' is not allowed during a transaction begun by 'AddNew'.

Actually on DataGrid LostkeyboardFocus i explicitly CommitEdit and CommitNew for the datagrid. So, if I press the 'Undo' button with mouse everything works fine.

But if I presses a shortcut while datagrid is in edit mode and focus is still in the datagrid, then the BusyIndicator, while setting status to BUSY, tries to change IsEnabled of the datagrid and the exception occurs.

Please help me if anyone has a solution
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 
GeneralRe: insert data from excel file into datagrid Pin
MemberDotNetting13-Apr-12 4:28
MemberDotNetting13-Apr-12 4:28 
AnswerRe: insert data from excel file into datagrid Pin
Bernhard Hiller13-Apr-12 0:31
Bernhard Hiller13-Apr-12 0:31 

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.