WPF-Forge / Forge.Forms

Dynamically generated forms and dialogs in WPF
https://wpf-forge.github.io/Forge.Forms
MIT License
149 stars 30 forks source link

Horizontal radiobuttons #27

Closed hashitha closed 6 years ago

hashitha commented 6 years ago

Is it possible to have the radio buttons layed out horizontally

the following code would put the buttons one under the other

  <select name="CustomSelection" defaultValue="second" as="radiobuttons" label="Select something">
    <option value="first">First Item</option>
    <option value="second">Second Item</option>
    <option value="third" name="Third Item" />
  </select>

image

edongashi commented 6 years ago

Done. When settings as="RadioButtonsInline" you get the radio buttons in a wrap panel.

image

If this doesn't look right feel free to PR visual updates, until then I won't publish the update in NuGet, which I guess you don't need anyway.

hashitha commented 6 years ago

Thanks this is working great!