Skip to content

Instantly share code, notes, and snippets.

@kaorun55
Created December 6, 2015 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaorun55/45a57c0fa6818c599d24 to your computer and use it in GitHub Desktop.
Save kaorun55/45a57c0fa6818c599d24 to your computer and use it in GitHub Desktop.
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