コード例 #1
0
 public ToolbarItem EditItem()
 {
     return
         (new ToolbarItem("Edit", "icons8pencil96", async() => {
         if (editor.IsEditable())
         {
             if (isKeyboardUp)
             {
                 editor.HideInputMethod();
             }
             else
             {
                 editor.ShowInputMethod();
             }
         }
         else
         {
             SetModel(modelInfo.Copy(), editable: true);
             editor.ShowInputMethod();
         }
     }));
 }