Window is having a border after removing default appbar
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When I use UiWindow instead of Window, it shows two app bars, and to remove the default one, I used this line.
WindowStyle="None" what does remove the default app bar, but now the window has a border like this How can I remove it?
My Code
<ui:UiWindow x:Class="tes1.MainWindow"
.......
WindowStyle="None"
ResizeMode="CanResizeWithGrip"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:PJ_Tools_tes1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!--<ui:NavigationView Grid.Row="1"/>-->
</Grid>
</ui:UiWindow>
To Reproduce
Use UIWindow instead of Window
Expected behavior
I was hopping UIWindow will override the default window and will also replace the default Appbar with UIAppbar
Screenshots

OS version
Edition: Windows 11 Pro
version: 22H2
.NET version
.Net 6
WPF-UI NuGet version
2.0.3
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the UiWindow XAML shown in the report, using WindowStyle="None" and ResizeMode="CanResizeWithGrip" on Windows 11. Compare the resulting border with a standard Window and determine how the custom app bar and window resizing should coexist; done means the default app bar is removed without leaving the unwanted border.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100