Create textbox value increment when mouse scrolling

Sampath Gamaarchchi 1 Reputation point

I need to increase the value of a text box when scrolling the mouse wheel. Assuming it is working as a time selector.
Appreciate your assistance.

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Yan Gu - MSFT 2,671 Reputation points


    Welcome to Microsoft Q&A.

    If you want to increase the value of a text box when scrolling the mouse wheel, you could try to use another control called Number box. Get the Windows UI library by opening Tools > NuGet Package Manager > Manage NuGet Packages for solutions…, and typing WinUI in the search box under Brower tab. Add this to your Page element in XAML file: xmlns:muxc="using:Microsoft.UI.Xaml.Controls", and add this using statement at the top of the xaml.cs file: using muxc = Microsoft.UI.Xaml.Controls; .

    Just add a NumberBox control to your page, the control enables increase and decrease value by scrolling.

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments