VolumeChangeRequestedEventArgs VolumeChangeRequestedEventArgs VolumeChangeRequestedEventArgs VolumeChangeRequestedEventArgs Class

Provides information about the VolumeChangeRequested event.

Syntax

Declaration

public sealed class VolumeChangeRequestedEventArgspublic sealed class VolumeChangeRequestedEventArgsPublic NotInheritable Class VolumeChangeRequestedEventArgspublic sealed class VolumeChangeRequestedEventArgs

Remarks

For an example of creating a software Play To receiver, see Media casting or Media casting.

async void receiver_VolumeChangeRequested(
    Windows.Media.PlayTo.PlayToReceiver sender,
    Windows.Media.PlayTo.VolumeChangeRequestedEventArgs args)
{
    await dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
        {
            VideoPlayer.Volume = args.Volume;
        });
}
function receiver_VolumeChangeRequested(args) {
    videoPlayer.volume = args.volume;
}
Async Sub receiver_VolumeChangeRequested(
    sender As Windows.Media.PlayTo.PlayToReceiver,
    args As Windows.Media.PlayTo.VolumeChangeRequestedEventArgs)

    Await Dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal,
        Sub()
            VideoPlayer.Volume = args.Volume
        End Sub)
End Sub

Properties summary

Gets the new volume level.

Properties

  • Volume
    Volume
    Volume
    Volume

    Gets the new volume level.

    public double Volume { get; }public double Volume { get; }Public ReadOnly Property Volume As doublepublic double Volume { get; }

    Property Value

    • double
      double
      double
      double

      The new volume level.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Media.PlayTo.dll