Hello Telerik,
I got a small annoyance wit the telerik radmenu, I've defined my own hyierachicaldatatemplate as
(I use caliburn micro for mvvm pattern)
and I b've defined the radmenu as
The problem I got now is that if I've (as text)
MenuToplevelItem
Voice1 (*)
VoiceLongerThenVoice1
I've to click exacly on Voice 1, if I click where I put (*) it won't call the OpenView() ...same meaning if I click on the left part of the menuitem... it does't work.. how can I style the menuitem in order to a stackpanel/text larger as the largest value?
Thanks
I got a small annoyance wit the telerik radmenu, I've defined my own hyierachicaldatatemplate as
<HierarchicalDataTemplate x:Key="MenuItemTemplate" ItemsSource="{Binding Items}"> <TextBlock Text="{Binding Text}" cal:Message.Attach="[Event PreviewMouseDown] = [Action OpenView($dataContext)]" cal:Action.TargetWithoutContext="{Binding}" /> </HierarchicalDataTemplate>(I use caliburn micro for mvvm pattern)
and I b've defined the radmenu as
<telerik:RadMenu x:Name="MenuList" ClickToOpen="False" BorderBrush="Transparent" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource MenuItemTemplate}"> <telerik:RadMenu.ItemContainerStyle> <Style TargetType="telerik:RadMenuItem"> <Setter Property="Visibility" Value="{Binding IsVisible,Converter={StaticResource booleanConverter}}"></Setter> </Style> </telerik:RadMenu.ItemContainerStyle> <!--ItemsSource="{Binding Items}" ItemTemplate="{StaticResource MenuItemTemplate}"--> </telerik:RadMenu>The problem I got now is that if I've (as text)
MenuToplevelItem
Voice1 (*)
VoiceLongerThenVoice1
I've to click exacly on Voice 1, if I click where I put (*) it won't call the OpenView() ...same meaning if I click on the left part of the menuitem... it does't work.. how can I style the menuitem in order to a stackpanel/text larger as the largest value?
Thanks