Hello!
I have problems whit ContextMenu inside a TextBox but, when I use the textbox inside a DataFormDataField the items doesn´t appears, just appears "Copy, Paste, Cut", the Textbox whit the contextmenu works perfect when is outside a DataForm, any idea?
Thanks in adnvace
Here some code:
Cheers
I have problems whit ContextMenu inside a TextBox but, when I use the textbox inside a DataFormDataField the items doesn´t appears, just appears "Copy, Paste, Cut", the Textbox whit the contextmenu works perfect when is outside a DataForm, any idea?
Thanks in adnvace
Here some code:
<
Grid
>
<
Grid.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"Styles.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
Grid.Resources
>
<
telerik:RadDataForm
x:Name
=
"DataForm"
>
<
telerik:RadDataForm.ReadOnlyTemplate
>
<
DataTemplate
>
<
TextBox
x:Name
=
"textBox"
Width
=
"200"
ContextMenu
=
"{x:Null}"
VerticalAlignment
=
"Top"
Margin
=
"141,125,176,0"
>
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
x:Name
=
"ContextMenuHugo"
ItemContainerStyle
=
"{StaticResource MenuItemContainer}"
Opening
=
"ContextMenuHugo_OnOpening"
>
</
telerik:RadContextMenu
>
</
telerik:RadContextMenu.ContextMenu
>
</
TextBox
>
</
DataTemplate
>
</
telerik:RadDataForm.ReadOnlyTemplate
>
</
telerik:RadDataForm
>
<
TextBox
x:Name
=
"textBox"
Width
=
"200"
ContextMenu
=
"{x:Null}"
VerticalAlignment
=
"Top"
Margin
=
"141,125,176,0"
>
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
x:Name
=
"ContextMenuHugo"
ItemContainerStyle
=
"{StaticResource MenuItemContainer}"
>
</
telerik:RadContextMenu
>
</
telerik:RadContextMenu.ContextMenu
>
</
TextBox
>
</
Grid
>
Cheers