Declined
Last Updated: 29 Nov 2022 16:02 by ADMIN
Stenly
Created on: 28 Nov 2022 11:47
Category: Badge
Type: Bug Report
0
Badge: Badge is not visible when the Window has a custom ControlTemplate
When the Window has a custom ControlTemplate, the RadBadge control is not visible.
1 comment
ADMIN
Stenly
Posted on: 29 Nov 2022 16:02

The RadBadge control requires an AdornerLayer, in order to be displayed. When creating a custom ControlTemplate for the Window, you could wrap the root element with an AdornerDecorator instance to apply an AdornerLayer onto its child elements in the visual tree. 

The following code snippet shows a sample implementation of the above logic:

<Window.Template>
    <ControlTemplate TargetType="{x:Type Window}">
        <AdornerDecorator>
            <Grid>
                <ContentPresenter/>
            </Grid>
        </AdornerDecorator>
    </ControlTemplate>
</Window.Template>

Regards,
Stenly
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.