There is a small black dot when FlyleafHost is initialized With Collapsed
Closed this issue · 0 comments
Lizhengbo0304 commented
When FlyleafHost is initialized, set Visibility = "Collapsed", and a small black dot will be displayed on the interface. If it is set to Visible and then set to Collapsed again, the interface returns to normal, and the black dot disappears.
<Window
Height="450"
Title="MainWindow"
Width="800"
mc:Ignorable="d"
x:Class="FlyleafTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wpf="clr-namespace:FlyleafLib.Controls.WPF;assembly=FlyleafLib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Button
Click="ButtonBase_OnClick"
Content="1111"
Grid.Row="0" />
<wpf:FlyleafHost
Grid.Row="1"
KeyBindings="Both"
Player="{Binding Player}"
Visibility="Collapsed"
x:Name="FlyleafHost" />
</Grid>
</Window>
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
FlyleafHost.Visibility = FlyleafHost.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;
}