sourcechord / FluentWPF

Fluent Design System for WPF.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting yellow border around app

fredrikscode opened this issue · comments

Just tried out FluentWPF and noticed I get a yellow border around my application window. I tried using AcrylicWindowStyle="None" but that doesn't help. Looked for anyone else describing the same situation on here but couldn't find anyone explicity talking about a yellow border.

Here's my code:

<fw:AcrylicWindow x:Class="LockscreenUI.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:LockscreenUI"
        xmlns:fw="clr-namespace:SourceChord.FluentWPF;assembly=FluentWPF"
        mc:Ignorable="d"
        Title="" 
        Height="1440" 
        Width="5120" 
        WindowStyle="None" 
        Topmost="True"
        AllowsTransparency="True"
        Left="0"
        Top="0" 
        ResizeMode="NoResize"
        FontFamily="Segoe UI Light"
        AcrylicWindowStyle="None">
    <Grid
        Background="#70000000">

        <Grid.ColumnDefinitions>

            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>

        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>

            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="90"/>
            <RowDefinition Height="10"/>

        </Grid.RowDefinitions>
        
        <!-- Left display -->

        <Border Background="#70000000"
                Grid.Column="0"
                Grid.Row="0"/>

        <Border Grid.Column="0"
                Grid.Row="1"
                CornerRadius="20"
                Margin="200"
                BorderThickness="10">

            <Border.Background>

                <ImageBrush Stretch="Fill" ImageSource="/Assets/Images/1.jpeg"/>

            </Border.Background>
            
        </Border>

        <!-- Right display -->

        <Border Background="#70000000"
                Grid.Column="1"
                Grid.Row="0"/>

        <Border Grid.Column="1"
                Grid.Row="1"
                CornerRadius="20"
                Margin="200"
                BorderThickness="10">

            <Border.Background>

                <ImageBrush Stretch="Fill" ImageSource="/Assets/Images/1.jpeg"/>

            </Border.Background>

        </Border>

        <Button Content=""
                Background="Transparent"
                Foreground="Transparent"
                Grid.Row="3"
                Grid.ColumnSpan="3"
                BorderThickness="0" 
                Click="ExitButton_Click"/>


    </Grid>
</fw:AcrylicWindow>
commented

I solved it by setting window border thickness to zero) although my had blue color brder))

I solved it by setting window border thickness to zero) although my had blue color brder))

Thanks, I'll try it out!

Hi @originalodz
AcrylicWindowStyle="None" is not for modify window border color.
Please try BorderThickness="0" as @TMS-Namespace says.

I'll close this issue.
If you have any problems, please reopen this issue.