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

WPF

 
GeneralRe: How to delete a row from a datagrid based upon a value from another in WPF Pin
Member 297299227-Jun-11 1:18
Member 297299227-Jun-11 1:18 
GeneralRe: How to delete a row from a datagrid based upon a value from another in WPF Pin
Abhinav S27-Jun-11 6:54
Abhinav S27-Jun-11 6:54 
AnswerRe: How to delete a row from a datagrid based upon a value from another in WPF Pin
Mycroft Holmes26-Jun-11 12:17
professionalMycroft Holmes26-Jun-11 12:17 
GeneralRe: How to delete a row from a datagrid based upon a value from another in WPF Pin
Member 297299227-Jun-11 1:20
Member 297299227-Jun-11 1:20 
GeneralRe: How to delete a row from a datagrid based upon a value from another in WPF Pin
Mycroft Holmes27-Jun-11 2:52
professionalMycroft Holmes27-Jun-11 2:52 
QuestionMVVM: best way to wire up this Command scenario? Pin
SledgeHammer0124-Jun-11 10:29
SledgeHammer0124-Jun-11 10:29 
AnswerRe: MVVM: best way to wire up this Command scenario? Pin
Pete O'Hanlon24-Jun-11 10:37
mvePete O'Hanlon24-Jun-11 10:37 
GeneralRe: MVVM: best way to wire up this Command scenario? Pin
SledgeHammer0124-Jun-11 10:42
SledgeHammer0124-Jun-11 10:42 
QuestionProblem with WPF and removing a row from a datagrid Pin
Member 297299224-Jun-11 10:05
Member 297299224-Jun-11 10:05 
QuestionSearching for a common base class for StackPanel and Control Pin
cethie23-Jun-11 22:15
cethie23-Jun-11 22:15 
AnswerRe: Searching for a common base class for StackPanel and Control Pin
Pete O'Hanlon23-Jun-11 22:51
mvePete O'Hanlon23-Jun-11 22:51 
AnswerRe: Searching for a common base class for StackPanel and Control Pin
Abhinav S23-Jun-11 23:44
Abhinav S23-Jun-11 23:44 
AnswerRe: Searching for a common base class for StackPanel and Control Pin
Mark Salsbery24-Jun-11 5:58
Mark Salsbery24-Jun-11 5:58 
QuestionWPF MVVM ListBox Basics Pin
Member 450279423-Jun-11 2:13
Member 450279423-Jun-11 2:13 
AnswerRe: WPF MVVM ListBox Basics Pin
SledgeHammer0123-Jun-11 9:55
SledgeHammer0123-Jun-11 9:55 
GeneralRe: WPF MVVM ListBox Basics Pin
Member 450279424-Jun-11 1:36
Member 450279424-Jun-11 1:36 
GeneralRe: WPF MVVM ListBox Basics Pin
SledgeHammer0124-Jun-11 4:59
SledgeHammer0124-Jun-11 4:59 
QuestionMVVM: TreeViewItem double click -> command? Pin
SledgeHammer0122-Jun-11 12:44
SledgeHammer0122-Jun-11 12:44 
AnswerRe: MVVM: TreeViewItem double click -> command? Pin
Pete O'Hanlon22-Jun-11 17:24
mvePete O'Hanlon22-Jun-11 17:24 
GeneralRe: MVVM: TreeViewItem double click -> command? Pin
SledgeHammer0122-Jun-11 17:38
SledgeHammer0122-Jun-11 17:38 
GeneralRe: MVVM: TreeViewItem double click -> command? Pin
Pete O'Hanlon22-Jun-11 21:09
mvePete O'Hanlon22-Jun-11 21:09 
GeneralRe: MVVM: TreeViewItem double click -> command? Pin
SledgeHammer0123-Jun-11 6:49
SledgeHammer0123-Jun-11 6:49 
Hmm... this doesn't actually work. Unless I'm missing something obvious.

<TreeView ItemsSource="{Binding StateCountyItems}" FocusVisualStyle="{x:Null}" BorderThickness="0,0,0,0">
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Value}">
<TextBlock Text="{Binding Key}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseDoubleClick">
<i:InvokeCommandAction CommandName="Test" />
</i:EventTrigger>
</i:Interaction.Triggers>
</TextBlock>
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
</TreeView>

My ViewModel has:

public RelayCommand Test
{
get
{
if (_test == null)
_test = new RelayCommand(t);

return _test;
}
}

private void t()
{
}

With that XAML exactly, the Test getter is never even called. I changed CommandName to Command="{Binding ElementName=g, Path=DataContext.Test}"

g is the window that has its DataContext set... I'll of course clean up the names later lol... when I change it to that, NOW the Test getter is called, BUT void t() is never called when I double click.

any ideas?
GeneralRe: MVVM: TreeViewItem double click -> command? Pin
SledgeHammer0123-Jun-11 6:57
SledgeHammer0123-Jun-11 6:57 
GeneralRe: MVVM: TreeViewItem double click -> command? Pin
Pete O'Hanlon23-Jun-11 7:01
mvePete O'Hanlon23-Jun-11 7:01 
GeneralRe: MVVM: TreeViewItem double click -> command? Pin
SledgeHammer0123-Jun-11 7:13
SledgeHammer0123-Jun-11 7:13 

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.