Domanda

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

È stato utile?

Soluzione

It was solved by rebooting my machine.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top