Exemplo n.º 1
0
 /// <summary>
 /// To remove the given item.
 /// </summary>
 /// <param name="item">FlipSelector's item</param>
 /// <since_tizen> preview </since_tizen>
 public void Remove(FlipSelectorItem item)
 {
     if (item as FlipSelectorItem != null)
     {
         item.Delete();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Prepend a (text) item to a flip selector widget.
        /// </summary>
        /// <param name="text">Prepend text</param>
        /// <returns>A handle to the item added or NULL, on errors</returns>
        /// <remarks>
        /// The widget's list of labels to show will be prepended with the given value. If the user wishes so, a callback function pointer can be passed, which will get called when this same item is selected.
        /// </remarks>
        /// <since_tizen> preview </since_tizen>
        public FlipSelectorItem Prepend(string text)
        {
            FlipSelectorItem item = new FlipSelectorItem(text);

            item.Handle = Interop.Elementary.elm_flipselector_item_prepend(Handle, text, null, (IntPtr)item.Id);
            return(item);
        }