Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8938475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:38:03+00:00 2026-06-15T10:38:03+00:00

I have a function to have a Record button protected void StartRecord(object sender, RoutedEventArgs

  • 0

I have a function to have a Record button

    protected void StartRecord(object sender, RoutedEventArgs e)
    {
        MessageBox.Show("Start Recording");
        //string generatedName = Guid.NewGuid().ToString();
        string generatedName = @"c:\Desktop\Stream.recorded";
        //recordStreamPathAndName = @"C:" + generatedName + ".recorded";
        //this.recordStream = File.Create(recordStreamPathAndName);
        this.recordStream = File.Create(generatedName);
        this.Recorder = new KinectRecorder(KinectRecordOptions.Color | KinectRecordOptions.Skeletons, recordStream);
    }

Will this code allow me to create the record button?
If it does how do I create it to show on the main window and to actually start the recording?
Answer here:
Here is the .xaml code

  <Button Click ="StartRecord" DataContext="{Binding}" Name="StartRecording" Width="50" Height="50" Canvas.Left="709" Canvas.Top="0" />

Update: Button created and file created. But nothing is saved to file.

    void sensor_AllFramesReady(object sender, AllFramesReadyEventArgs e)
    {
          // some stuff

        using (SkeletonFrame skeletonFrame = e.OpenSkeletonFrame())
        {
          if (skeletonFrame == null)
          {
              return;
          }


           // Start recorder
            this.StartRecord(sender, e);  
         // parameter asks for (object, Routedeventargs)
         // but I have only (object, AllFramesReadyargs) declared in this function.


         // some stuff here

        }
   }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:38:04+00:00Added an answer on June 15, 2026 at 10:38 am

    You need to create the button in your XAML and hook it up to a callback. Something like:

    <Button Click="StartRecord">
    

    In your code-behind your function declaration would look like:

    private void StartRecord(object sender, RoutedEventArgs e)
    {
        // code here
    }
    

    Tell your program what you want to do when the button is clicked in there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have addFile function in my TableModel class which inserts a new record at
I have a function CheckMobile(MobNumber) and it will check all duplicate record of MobNumber
<input id=Edit name=Edit value=Edit Record type=button onclick=$.get('fetchvalues.php', function(){myCallBack(ReadCookie('UpdateRecordID'));}); /> The ReadCookie function is of
In my Kendo Grid I have the default Add a new Record button and
I've been working with the Soundcloud API and have set up their record button
I current have a datatable that has a button for each record that when
Here is what I have going on in my AJAX: $('#submit-button').click(function(){ var twit =
I have a delete button for deleting a record from a database, mostly delete
I have this function: CREATE OR REPLACE FUNCTION CREATE_AIRSPACE_AVAILABILITY_RECORD (cur_user VARCHAR, start_time VARCHAR, start_date
I have the following controller: class Tests extends CI_Controller { public function update_record_test() {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.