GetEditWidget() public method

Edits the property's value. Must be overridden if InPlaceEdit is true.
public GetEditWidget ( ) : Gtk.Widget
return Gtk.Widget
Ejemplo n.º 1
0
        private void DisplayEditWidget()
        {
            if (propertyValueEventBox.Child != null)
            {
                propertyValueEventBox.Child.Destroy();
            }

            if (!editing)
            {
                editing = true;
            }

            Widget editWidget = editor.GetEditWidget();

            propertyValueEventBox.Child = editWidget;

            if (editWidget.SizeRequest().Width > 50)
            {
                editWidget.WidthRequest = 50;
                //TODO: Display tooltip of full text when truncated
            }

            propertyValueEventBox.ShowAll();
            editWidget.GrabFocus();
        }