NoXaml dll's and TextBoxStyle don't play well together

4 posts, 0 answers
  1. Michel Cossette
    Michel Cossette avatar
    2 posts
    Member since:
    Feb 2010

    Posted 11 Dec 2015 Link to this post

    Hi, since we have moved from the 'regular' binaries to the noxaml ones, I have discovered that the RadAutoCompleteBox is not behaving as before. In the control's style we set TextBoxStyle property to mainly force the CharacterCasing to upper and set a few other properties. With the 'regular' binaries all worked well as expected. But now, with the noxaml, the caret is not being displayed and neither is the Watermark, if I remove the TextBoxStyle both are displayed but the searchtext is in lower case which causes the search to fail to find the correct items. Can you confirm this on your side? We're using v2015.3.930.40 and targeting .net 4.0. I have a small sample app to demonstrate the issue if needed.

    Thank you.

     

     
     
  2. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 14 Dec 2015 Link to this post

    Hi Michael,

    Using the provided description we tried to reproduce the observed by you behavior but it seems everything is working as expected on our side. Please, check the attached video that demonstrates that and let us know if we didn't miss something.

    Please, check if you based your custom TextBoxStyle to the default one as shown below:
    <Style TargetType="telerik:RadWatermarkTextBox" x:Key="CustomTextBoxStyle" BasedOn="{StaticResource RadAutoCompleteTextBoxStyle}">
        <Setter Property="CharacterCasing" Value="Upper"/>
    </Style>
    <Style TargetType="telerik:RadAutoCompleteBox" BasedOn="{StaticResource RadAutoCompleteBoxStyle}">
        <Setter Property="TextBoxStyle" Value="{StaticResource CustomTextBoxStyle}"/>
    </Style>

    When using Implicit Styles and NoXaml binaries if your default Style is not based on the default one some unexpected behavior could be observed as in your case.

    If that does not work for you and you continue to observe the issue, please send us the sample that reproduces the issue and we will provide you with a prompt solution.

    Hope this helps.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Michel Cossette
    Michel Cossette avatar
    2 posts
    Member since:
    Feb 2010

    Posted 14 Dec 2015 Link to this post

    Hi Nasko,

    Thanks for the quick reply, I can confirm that the fix you've suggested works. We usually base the style of telerik's controls on their type rather than on the style in your theme xaml files, so I modified your fix a little. Here is the setter for the TextBoxStyle inside the style that targets the RadAutoCompleteBox:

    <Setter Property="TextBoxStyle">
        <Setter.Value>
            <Style TargetType="{x:Type telerik:RadWatermarkTextBox}" BasedOn="{StaticResource {x:Type telerik:RadWatermarkTextBox}}">
                <Setter Property="CharacterCasing" Value="Upper"/>
                <Setter Property="BorderThickness" Value="0" />
                <Setter Property="Margin" Value="1,2,0,0" />
            </Style>
        </Setter.Value>
    </Setter>


     
  5. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 15 Dec 2015 Link to this post

    Hello Michel,

    I am really glad to hear the proposed approach worked for you and now everything is visualized as expected.

    If you have any additional questions or concerns regarding Telerik controls, please let us know.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top