This question is locked. New answers and comments are not allowed.
Hey,
I recently implemented the Radsplitbutton but it gives an error whenever I open it a second time. Here's the code I used:
Relatively straightforward. 2 items in the context menu that consist of a picture and text and it's all defined in the xaml, nothing bound except the resource strings.Does anyone know why this is happening? The error is as following:
Error HRESULT E_FAIL has been returned from a call to a COM component.
Thanks for your time.
I recently implemented the Radsplitbutton but it gives an error whenever I open it a second time. Here's the code I used:
| <telerik:RadSplitButton |
| x:Name="newButton" |
| IsToggle="True" |
| Width="120" |
| Click="newButton_Click" |
| controls:DockPanel.Dock="Left" |
| HorizontalAlignment="Left" |
| Height="30" |
| > |
| <telerik:RadSplitButton.Content> |
| <StackPanel |
| Orientation="Horizontal"> |
| <Image |
| HorizontalAlignment="Left" |
| Source="/Resources;component/Images/Default/contactperson_24.png" Width="20" /> |
| <TextBlock |
| Text="{Binding button_new_relation, Source={StaticResource resxString}, Mode=OneWay}" |
| HorizontalAlignment="Left" |
| /> |
| </StackPanel> |
| </telerik:RadSplitButton.Content> |
| <telerik:RadSplitButton.DropDownContent> |
| <telerikNavigation:RadContextMenu BorderThickness="0" ItemClick="RadContextMenu_ItemClick"> |
| <telerikNavigation:RadMenuItem |
| Header="{Binding button_new_contact_person, Source={StaticResource resxString}, Mode=OneWay}" Tag="CONTACTPERSON" > |
| <telerikNavigation:RadMenuItem.Icon> |
| <Image Stretch="None" Source="/Resources;component/Images/Default/contactperson_24.png"/> |
| </telerikNavigation:RadMenuItem.Icon> |
| </telerikNavigation:RadMenuItem> |
| <telerikNavigation:RadMenuItem |
| Header="{Binding button_new_contact_company, Source={StaticResource resxString}, Mode=OneWay}" Tag="CONTACTCOMPANY" > |
| <telerikNavigation:RadMenuItem.Icon> |
| <Image Stretch="None" Source="/Resources;component/Images/Default /contactcompany_24.png"/> |
| </telerikNavigation:RadMenuItem.Icon> |
| </telerikNavigation:RadMenuItem> |
| </telerikNavigation:RadContextMenu> |
| </telerik:RadSplitButton.DropDownContent> |
| </telerik:RadSplitButton> |
Relatively straightforward. 2 items in the context menu that consist of a picture and text and it's all defined in the xaml, nothing bound except the resource strings.Does anyone know why this is happening? The error is as following:
Error HRESULT E_FAIL has been returned from a call to a COM component.
Thanks for your time.
