Click here to Skip to main content
15,353,841 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 12:33
mvaPete O'Hanlon3-Mar-14 12:33 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 12:48
professionalKevin Marois3-Mar-14 12:48 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois4-Mar-14 7:44
professionalKevin Marois4-Mar-14 7:44 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon5-Mar-14 12:13
mvaPete O'Hanlon5-Mar-14 12:13 
QuestionProblem in wpf prism Pin
Arun kumar Gautam25-Feb-14 20:51
MemberArun kumar Gautam25-Feb-14 20:51 
AnswerRe: Problem in wpf prism Pin
Pete O'Hanlon27-Feb-14 11:41
mvaPete O'Hanlon27-Feb-14 11:41 
QuestionWPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 4:14
professionalDuke Carey25-Feb-14 4:14 
AnswerRe: WPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 7:07
professionalDuke Carey25-Feb-14 7:07 
FWIW - and I have no idea if this is even close to an optimal approach - I found this solution in an old article by Julie Lerman http://msdn.microsoft.com/en-us/magazine/gg983481.aspx[^]
XML
<DataGridTemplateColumn  Header="Category" >
    <DataGridTemplateColumn.CellTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Path=ExpenseCategory}" />
        </DataTemplate>
    </DataGridTemplateColumn.CellTemplate>

    <DataGridTemplateColumn.CellEditingTemplate>
        <DataTemplate>
            <Grid FocusManager.FocusedElement="{Binding ElementName= taskCombo}" >
                <ComboBox x:Name="taskCombo" SelectedItem ="{Binding Path=ExpenseCategory}"
                          IsSynchronizedWithCurrentItem="False"
                          ItemsSource="{Binding ExpTypes, Source={StaticResource vm}}"/>
            </Grid>
        </DataTemplate>
    </DataGridTemplateColumn.CellEditingTemplate>
</DataGridTemplateColumn>


In her article she explains that the Grid FocusManager is used to manage the events when a new row is created and the user's first click is in the combobox.

This approach seems to work OK, but it is far from straightforward and I hope that somebody here has a better solution that would allow the DataGridComboboxColumn to work for me.
GeneralRe: WPF DatagridComboBoxColumn - puzzler Pin
Richard Deeming25-Feb-14 7:25
mveRichard Deeming25-Feb-14 7:25 
GeneralRe: WPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 7:42
professionalDuke Carey25-Feb-14 7:42 
QuestionRestore Avalondock Layout Pin
Letram5924-Feb-14 0:19
MemberLetram5924-Feb-14 0:19 
QuestionDiagonal text input and presentation in WPF Pin
Member 865720222-Feb-14 22:24
MemberMember 865720222-Feb-14 22:24 
AnswerRe: Diagonal text input and presentation in WPF Pin
SledgeHammer0123-Feb-14 8:45
MemberSledgeHammer0123-Feb-14 8:45 
GeneralRe: Diagonal text input and presentation in WPF Pin
Member 865720223-Feb-14 19:01
MemberMember 865720223-Feb-14 19:01 
GeneralRe: Diagonal text input and presentation in WPF Pin
SledgeHammer0124-Feb-14 4:41
MemberSledgeHammer0124-Feb-14 4:41 
GeneralRe: Diagonal text input and presentation in WPF Pin
Member 865720224-Feb-14 9:39
MemberMember 865720224-Feb-14 9:39 
GeneralRe: Diagonal text input and presentation in WPF Pin
SledgeHammer0124-Feb-14 11:53
MemberSledgeHammer0124-Feb-14 11:53 
QuestionTheme Highlighting in XAML Pin
Kevin Marois20-Feb-14 5:09
professionalKevin Marois20-Feb-14 5:09 
QuestionWpf ScrollViewer with non scrollable or partially non scrollable Control Pin
BMicka19-Feb-14 22:06
MemberBMicka19-Feb-14 22:06 
QuestionDataTemplate from a StaticResource Pin
Mycroft Holmes18-Feb-14 18:44
professionalMycroft Holmes18-Feb-14 18:44 
Questionremove double line of ListView Pin
Member 1001614013-Feb-14 1:45
MemberMember 1001614013-Feb-14 1:45 
QuestionWPF Design-Time Headaches Pin
GenJerDan10-Feb-14 10:16
MemberGenJerDan10-Feb-14 10:16 
AnswerRe: WPF Design-Time Headaches Pin
Jason Gleim10-Feb-14 10:34
professionalJason Gleim10-Feb-14 10:34 
GeneralRe: WPF Design-Time Headaches Pin
GenJerDan10-Feb-14 11:10
MemberGenJerDan10-Feb-14 11:10 
GeneralRe: WPF Design-Time Headaches Pin
SledgeHammer0110-Feb-14 12:04
MemberSledgeHammer0110-Feb-14 12:04 

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.