Skip to content

Commit

Permalink
Use WASDK titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua committed Feb 21, 2025
1 parent 9e3b63a commit c03546c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions FluentAutoClicker/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
<RowDefinition Height="*" />
<!-- App Content -->
</Grid.RowDefinitions>
<windowex:TitleBar
<TitleBar
x:Name="AppTitleBar"
x:Uid="AppTitleBar"
BackRequested="AppTitleBar_BackRequested">
<windowex:TitleBar.IconSource>
<TitleBar.IconSource>
<BitmapIconSource ShowAsMonochrome="False" UriSource="ms-appx:///Assets/WindowIcon.ico" />
</windowex:TitleBar.IconSource>
</windowex:TitleBar>
</TitleBar.IconSource>
</TitleBar>

<!-- App content -->
<Frame
Expand Down
3 changes: 2 additions & 1 deletion FluentAutoClicker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// along with Fluent Auto Clicker. If not, see <https://www.gnu.org/licenses/>.

using FluentAutoClicker.Helpers;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Navigation;

// To learn more about WinUI, the WinUI project structure,
Expand Down Expand Up @@ -43,7 +44,7 @@ public MainWindow()
_ = NavFrame.Navigate(typeof(MainPage));
}

private void AppTitleBar_BackRequested(WinUIEx.TitleBar sender, object args)
private void AppTitleBar_BackRequested(TitleBar sender, object args)
{
if (NavFrame.CanGoBack)
{
Expand Down

0 comments on commit c03546c

Please sign in to comment.