Skip to content

Commit

Permalink
Update WPF-UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kkwpsv committed Mar 21, 2022
1 parent 5bcb994 commit 54b02da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
11 changes: 1 addition & 10 deletions WindowDebugger/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

using WPFUI.Theme;
using System.Windows;

namespace WindowDebugger
{
Expand All @@ -18,7 +10,6 @@ public partial class App : Application
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
Watcher.Start(true, true);
}
}
}
4 changes: 2 additions & 2 deletions WindowDebugger/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Windows.Interop;
using Lsj.Util.Win32.Extensions;
using WindowDebugger.ViewModels;
using WPFUI.Appearance;

namespace WindowDebugger
{
Expand All @@ -15,14 +16,13 @@ public partial class MainWindow : Window
{
public MainWindow()
{
WPFUI.Background.Manager.Apply(this);
InitializeComponent();
}

private void Window_SourceInitialized(object sender, EventArgs e)
{
var hwnd = new WindowInteropHelper(this).Handle;
WPFUI.Background.Manager.Apply(WPFUI.Background.BackgroundType.Mica, hwnd);
Watcher.Watch(this, BackgroundType.Mica, true);
}

private void Window_ContentRendered(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion WindowDebugger/WindowDebugger.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageReference Include="Lsj.Util.WPF" Version="6.0.0" />
<PackageReference Include="Lsj.Util.Win32.NativeUI" Version="6.0.2" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="WPF-UI" Version="1.2.2-prerelease150" />
<PackageReference Include="WPF-UI" Version="1.2.2" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 54b02da

Please sign in to comment.