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

Can only base on a Style with target type that is base type 'RadMaskedNumericInput'

2 Answers 458 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 15 Apr 2016, 06:37 PM

I started getting this error after using implicit styles. I am using version 2016.1.217.45

This is my XAML for mumeric input 

<telerik:RadMaskedNumericInput Mask="########" MaskedInput:MaskedInputExtensions.Maximum="99999999" 
                                                               TextMode="PlainText" MaskedInput:MaskedInputExtensions.Minimum="1"
                                                               Width="100" IsClearButtonVisible="False" Value="{Binding Retention}"/>

 

If i go into the Telerik.Windows.Controls.Input.xaml and update this line then the error goes away but then the input control is not displayed at all

    - <Style TargetType="controls:RadMaskedNumericInput" BasedOn="{StaticResource RadMaskedInputBaseStyle}" x:Key="RadMaskedNumericInputStyle">
    + <Style TargetType="controls:RadMaskedNumericInput" x:Key="RadMaskedNumericInputStyle">

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 18 Apr 2016, 07:22 AM
Hi Vikas,

I guess you are using Visual Studio 2015. If yes, you can check this issue described already in our feedback portal. We have submitted a bug report to Miscrosoft between Update 1 and Update 2 of VS 2015. Their reply states that they have scheduled a fix for the next update. You can test whether the issue is reproducible in VS 2015 Update 2, however we will also test our scenarios in the next few weeks and we will update the information in the feedback portal.

Regards,
Petar Mladenov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Vikas
Top achievements
Rank 1
answered on 18 Apr 2016, 01:33 PM
Thanks, Will give that a try.
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Vikas
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Vikas
Top achievements
Rank 1
Share this question
or