Frage

I'm creating a Windows 8 app that should be using the Share contract that is the sharing source, but the problem is that it keeps on waiting for share info from the app but I can't manage to find out why it's still waiting... The only code I inserted was :

public void InitializeShare()
    {
        _shareManager = DataTransferManager.GetForCurrentView();
        _shareManager.DataRequested += OnShareDataRequested;
    }

    private void OnShareDataRequested(DataTransferManager sender, DataRequestedEventArgs args)
    {
            DataRequest request = args.Request;
            request.Data.Properties.Title = "blablabla";
            request.Data.Properties.Description = "blablabla";
            request.Data.SetText("blablabla");
        }
    }

This is what I get...

enter image description here

War es hilfreich?

Lösung

It was solved by rebooting my machine.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top