Click here to Skip to main content
15,888,527 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF Formatted Large Amounts Of Text Pin
Matt T Heffron23-May-13 15:18
professionalMatt T Heffron23-May-13 15:18 
GeneralRe: WPF Formatted Large Amounts Of Text Pin
Kevin Marois24-May-13 11:09
professionalKevin Marois24-May-13 11:09 
QuestionDatePicker in a WPF DataGrid Pin
NortonC23-May-13 4:29
NortonC23-May-13 4:29 
Questionabout datagrid of wpf Pin
ericibm22-May-13 22:22
ericibm22-May-13 22:22 
AnswerRe: about datagrid of wpf Pin
Mycroft Holmes23-May-13 0:21
professionalMycroft Holmes23-May-13 0:21 
QuestionSilverlight-Running SQL scripts Pin
picasso222-May-13 8:06
picasso222-May-13 8:06 
QuestionHow to trigger Datepicker validation error (WPF) Pin
TheHelenLee20-May-13 15:39
TheHelenLee20-May-13 15:39 
QuestionWPF Control - Enter Key Pin
NortonC20-May-13 4:45
NortonC20-May-13 4:45 
I have a WPF C# control that is being used inside a Dynamics AX application. I have set my code in WPF to handle the ENTER key as follows:

private void Datagrid_PreviewKeyDown(object sender, KeyEventArgs e)
{
switch (e.Key)
{
case Key.Enter:
{
// Code here that moves focus to the next cell

e.Handled = true;
break;
}

What is happening, is that when I press the ENTER key the control loses focus and goes out to the next control in AX.

Any way of preventing this, and leaving focus in the grid?

Thanks in advance.
AnswerRe: WPF Control - Enter Key Pin
Mycroft Holmes20-May-13 12:31
professionalMycroft Holmes20-May-13 12:31 
AnswerRe: WPF Control - Enter Key Pin
AlphaDeltaTheta20-May-13 15:12
AlphaDeltaTheta20-May-13 15:12 
GeneralRe: WPF Control - Enter Key Pin
NortonC20-May-13 23:38
NortonC20-May-13 23:38 
GeneralRe: WPF Control - Enter Key Pin
AlphaDeltaTheta21-May-13 14:38
AlphaDeltaTheta21-May-13 14:38 
QuestionMVVM vs. MVVMP Pin
sthotakura20-May-13 0:45
sthotakura20-May-13 0:45 
AnswerRe: MVVM vs. MVVMP Pin
SledgeHammer0120-May-13 5:01
SledgeHammer0120-May-13 5:01 
AnswerRe: MVVM vs. MVVMP Pin
Abhinav S24-May-13 22:11
Abhinav S24-May-13 22:11 
QuestionDatabinding a ListBox using MVVM light (Windows Phone) Pin
jockey4her19-May-13 12:30
jockey4her19-May-13 12:30 
AnswerRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
AlphaDeltaTheta19-May-13 14:51
AlphaDeltaTheta19-May-13 14:51 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
jockey4her19-May-13 15:42
jockey4her19-May-13 15:42 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
AlphaDeltaTheta19-May-13 16:08
AlphaDeltaTheta19-May-13 16:08 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
jockey4her19-May-13 17:07
jockey4her19-May-13 17:07 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
AlphaDeltaTheta20-May-13 15:08
AlphaDeltaTheta20-May-13 15:08 
QuestionWPF datagrid text alignment in columns Pin
elelont216-May-13 23:53
elelont216-May-13 23:53 
AnswerRe: WPF datagrid text alignment in columns Pin
Pete O'Hanlon17-May-13 0:33
mvePete O'Hanlon17-May-13 0:33 
GeneralRe: WPF datagrid text alignment in columns Pin
elelont217-May-13 2:16
elelont217-May-13 2:16 
GeneralRe: WPF datagrid text alignment in columns Pin
Pete O'Hanlon17-May-13 2:31
mvePete O'Hanlon17-May-13 2: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.