async void OnLoaded(object sender, RoutedEventArgs e) { var color = new { Name = "Color Sources", AccessStatus = await PerceptionColorFrameSource.RequestAccessAsync(), Devices = await PerceptionColorFrameSource.FindAllAsync() }; this.ctlColor.DataContext = color; var depth = new { Name = "Depth Sources", AccessStatus = await PerceptionDepthFrameSource.RequestAccessAsync(), Devices = await PerceptionDepthFrameSource.FindAllAsync() }; this.ctlDepth.DataContext = depth; var infraRed = new { Name = "IR Sources", AccessStatus = await PerceptionInfraredFrameSource.RequestAccessAsync(), Devices = await PerceptionInfraredFrameSource.FindAllAsync() }; this.ctlIR.DataContext = infraRed; }
public PerceptionDepthFrameSourceEvents(PerceptionDepthFrameSource This) { this.This = This; }