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

WPF

 
QuestionHow to delete a row from a datagrid based upon a value from another in WPF Pin
Member 297299224-Jun-11 11:28
Member 297299224-Jun-11 11:28 
AnswerRe: How to delete a row from a datagrid based upon a value from another in WPF Pin
Abhinav S26-Jun-11 7:28
Abhinav S26-Jun-11 7:28 
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 
I have a MVVM application that has a MainWindow.xaml that defines the main window. The main window has a ribbon control and a tabbed MDI interface similiar to Visual Studio. The tabs are implemented in UserControl.xaml. So, obviously, I can have a bunch of UserControl instances.

Now, I want to add a button to the ribbon, but the button is going to operate on the active UserControl.xaml view model.

So the question is what is the best way to wire that up?

I have a few ideas, but they all seem bad.

1) have a static command class that defines the ICommands and somehow map that into the command bindings of the view and redirect into the VM. Not really sure how all that is going to wire up.

2) have UserControlVM expose a static command that takes an instance as the param and have MainWindow.xaml bind the button to that static command and pass in the active window.

Any other ideas?
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 
GeneralRe: MVVM: TreeViewItem double click -> command? Pin
SledgeHammer0123-Jun-11 6:57
SledgeHammer0123-Jun-11 6:57 

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.