/// <summary> /// Constructor. /// </summary> public ContextPropertyContext() { this.items.Add(new ContextPropertyItemContext { Text = "This" }); this.items.Add(new ContextPropertyItemContext { Text = "Is" }); var itemContext = new ContextPropertyItemContext { Text = "Data Bind" }; this.items.Add(itemContext); this.SelectedItem = itemContext; }
/// <summary> /// Constructor. /// </summary> public ContextPropertyContext() { this.items.Add(new ContextPropertyItemContext { Text = "This" }); this.items.Add(new ContextPropertyItemContext { Text = "Is" }); var itemContext = new ContextPropertyItemContext { Text = "Data Bind" }; this.items.Add(itemContext); this.SelectedItem = itemContext; }
/// <summary> /// Selects the specified item. /// </summary> /// <param name="item">Item to select.</param> public void OnItemSelected(Context item) { Debug.Log("Item selected: " + item); this.SelectedItem = (ContextPropertyItemContext)item; }
/// <summary> /// Selects the specified item. /// </summary> /// <param name="item">Item to select.</param> public void OnItemSelected(Context item) { Debug.Log("Item selected: " + item); this.SelectedItem = (ContextPropertyItemContext)item; }