title: Windows phone 8.1 universal app DataTransferManager UI not showing
body: <p>In my windows phone 8.1 universal app project I am trying to make a share option. </p>
  
  <p>But when I click on the button (ShareCommand) the Share UI is not showing up, I have tried this in the emulator and on a device.</p>
  
  <p>The event is correctly wired up since the DataRequested event gets called, but after this event there is no Share UI showing.</p>
  
  <p>Here is the code I use in my ViewModel (using prism framework).</p>
  
  <pre><code>private DataTransferManager _dataTransferManager;    
  private DelegateCommand _shareCommand;
  
  // Share button
  public DelegateCommand ShareCommand
      {
         get
         {
            return _shareCommand ?? (_shareCommand = new DelegateCommand(() =&gt;
            {
                DataTransferManager.ShowShareUI();
            }));
         }
      }
  
  public override async void OnNavigatedTo(object navigationParameter, NavigationMode navigationMode, Dictionary&lt;string, object&gt; viewModelState)
  {
      base.OnNavigatedTo(navigationParameter, navigationMode, viewModelState);
  
      // get data transfer manager and register events
      _dataTransferManager = DataTransferManager.GetForCurrentView();
      _dataTransferManager.DataRequested += DataTransferMangerDataRequested;
      _dataTransferManager.TargetApplicationChosen += DataTransferMangerTargetApplicationChosen;
   }
  
   public override void OnNavigatedFrom(Dictionary&lt;string, object&gt; viewModelState, bool suspending)
   {
        base.OnNavigatedFrom(viewModelState, suspending);
  
        // clean up events
        _dataTransferManager.DataRequested -= DataTransferMangerDataRequested;
        _dataTransferManager.TargetApplicationChosen -= DataTransferMangerTargetApplicationChosen;
   }
  
   private void DataTransferMangerTargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args)
   {               
   }
  
   private void DataTransferMangerDataRequested(DataTransferManager sender, DataRequestedEventArgs args)
   {
        var request = args.Request;
        var deferral = request.GetDeferral();
  
        request.Data.Properties.Title = "title test";
        request.Data.Properties.Description = "description test";
        request.Data.SetText("test hello");
        request.Data.SetUri(new Uri("https://www.google.com"));
  
        request.FailWithDisplayText("fail");
  
        deferral.Complete();
   }
  </code></pre>
  
  <p>I have tried setting different properties in the DataRequested event but still nothing.</p>
  
  <p>Does anyone know what it could be? Do I need to set some permissions?</p>
  
  <p>Edit:
  Ok, weird I tried this in a new solution with only this code and it is working fine. But no idea why its not working in my current solution.</p>