OnStreamRequest() public method

This method raises the stream request event used by the audio player to start a streaming session
public OnStreamRequest ( StreamRequestedArgs args ) : void
args StreamRequestedArgs Parameter that will be passed to the handler
return void
示例#1
0
 /// <summary>
 /// Double click handler for the result list. This methods calls the <c>OnStreamRequest</c> of the View Model
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ResultsGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (vm != null)
     {
         DataGrid g = sender as DataGrid;
         vm.OnStreamRequest(new StreamRequestedArgs(g.SelectedItem as KademliaResource));
     }
 }