Click here to Skip to main content
15,358,603 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to localize a DatePicker? Pin
Mycroft Holmes28-Mar-12 21:54
professionalMycroft Holmes28-Mar-12 21:54 
QuestionAnother Expander Style Question Pin
Kevin Marois27-Mar-12 8:14
professionalKevin Marois27-Mar-12 8:14 
AnswerRe: Another Expander Style Question Pin
Mycroft Holmes27-Mar-12 12:57
professionalMycroft Holmes27-Mar-12 12:57 
GeneralRe: Another Expander Style Question Pin
SledgeHammer0127-Mar-12 13:21
MemberSledgeHammer0127-Mar-12 13:21 
GeneralRe: Another Expander Style Question Pin
Mycroft Holmes27-Mar-12 14:12
professionalMycroft Holmes27-Mar-12 14:12 
AnswerRe: Another Expander Style Question Pin
SledgeHammer0127-Mar-12 13:20
MemberSledgeHammer0127-Mar-12 13:20 
GeneralRe: Another Expander Style Question Pin
Kevin Marois27-Mar-12 13:24
professionalKevin Marois27-Mar-12 13:24 
QuestionUnable to catch Key.Down in a combox with applied style Pin
George Nistor26-Mar-12 23:31
MemberGeorge Nistor26-Mar-12 23:31 
Hi
I use a ComboBox style (the style from msdn example), but I customized it to replace the standard popup with a datagrid.

The problem I have is I can't catch Key.Down with the event handler PreviewKeyDown.
The comboBox is defined with the style described.

It has to do with the template style applied on the comboBox.
Somehow the keydown is caught by the combobox, because I see for few ms the ItemBinding path in the textBox, but it is not caught in the code.

I have tried also to put in style somthing like with no success.
HTML
<EventSetter Event="PreviewKeyDown" Handler="OnPreviewKeyDown" />


any ideas how to solve it?

Is it possible to use my comboBox declared in xaml and override OnPreviewKeyDown in the code behind?

HTML
<ComboBox Name="comboBoxFunctions" 
                                          Style="{DynamicResource ComboBoxStyleDataGridMethods}" 
                                          Height="23" HorizontalAlignment="Left" Margin="6,26,0,0"
                                          IsEditable="true"
                                          VerticalAlignment="Top" Width="231" 
                                          IsDropDownOpen="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Gui:BuildCommandWindow}}, Path=IsDropDownOpened }" 
                                          KeyUp="ComboBoxFunctionsKeyUp" 
                                          PreviewKeyUp="ComboBoxFunctionsPreviewKeyUp" 
                                          IsTextSearchEnabled="False" />


modified 27-Mar-12 11:54am.

QuestionWPF Styling/Templating Problem Pin
Kevin Marois26-Mar-12 14:14
professionalKevin Marois26-Mar-12 14:14 
AnswerRe: WPF Styling/Templating Problem Pin
Abhinav S26-Mar-12 15:21
MemberAbhinav S26-Mar-12 15:21 
GeneralRe: WPF Styling/Templating Problem Pin
Kevin Marois27-Mar-12 6:17
professionalKevin Marois27-Mar-12 6:17 
Questionhow to design Bubble chart with Datapoints like Piechart Pin
Tryxo26-Mar-12 12:11
MemberTryxo26-Mar-12 12:11 
QuestionMerge cells in C1Flexgrid for WPF Pin
Greeshma M J25-Mar-12 22:42
MemberGreeshma M J25-Mar-12 22:42 
AnswerRe: Merge cells in C1Flexgrid for WPF Pin
Pete O'Hanlon26-Mar-12 0:06
mvaPete O'Hanlon26-Mar-12 0:06 
QuestionXamDataGrid columns Pin
michaelgr125-Mar-12 22:22
Membermichaelgr125-Mar-12 22:22 
GeneralRe: XamDataGrid columns Pin
michaelgr126-Mar-12 7:03
Membermichaelgr126-Mar-12 7:03 
Questionwpf main container Pin
MemberDotNetting24-Mar-12 10:12
MemberMemberDotNetting24-Mar-12 10:12 
AnswerRe: wpf main container Pin
Mycroft Holmes24-Mar-12 13:25
professionalMycroft Holmes24-Mar-12 13:25 
AnswerRe: wpf main container Pin
Abhinav S24-Mar-12 15:54
MemberAbhinav S24-Mar-12 15:54 
GeneralRe: wpf main container Pin
MemberDotNetting30-Mar-12 22:24
MemberMemberDotNetting30-Mar-12 22:24 
Questioncombining a textblock and textblock into one control Pin
Sutton Mehaffey23-Mar-12 19:58
MemberSutton Mehaffey23-Mar-12 19:58 
AnswerRe: combining a textblock and textblock into one control Pin
Mycroft Holmes23-Mar-12 21:58
professionalMycroft Holmes23-Mar-12 21:58 
GeneralRe: combining a textblock and textblock into one control Pin
Abhinav S24-Mar-12 0:10
MemberAbhinav S24-Mar-12 0:10 
GeneralRe: combining a textblock and textblock into one control Pin
Sutton Mehaffey24-Mar-12 5:37
MemberSutton Mehaffey24-Mar-12 5:37 
GeneralRe: combining a textblock and textblock into one control Pin
Mycroft Holmes24-Mar-12 13:23
professionalMycroft Holmes24-Mar-12 13:23 

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.