Hi,
I have a list of tabs (binding on a collection)
in each tab I have a control with a command.
Problem is command doesn't seem to work, it never launches.
Here's a simple examble that works :
<telerik:RadTabControl >
<telerik:RadTabItem Header="Test">
<Button Content="Test" Command="{Binding CharacteristicMenu}" CommandParameter="Add" />
</telerik:RadTabItem>
</telerik:RadTabControl>
and here's one close to what I want to do that doesn't work :
<telerik:RadTabControl ItemsSource="{Binding Tabs}">
<telerik:RadTabControl.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Path=Name.Text, Mode=TwoWay}" />
</StackPanel>
</DataTemplate>
</telerik:RadTabControl.ItemTemplate>
<telerik:RadTabControl.ContentTemplate>
<DataTemplate>
<Grid>
<StackPanel>
<Button Content="Test" Command="{Binding CharacteristicMenu}" CommandParameter="Add" />
</StackPanel>
</Grid>
</DataTemplate>
</telerik:RadTabControl.ContentTemplate>
</telerik:RadTabControl>
I can't seem to make the commands works inside a datatemplate. I need to get commands to work with a button and with your contextuelmenu.
Is it a limitation of the tabcontrol or something? I tried a radbutton instead of button with no success (which wouldn't of fixed the problem with a contextuelmenu anyway).
Thanks
Dom
I have a list of tabs (binding on a collection)
in each tab I have a control with a command.
Problem is command doesn't seem to work, it never launches.
Here's a simple examble that works :
<telerik:RadTabControl >
<telerik:RadTabItem Header="Test">
<Button Content="Test" Command="{Binding CharacteristicMenu}" CommandParameter="Add" />
</telerik:RadTabItem>
</telerik:RadTabControl>
and here's one close to what I want to do that doesn't work :
<telerik:RadTabControl ItemsSource="{Binding Tabs}">
<telerik:RadTabControl.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Path=Name.Text, Mode=TwoWay}" />
</StackPanel>
</DataTemplate>
</telerik:RadTabControl.ItemTemplate>
<telerik:RadTabControl.ContentTemplate>
<DataTemplate>
<Grid>
<StackPanel>
<Button Content="Test" Command="{Binding CharacteristicMenu}" CommandParameter="Add" />
</StackPanel>
</Grid>
</DataTemplate>
</telerik:RadTabControl.ContentTemplate>
</telerik:RadTabControl>
I can't seem to make the commands works inside a datatemplate. I need to get commands to work with a button and with your contextuelmenu.
Is it a limitation of the tabcontrol or something? I tried a radbutton instead of button with no success (which wouldn't of fixed the problem with a contextuelmenu anyway).
Thanks
Dom