
<telerik:RadMenu Name="radMenu" Visibility="Collapsed" Width="0" Height="0"/>layoutRoot.Background = radMenu.Background;I have some Telerik controls in my XAML. When I load the designer, it throws an exception:
System.Exception
Cannot find resource named 'InvertedBooleanToVisibilityConverter'. Resource names are case sensitive.
at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
I have referenced Telerik.Windows.Controls.dll. Not sure what's causing this as "InvertedBooleanToVisibilityConverter" cannot be found in my source code, but it is indeed present in your WPF examples...
Also, I do have this in my app.xaml:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/System.Windows.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
<telerik:AreaSeries CombineMode="Stack"></telerik:AreaSeries>AreaSeries newSer1 = new AreaSeries();newSer1.Focusable = true;newSer1.ItemsSource = new List<int> { 1, 2, 3 };newSer1.CombineMode = ???string controlName = "PLACEHOLDER_" + getNewId(); // ex. PLACEHOLDER_1string controlTag = getNewTag(); // ex. 100231var button = new RadButton{ Name = controlName, Tag = controlTag, // this tag is used to retrieve custom properties from database Width = 100, Height = 32,};// add the image to contentbutton.Content = this.getCustomUIElementByPlaceholder(message, controlName);button.MouseDoubleClick += SelectPlaceHolder; // event fired when user doubleclick the button// create the UI element// new class with copyable=true overridevar container = new CopyableInlineUIContainer { UiElement = button, Width = button.Width, Height = button.Height, Tag = controlName };// original code // var container = new InlineUIContainer { UiElement = button, Width = button.Width, Height = button.Height, Tag = controlName };// invoke the insert method// Note: editor if a WPF control of type RadRichTextBoxeditor.InsertInline(container);// add a text coomment string sContentComment = "Custom placeholder NAME " + controlName + " TAG " + controlTag;var comment = new Comment(sContentComment) { Name = string.Concat("m", controlTag) };editor.ShowComments = true;var startPosition = editor.Document.CaretPosition;var endPosition = new DocumentPosition(startPosition);startPosition.MoveToCurrentWordStart();endPosition.MoveToCurrentWordEnd();editor.Document.Selection.AddSelectionStart(startPosition);editor.Document.Selection.AddSelectionEnd(endPosition);editor.Document.InsertComment(startPosition, endPosition, comment);