CheckBoxControl not visible WPF .NET 8.0

1 Answer 52 Views
General Discussions RichTextBox
Lou
Top achievements
Rank 1
Lou asked on 10 Jan 2025, 03:47 PM

I have a new WPF application, one that I am updating from Framework to Core.   Everything has been converted and working properly except for one thing: the CheckBoxControl controls are not displaying.  All other controls, including things like RadButton are RadGridView, are all displaying and working perfectly.    I deleted the BIN and OBJ folders and cleaned the project, no change.   

If I change the code to use the standard WPF CheckBox control everything works correctly.

The main project of the solution has this inside it's project file:

    <PackageReference Include="Telerik.UI.for.Wpf.80.Xaml" Version="2024.4.1213" />
    <PackageReference Include="Telerik.Windows.Themes.Crystal.for.Wpf" Version="2024.4.1213" />

I have other projects in the solution that have working Telerik controls (except for the CheckBoxControl) that contain this in their project files:

    <PackageReference Include="Telerik.UI.for.Wpf.80.Xaml" Version="2024.4.1213" />

in the xaml form:

<telerik:CheckBoxControl Grid.Row="5" Grid.Column="0" Name="ChkCustomProcess"  HorizontalAlignment="Right" VerticalAlignment="Center"  Margin="5" />

// I have tried this with and without binding to the IsChecked property.

Everything else works fine, including the theming, except for the invisible CheckBox Control.   IntelliSense works in the editor; no compilation errors or warnings.

I am using the NuGet packages from Telerik.  There are no pending updates. I am not referencing any NoXaml packages.

It's probably something simple I am missing. Any thoughts and ideas would be greatly appreciated.

Thanks,
Lou

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 13 Jan 2025, 12:19 PM

Hello Lou,

If the CheckBoxControl (part of RadRichTextBoxUI) is missing that probably means а NoXaml dll sneaked somewhere in the project. In this case, the Telerik.Windows.Controls.RichTextBox.dll should be the culprit. Can you double check this? You can do that by checking the Properties of the .dll file in the "bin" folder of your application's project. It shouldn't contain ("No Xaml)" in its "File description".

Also, if you use the nuget packages with the Xaml dlls, you don't need the theme package (Telerik.Windows.Themes.Crystal.for.Wpf). I would recommend you to remove if it if there is no a specific need for it, because it might replace the Telerik.Windows.Controls.dll with its NoXaml variant (which is installed with the theme package).

Additional to that, you can check the following article that covers the possible issues where a Telerik control is not displayed.

If this information doesn't help, would it be possible to send over a sample project showing the problem? This will allow me to test it and see what exactly happens.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Lou
Top achievements
Rank 1
commented on 13 Jan 2025, 11:21 PM

Hello Martin,

Thanks for the reply.  I believe there was a NoXaml control being referenced.   Now that I think about it, it it may have started when I upgraded from XPF,7.0 to XPF,8.0.   After spelunking around in the NuGet packages I have everything working again.

Thanks for the assist,
Lou

Martin Ivanov
Telerik team
commented on 14 Jan 2025, 09:06 AM

Hi Lou, great to hear that you've managed to resolve the problem. And also thanks for sharing that with me.
Tags
General Discussions RichTextBox
Asked by
Lou
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or