-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Correctly handle RawInput now. (I forgot the value is a "flag", not numeric value). Now holding mouse buttons while scrolling will still work. - Improved PSO2 Updater Result dialog: Added name filter and export result to file. - Changed 'PSO2 Data Manager' dialog, as well as added 1 new option regarding Nvidia DLSS version. - Fixed COMException which make IE-based WebBrowser to load the pso2 news page. - Update MahApps.Metro to v2.4.10.
- Loading branch information
Showing
42 changed files
with
832 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Runtime.CompilerServices; | ||
using System.Windows.Controls; | ||
|
||
namespace Leayal.PSO2Launcher.Core.UIElements | ||
{ | ||
static class ConvenientEventHandlers | ||
{ | ||
/// <summary>When this method is added to a <seealso cref="System.Windows.Controls.Primitives.Selector.SelectionChanged"/>, prevent the control from selecting no items.</summary> | ||
/// <remarks> | ||
/// <para>You can also just pass-through the event handler to this handler.</para> | ||
/// <para>Currently supports only <seealso cref="TabControl"/>.</para> | ||
/// </remarks> | ||
/// <param name="sender">The element which raised this event. May be <see langword="null"/>.</param> | ||
/// <param name="e">The event parameters which associated with the event.</param> | ||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static void TabControl_SelectionChanged_PreventSelectingNothing(object? sender, SelectionChangedEventArgs e) | ||
{ | ||
if (e.AddedItems == null || e.AddedItems.Count == 0) | ||
{ | ||
if (e.RemovedItems[0] is TabItem tab) | ||
{ | ||
e.Handled = true; | ||
tab.IsSelected = true; | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.