This question is locked. New answers and comments are not allowed.
I have a WPF project which uses GanttView that I am trying to convert to SL, and I need to display a RadContextMenu in the GanttView.
In WPF, the contextmenu is added in a style definition for targettype Telerik:EventContainer. (see code below).
Unfortunately, this doesn't work in Silverlight. Is there any way to add a context menu to the GanttView?
Also, since Style.Triggers don't work either, how can I add a DropShadowEffect to the Telerik:RelationContainer?
I've been stuck on this for 2 days, so any help would be greatly appreciated. Thanks.
In WPF, the contextmenu is added in a style definition for targettype Telerik:EventContainer. (see code below).
<Style TargetType="Telerik:EventContainer"> <Setter Property="Height" Value="{Binding OriginalEvent.TaskHeight}" /> <Setter Property="Margin" Value="0,2,0,2" /> <Setter Property="Telerik:RadContextMenu.ContextMenu"> <Setter.Value> <Telerik:RadContextMenu > <Telerik:RadMenuItem Header="Copy Graph" Tag="Gantt" Click="ContextMenuCopy_Click"> <Telerik:RadMenuItem.Icon> <Image Source="/Silverlight;component/Resources/Images/48x48/CopyImage.png" Width="16" Height="16" /> </Telerik:RadMenuItem.Icon> </Telerik:RadMenuItem> <Telerik:RadMenuItem IsSeparator="True"/> </Telerik:RadContextMenu> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Effect"> <Setter.Value> <DropShadowEffect /> </Setter.Value> </Setter> </Trigger> </Style.Triggers></Style>Unfortunately, this doesn't work in Silverlight. Is there any way to add a context menu to the GanttView?
Also, since Style.Triggers don't work either, how can I add a DropShadowEffect to the Telerik:RelationContainer?
I've been stuck on this for 2 days, so any help would be greatly appreciated. Thanks.