{
  "$schema": "http://www.lavishsoft.com/schema/lgui2Package.json",
  "templates": {
    "mr.templates.combobox_item": {
      "jsonTemplate": "listboxitem",
      "padding": 2,
      "content": {
        "type": "textblock",
        "textBinding": {
          "pullFormat": "${_CONTEXTITEMDATA_.Get[name]}",
          "pullReplaceNull": ""
        }
      }
    }
  },

  "elements": [
    {
      "type": "window",
      "title": "Test",
      "name": "mr.test.window",
      "hideOnClose": false,

      "minSize": {
        "width": 500,
        "height": 500
      },

      "eventHandlers": {
        "onCloseButtonClick": ["method", "TestController", "OnClose"]
      },

      "content": {
        "type": "stackpanel",
        "orientation": "vertical",
        "children": [
          {
            "type": "stackpanel",
            "name": "mr.test.test_panel",
            "orientation": "vertical",
            "children": [
              {
                "type": "stackpanel",
                "orientation": "horizontal",
                "children": [
                  {
                    "type": "combobox",
                    "itemViewGenerators": {
                      "default": {
                        "type": "template",
                        "template": "mr.templates.combobox_item"
                      }
                    },
                    "items": [
                      {
                        "name": "abc"
                      },
                      {
                        "name": "123"
                      },
                      {
                        "name": "def"
                      },
                      {
                        "name": "456"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "textblock",
                "text": "Test Text"
              }
            ]
          }
        ]
      }
    }
  ]
}
