Created
December 6, 2015 18:03
-
-
Save kaorun55/45a57c0fa6818c599d24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment