13

Windows Universal Platform... what the fuck??

I want to set the button cursor to a hand. Here's how you do it:

private void button_PointerEntered(object sender, PointerRoutedEventArgs e)
{
Windows.UI.Xaml.Window.Current.CoreWindow.PointerCursor = new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Hand, 1);
}

Don't forget to do the opposite when the mouse leaves!

FUCK YOU

Comments
  • 1
    It's UWP actually but yes I tried to learn it before for Win 8/single app for desktop + mobile but then was like meh... Functionality is limited and no one really uses Windows Phones. JS + React better.
  • 0
    If you really want to target uwp, making it a win32 app and convert with Windows desktop bridge is better
  • 2
    @CozyPlanes UWP is actually pretty nice, but certainly not made for traditional desktop inputs like mice.

    Anyways, Acrylic is a major part of my app anyways.
  • 0
    @CozyPlanes that can only be good for legacy applications..
  • 0
    Uwp requires a lot of logical thought, but then I like 1>2>3 type thinking.
  • 1
    Isn’t there a XAML property? I’m sure there was in WPF and you could just use triggers.
  • 0
    @AlgoRythm you can use acrylic in wpf too
  • 0
    Win forms 4 ever
Add Comment