簡體   English   中英

設置 AllowTransparency="False" 時,Telerik Radwindow 渲染不完整

[英]Telerik Radwindow render incompletely when setting AllowTransparency="False"

我有一個關於 radwindow 渲染的問題。

當我設置 AllowTransparency="False" 和 ShowInTaskbar="True" 時,我通過單擊任務欄圖標來切換窗口,只是渲染 Windows 標題和其他部分的窗口被隱藏。 我必須拖動或調整它的大小才能恢復。

完整的窗口: 完整的窗口 不完整的窗口: 不完整的窗口

因此,如果我設置 AllowTransparency = True 將解決它,但拖動它時窗口會變慢。

Telerik 版本為 2019.3.1023.300,dotnet 版本:3.1,windows 操作系統:windown 10 1903

RadWindow 代碼:

<telerik:RadWindow x:Class="TelerikTest.MainWindow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:local="clr-namespace:TelerikTest"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
                   mc:Ignorable="d"
                   Width="1024"
                   Height="768"
                   MinWidth="800"
                   MinHeight="600"
                   WindowStartupLocation="CenterScreen"
                   navigation:RadWindowInteropHelper.AllowTransparency="False"
                   navigation:RadWindowInteropHelper.ShowInTaskbar="True"
                   >
    <telerik:RadWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/System.Windows.xaml" />
                <ResourceDictionary
                    Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </telerik:RadWindow.Resources>

    <telerik:RadWindow.Style>
        <StaticResource ResourceKey="RadWindowStyle" />
    </telerik:RadWindow.Style>
    <Grid>

    </Grid>
</telerik:RadWindow>

這是 RadWindow 控件中的一個錯誤。 它沒有在發行說明中標記,但它已在用於 WPF 的 Telerik UI 的 R1 2020 版本(版本 2020.1.115)中修復。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM