I get the following error when I compile the program
\"Microsoft.Samples.Kinect.ControlsBasics.SelectionDisplay\' does not contain a constructor that ta
You have error in two lines:
var selectionDisplay = new SelectionDisplay(button.Label as string, button.Tag as string);
and
var selectionDisplay = new SelectionDisplay(button.Label, button.Background);
and you define the constructor as
public SelectionDisplay(string itemId)
{
this.InitializeComponent();
this.messageTextBlock.Text = string.Format(CultureInfo.CurrentCulture,Properties.Resources.SelectedMessage,itemId);
}
if you need to define with some default value then you need to do like this
public SelectionDisplay(string itemId, string nextParam="default value")
{
this.InitializeComponent();
this.messageTextBlock.Text = string.Format(CultureInfo.CurrentCulture,Properties.Resources.SelectedMessage,itemId);
}
In this case you can either pass next argument or ignore it