Click here to Skip to main content
16,006,355 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois24-Mar-11 14:25
professionalKevin Marois24-Mar-11 14:25 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0124-Mar-11 15:10
SledgeHammer0124-Mar-11 15:10 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0124-Mar-11 15:13
SledgeHammer0124-Mar-11 15:13 
GeneralRe: WrapPanel Bound To Collection Pin
Mycroft Holmes24-Mar-11 15:50
professionalMycroft Holmes24-Mar-11 15:50 
GeneralRe: WrapPanel Bound To Collection [modified] Pin
Kim Breugelmans24-Mar-11 20:19
Kim Breugelmans24-Mar-11 20:19 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois25-Mar-11 5:43
professionalKevin Marois25-Mar-11 5:43 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0125-Mar-11 6:32
SledgeHammer0125-Mar-11 6:32 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois25-Mar-11 7:07
professionalKevin Marois25-Mar-11 7:07 
Ok, here's the XAML:

<telerik:RadRadioButton Command="{Binding DataContext.SelectedTemplate,
                            RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}"                        
                        CommandParameter="{Binding}"
                        HorizontalContentAlignment="Center"                        
                        Height="175"                        
                        Width="120"
                        GroupName="TemplateButtons">


and here's the C#:

private ICommand _SelectedTemplate;
public ICommand SelectedTemplate
{
    get
    {
        if (_SelectedTemplate == null)
            _SelectedTemplate = new RelayCommand(SelectedTemplateExecuted, SelectedTemplateCanExecute);

        return _SelectedTemplate;
    }
}

public bool SelectedTemplateCanExecute()
{
    return true;
}
public void SelectedTemplateExecuted()
{
    loadView(InnerViews.Presentations);
}


How/where is the MenuItemData reference passed?
Everything makes sense in someone's mind

GeneralOk Everyone, Here It Is Pin
Kevin Marois25-Mar-11 7:31
professionalKevin Marois25-Mar-11 7:31 
GeneralRe: WrapPanel Bound To Collection Pin
Kim Breugelmans25-Mar-11 7:04
Kim Breugelmans25-Mar-11 7:04 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0125-Mar-11 9:30
SledgeHammer0125-Mar-11 9:30 
QuestionWPF binding to a simple CLR Property? (Visibility=Collapsed) Pin
devvvy23-Mar-11 16:23
devvvy23-Mar-11 16:23 
AnswerRe: WPF binding to a simple CLR Property? (Visibility=Collapsed) Pin
devvvy23-Mar-11 19:42
devvvy23-Mar-11 19:42 
AnswerRe: WPF binding to a simple CLR Property? (Visibility=Collapsed) Pin
Pete O'Hanlon23-Mar-11 23:03
mvePete O'Hanlon23-Mar-11 23:03 
QuestionBook - Silverlight 4 - Problem Design Solution Pin
arkiboys23-Mar-11 2:41
arkiboys23-Mar-11 2:41 
AnswerRe: Book - Silverlight 4 - Problem Design Solution Pin
Mycroft Holmes23-Mar-11 12:20
professionalMycroft Holmes23-Mar-11 12:20 
GeneralRe: Book - Silverlight 4 - Problem Design Solution Pin
arkiboys23-Mar-11 22:31
arkiboys23-Mar-11 22:31 
GeneralRe: Book - Silverlight 4 - Problem Design Solution Pin
Mycroft Holmes23-Mar-11 23:01
professionalMycroft Holmes23-Mar-11 23:01 
Questionproblem in accessing files network folder path. Pin
souravghosh1822-Mar-11 20:31
souravghosh1822-Mar-11 20:31 
AnswerRe: problem in accessing files network folder path. Pin
Pete O'Hanlon22-Mar-11 22:55
mvePete O'Hanlon22-Mar-11 22:55 
QuestionWPF Installation Window needs to be able to run external program Pin
tprice73644 22-Mar-11 8:00
tprice73644 22-Mar-11 8:00 
AnswerRe: WPF Installation Window needs to be able to run external program Pin
Pete O'Hanlon22-Mar-11 22:58
mvePete O'Hanlon22-Mar-11 22:58 
Questionnavigation page vs usercontrol Pin
arkiboys22-Mar-11 6:18
arkiboys22-Mar-11 6:18 
AnswerRe: navigation page vs usercontrol Pin
Pete O'Hanlon22-Mar-11 6:45
mvePete O'Hanlon22-Mar-11 6:45 
GeneralRe: navigation page vs usercontrol Pin
arkiboys22-Mar-11 23:00
arkiboys22-Mar-11 23:00 

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.