Set initial radio button state
This commit is contained in:
parent
b658dc5902
commit
11b24dd654
2 changed files with 7 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
{
|
||||
using Aabb = AxisAlignedBoundingBox;
|
||||
|
||||
public class ArrangeObject3D : Object3D, IRebuildable
|
||||
public class ArrangeObject3D : Object3D, IRebuildable, IPropertyGridModifier
|
||||
{
|
||||
// We need to serialize this so we can remove the arrange and get back to the objects before arranging
|
||||
public List<Aabb> ChildrenBounds = new List<Aabb>();
|
||||
|
|
|
|||
|
|
@ -437,6 +437,12 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
var localIndex = index;
|
||||
var iconImage = AggContext.StaticData.LoadIcon(iconsAttribute.IconPaths[localIndex], 16, 16);
|
||||
var radioButton = new RadioButton(new ImageWidget(iconImage));
|
||||
// set it if checked
|
||||
if(enumItem.Value == value.ToString())
|
||||
{
|
||||
radioButton.Checked = true;
|
||||
}
|
||||
|
||||
rowContainer.AddChild(radioButton);
|
||||
|
||||
var localItem = enumItem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue