Click here to Skip to main content
15,884,849 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF Path Pin
Kevin Marois20-Mar-12 8:44
professionalKevin Marois20-Mar-12 8:44 
AnswerRe: WPF Path Pin
Pete O'Hanlon20-Mar-12 11:42
mvePete O'Hanlon20-Mar-12 11:42 
GeneralRe: WPF Path Pin
Kevin Marois20-Mar-12 11:44
professionalKevin Marois20-Mar-12 11:44 
GeneralRe: WPF Path Pin
Kevin Marois20-Mar-12 11:56
professionalKevin Marois20-Mar-12 11:56 
GeneralRe: WPF Path Pin
Pete O'Hanlon20-Mar-12 12:23
mvePete O'Hanlon20-Mar-12 12:23 
AnswerRe: WPF Path Pin
Abhinav S21-Mar-12 4:13
Abhinav S21-Mar-12 4:13 
QuestionBind To Command On ViewModel Pin
Kevin Marois19-Mar-12 13:46
professionalKevin Marois19-Mar-12 13:46 
AnswerRe: Bind To Command On ViewModel Pin
Pete O'Hanlon20-Mar-12 5:28
mvePete O'Hanlon20-Mar-12 5:28 
One of the wonderful thing about WPF is that Command properties can bind to any class that implements ICommand. Typical examples are Josh Smith's RelayCommand or PRISMs DelegateCommand. Suppose that you have RelayCommand, then you would hook it up like this:
C#
private RelayCommand selectionToggleCommand;
public RelayCommand SelectionToggleCommand
{
  get
  {
    if (selectionToggleCommand == null)
    {
      selectionToggleCommand = new RelayCommand(SelectToggle, CanSelectToggle);
    }
    return selectionToggleCommand;
  }
}

private void SelectToggle(object o)
{
}

private bool CanSelectToggle(object o)
{
  return true;
}

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


GeneralRe: Bind To Command On ViewModel Pin
Kevin Marois20-Mar-12 5:55
professionalKevin Marois20-Mar-12 5:55 
GeneralRe: Bind To Command On ViewModel Pin
Pete O'Hanlon20-Mar-12 6:05
mvePete O'Hanlon20-Mar-12 6:05 
Questionslverlight 3.0 Pin
manivinof519-Mar-12 1:47
manivinof519-Mar-12 1:47 
AnswerRe: slverlight 3.0 Pin
Richard MacCutchan19-Mar-12 1:50
mveRichard MacCutchan19-Mar-12 1:50 
GeneralRe: slverlight 3.0 Pin
manivinof519-Mar-12 1:54
manivinof519-Mar-12 1:54 
GeneralRe: slverlight 3.0 Pin
Pete O'Hanlon19-Mar-12 2:00
mvePete O'Hanlon19-Mar-12 2:00 
GeneralRe: slverlight 3.0 Pin
manivinof519-Mar-12 2:05
manivinof519-Mar-12 2:05 
AnswerRe: slverlight 3.0 Pin
Abhinav S21-Mar-12 4:16
Abhinav S21-Mar-12 4:16 
QuestionComponenetOne Flexgrid for WPF as user control Pin
Greeshma M J19-Mar-12 1:20
Greeshma M J19-Mar-12 1:20 
QuestionJust a stray thought Pin
Mycroft Holmes18-Mar-12 15:22
professionalMycroft Holmes18-Mar-12 15:22 
AnswerRe: Just a stray thought Pin
Paul Daniel Ruston19-Mar-12 9:32
Paul Daniel Ruston19-Mar-12 9:32 
GeneralRe: Just a stray thought Pin
Mycroft Holmes19-Mar-12 12:53
professionalMycroft Holmes19-Mar-12 12:53 
QuestionRestore object's properties using XAMLReader Pin
Tryxo17-Mar-12 18:41
Tryxo17-Mar-12 18:41 
QuestionHow to Fill a shape with vertical and/or horizontal lines Pin
Tryxo17-Mar-12 17:14
Tryxo17-Mar-12 17:14 
AnswerRe: How to Fill a shape with vertical and/or horizontal lines Pin
Abhinav S18-Mar-12 20:11
Abhinav S18-Mar-12 20:11 
GeneralRe: How to Fill a shape with vertical and/or horizontal lines Pin
Tryxo23-Mar-12 10:58
Tryxo23-Mar-12 10:58 
QuestionWPF ViewModel - Saving user Preferences Pin
Kevin Marois17-Mar-12 11:49
professionalKevin Marois17-Mar-12 11:49 

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.