diff --git a/Audibly.App/App.xaml.cs b/Audibly.App/App.xaml.cs index 46f19ea..0395ac9 100644 --- a/Audibly.App/App.xaml.cs +++ b/Audibly.App/App.xaml.cs @@ -1,4 +1,4 @@ -// Author: rstewa · https://github.com/rstewa +// Author: rstewa · https://github.com/rstewa // Updated: 07/30/2025 using System; diff --git a/Audibly.App/Audibly.App.csproj b/Audibly.App/Audibly.App.csproj index 9b1030e..6a6c87b 100644 --- a/Audibly.App/Audibly.App.csproj +++ b/Audibly.App/Audibly.App.csproj @@ -1,4 +1,4 @@ - + WinExe net8.0-windows10.0.19041.0 @@ -26,7 +26,7 @@ - + audibly audibly @@ -106,9 +106,9 @@ - - - + + + diff --git a/Audibly.App/UserControls/TitleArtistStack.xaml b/Audibly.App/UserControls/TitleArtistStack.xaml index f3720bc..e1ecdd0 100644 --- a/Audibly.App/UserControls/TitleArtistStack.xaml +++ b/Audibly.App/UserControls/TitleArtistStack.xaml @@ -5,7 +5,7 @@ x:Class="Audibly.App.UserControls.TitleArtistStack" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:labs="using:CommunityToolkit.Labs.WinUI.MarqueeTextRns" + xmlns:controls="using:CommunityToolkit.WinUI.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> @@ -17,14 +17,16 @@ x:Name="TitleArtistStackPanel"> - @@ -51,21 +53,5 @@ Visibility="{x:Bind ShowChapterTitle, Mode=OneWay}" x:Name="CurrentChapterTitleTextBlock" /> - - - - - - - - - - - - - - - - - \ No newline at end of file + diff --git a/Audibly.App/UserControls/TitleArtistStack.xaml.cs b/Audibly.App/UserControls/TitleArtistStack.xaml.cs index 2c2cbe3..ddeae72 100644 --- a/Audibly.App/UserControls/TitleArtistStack.xaml.cs +++ b/Audibly.App/UserControls/TitleArtistStack.xaml.cs @@ -1,13 +1,9 @@ // Author: rstewa · https://github.com/rstewa // Updated: 08/02/2025 -using System; -using System.Threading.Tasks; using Audibly.App.ViewModels; -using Microsoft.UI.Dispatching; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Input; namespace Audibly.App.UserControls; @@ -28,15 +24,9 @@ public sealed partial class TitleArtistStack : UserControl public static readonly DependencyProperty ShowChapterTitleProperty = DependencyProperty.Register( nameof(ShowChapterTitle), typeof(bool), typeof(TitleArtistStack), new PropertyMetadata(false)); - private readonly DispatcherQueue _dispatcherQueue = DispatcherQueue.GetForCurrentThread(); - - private bool _isPointerOver; - public TitleArtistStack() { InitializeComponent(); - TitleMarqueeText.MarqueeCompleted += TitleMarqueeText_MarqueeCompleted; - // CurrentChapterTitleMarqueeText.MarqueeCompleted += CurrentChapterTitleMarqueeText_MarqueeCompleted; } /// @@ -74,27 +64,4 @@ public bool ShowChapterTitle set => SetValue(ShowChapterTitleProperty, value); } - private async void TitleMarqueeText_MarqueeCompleted(object? sender, EventArgs e) - { - _dispatcherQueue.TryEnqueue(() => TitleMarqueeText.StopMarquee()); - await Task.Delay(TimeSpan.FromSeconds(5)); // wait for 3 seconds - _dispatcherQueue.TryEnqueue(() => TitleMarqueeText.StartMarquee()); - } - - // private void CurrentChapterTitleMarqueeText_MarqueeCompleted(object? sender, EventArgs e) - // { - // if (!_isPointerOver) _dispatcherQueue.TryEnqueue(() => CurrentChapterTitleMarqueeText.StopMarquee()); - // } - // - // private void CurrentChapterTitleTextBlock_OnPointerEntered(object sender, PointerRoutedEventArgs e) - // { - // _dispatcherQueue.TryEnqueue(() => CurrentChapterTitleMarqueeText.StartMarquee()); - // _isPointerOver = true; - // } - - private void CurrentChapterTitleMarqueeText_OnPointerExited(object sender, PointerRoutedEventArgs e) - { - _isPointerOver = false; - // _dispatcherQueue.TryEnqueue(() => CurrentChapterTitleMarqueeText.StopMarquee()); - } } \ No newline at end of file diff --git a/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml b/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml index a5657f0..39f1501 100644 --- a/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml +++ b/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml @@ -10,7 +10,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="using:Audibly.App.Views.ContentDialogs" - xmlns:markdownTextBlock="using:CommunityToolkit.Labs.WinUI.MarkdownTextBlock" + xmlns:markdownTextBlock="using:CommunityToolkit.WinUI.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> diff --git a/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml.cs b/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml.cs index 99b65f3..e6dcf4c 100644 --- a/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml.cs +++ b/Audibly.App/Views/ContentDialogs/ChangelogContentDialog.xaml.cs @@ -1,4 +1,4 @@ -using CommunityToolkit.Labs.WinUI.MarkdownTextBlock; +using CommunityToolkit.WinUI.Controls; using Microsoft.UI.Xaml.Controls; namespace Audibly.App.Views.ContentDialogs; diff --git a/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml b/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml index 40876d1..711124e 100644 --- a/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml +++ b/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml @@ -7,7 +7,7 @@ x:Class="Audibly.App.Views.ControlPages.ChangelogDialogContent" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:markdownTextBlock="using:CommunityToolkit.Labs.WinUI.MarkdownTextBlock" + xmlns:markdownTextBlock="using:CommunityToolkit.WinUI.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> diff --git a/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml.cs b/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml.cs index 20e69a2..2c2b272 100644 --- a/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml.cs +++ b/Audibly.App/Views/ControlPages/ChangelogDialogContent.xaml.cs @@ -3,7 +3,7 @@ // Updated: 6/1/2024 using Audibly.App.Helpers; -using CommunityToolkit.Labs.WinUI.MarkdownTextBlock; +using CommunityToolkit.WinUI.Controls; using Microsoft.UI.Xaml.Controls; namespace Audibly.App.Views.ControlPages; diff --git a/Audibly.App/Views/ControlPages/FailedDataMigrationContent.xaml.cs b/Audibly.App/Views/ControlPages/FailedDataMigrationContent.xaml.cs index 2357045..cd04001 100644 --- a/Audibly.App/Views/ControlPages/FailedDataMigrationContent.xaml.cs +++ b/Audibly.App/Views/ControlPages/FailedDataMigrationContent.xaml.cs @@ -1,5 +1,5 @@ using Audibly.App.Helpers; -using CommunityToolkit.Labs.WinUI.MarkdownTextBlock; +using CommunityToolkit.WinUI.Controls; using Microsoft.UI.Xaml.Controls; namespace Audibly.App.Views.ControlPages;