Skip to content

Commit

Permalink
perf: WPF-UI 3.0.3 -> 3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraZiling committed Apr 14, 2024
1 parent 92e28ce commit 176ae58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/PipManager/Views/Windows/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,18 @@
Grid.RowSpan="2"
x:Name="RootContentDialog" />

<!-- TODO: Wait merge https://github.com/lepoco/wpfui/pull/1017 -->
<ui:TitleBar
CloseWindowByDoubleClickOnIcon="True"
Grid.Row="0"
Title="{Binding ViewModel.ApplicationTitle}"
x:Name="TitleBar">
CloseWindowByDoubleClickOnIcon="True"
Title="{Binding ViewModel.ApplicationTitle}">
<ui:TitleBar.Icon>
<ui:ImageIcon Source="pack://application:,,,/Assets/icon.png" />
</ui:TitleBar.Icon>
</ui:TitleBar>

<!-- Strange Workaround -->
<Grid x:Name="TitleBarCoverageGrid" Grid.Row="0" Margin="0, 0, 300, 15" Background="{DynamicResource ApplicationBackgroundBrush}" Visibility="Collapsed" />

<tray:NotifyIcon
Focusable="False"
Grid.Row="0"
Expand Down
2 changes: 1 addition & 1 deletion src/PipManager/Views/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ IActionService actionService
InitializeComponent();
navigationService.SetNavigationControl(NavigationView);
maskPresenter.SetMaskPresenter(MaskPresenter);
contentDialogService.SetContentPresenter(RootContentDialog);
contentDialogService.SetDialogHost(RootContentDialog);
var runnerThread = new Thread(actionService.Runner)
{
IsBackground = true,
Expand Down

0 comments on commit 176ae58

Please sign in to comment.