This is a migrated thread and some comments may be shown as answers.

Visual Studio 2015 WPF designer exception

7 Answers 22 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aleksey
Top achievements
Rank 1
Veteran
Iron
Aleksey asked on 14 Dec 2018, 06:49 AM

When I open WPF designer to preview design I always have exception "InvalidOperationException: 'RadComboBox' TargetType does not match type of element 'NumberComboBox'."

I think, we have problem with controls in the Properties window.

7 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 18 Dec 2018, 12:24 PM
Hello Aleksey,

Thank you for the provided image.

We're not sure what is exactly the reason for this issue in the designer. I would ask you to check whether all the referenced Telerik assemblies are of the same version and from the same location? Also is the design folder present together with them? Do you use NoXaml binaries, which theme is set to the Telerik WPF controls? Any additional information you could provide on the setup that you're using will be helpful.  

I am looking forward to your reply.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Aleksey
Top achievements
Rank 1
Veteran
Iron
answered on 19 Dec 2018, 07:45 AM

Hello, Dinko,

I'm using all assemblies of the same version and from the same location, OfficeBlack theme, xaml binaries, location of the assemblies is different than solution folder.

Thank you.

0
Dinko
Telerik team
answered on 20 Dec 2018, 10:52 AM
Hello Aleksey,

Thank you for the additional information.

Could you please share some more details about the exact scenario? Have you applied any custom styles? If you are able to send some sample code reproducing the issue that would be really helpful.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Aleksey
Top achievements
Rank 1
Veteran
Iron
answered on 28 Dec 2018, 07:50 AM

Hello Dinko,

we are using our own custom controls which are based on the Telerik controls like bellow:

<input:InputControlNew x:Class="Framework.Controls.Input.DateBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:input="clr-namespace:Framework.Controls.Input"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
x:Name="_this">
<input:InputControlNew.InternalContent>
<telerik:RadDatePicker x:Name="InternalRadDatePicker"
telerikControls:StyleManager.Theme="Office_BlackTheme"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
VerticalContentAlignment="Center"
Padding="4,0,4,0"
MinWidth="90"
InputMode="{Binding Path=InputMode, ElementName=_this}"
SelectionOnFocus="Default"
DateTimeWatermarkContent=""
HorizontalContentAlignment="{Binding Path=InternalHorizontalContentAlignment, ElementName=_this}"
TextAlignment="{Binding Path=InternalTextAlignment, ElementName=_this}"
TabIndex="{Binding Path=TabIndex, ElementName=_this}"
IsTabStop="{Binding Path=InternalIsTabStop, ElementName=_this}"
IsReadOnly="{Binding Path=InternalIsReadOnly, ElementName=_this}"
SelectedValue="{Binding Path=Value, ElementName=_this, Mode=TwoWay}"
SelectableDateStart="{Binding Path=SelectableDateStart, ElementName=_this}"
SelectableDateEnd="{Binding Path=SelectableDateEnd, ElementName=_this}"/>
</input:InputControlNew.InternalContent>
</input:InputControlNew>

in the Silverlight designer we do not have such problems

0
Dinko
Telerik team
answered on 01 Jan 2019, 10:31 AM
Hi Aleksey,

Thank you for the provided code snippet.

Looking at the code snippet I am not sure what kind of control is InputControlNew. Can you specify which control from our suite is this InputControlNew inheriting?

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Aleksey
Top achievements
Rank 1
Veteran
Iron
answered on 03 Jan 2019, 06:24 AM

Hello Dinko,

Our base control InputControlNew inheriting from System.Windows.Controls.UserControl

0
Dinko
Telerik team
answered on 04 Jan 2019, 01:27 PM
Hi Aleksey,

Thank you for the additional information.

I have created a sample project based on the provided information. You can find it attached to this reply. May I ask you to take a look at this project and let me know what I need to modify, add to reproduce this error on my side.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Aleksey
Top achievements
Rank 1
Veteran
Iron
Answers by
Dinko
Telerik team
Aleksey
Top achievements
Rank 1
Veteran
Iron
Share this question
or