Git Product home page Git Product logo

npsmlib's People

Contributors

adeltax avatar ahmed605 avatar shankarbus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

albicore ahmed605

npsmlib's Issues

SessionListChanged does not work in UWP

I just clone this repo and here is my MainPage.xaml.cs (modified sample):

using NPSMLib;

using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace NPSM_UWP
{
  public sealed partial class MainPage : Page
  {
    private NowPlayingSessionManager npsm;

    public MainPage()
    {
      InitializeComponent();
      npsm = new NowPlayingSessionManager();
      npsm.SessionListChanged += OnSessionListChanged;
    }

    private void OnSessionListChanged(object sender, NowPlayingSessionManagerEventArgs e)
    {
      Button_Click(null, null);
    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {
      numTxt.Text = npsm.Count.ToString();
    }
  }
}

This event doesn't raise any time in pure UWP or XAML Islands in my another project.

OS: Windows 10 x64 19042.685
Visual Studio: 16.3.8
UWP targets: 19041, 18362

XAML Islands:
Code: WPF and UWP
Framework: .NET Core 3.0
Package and UWP targets: 19041, 18362

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.