private void SetVerticalPosition(FloatingBlockVerticalPosition vPos) { this.verticalAlignmentComboBox.SelectedValue = vPos.Alignment; this.verticalAbsoluteOffset.Value = vPos.Offset; this.verticalAlignmentRelativeToComboBox.SelectedValue = vPos.RelativeFrom; this.verticalAbsoluteRelativeToComboBox.SelectedValue = vPos.RelativeFrom; if (vPos.ValueType == PositionValueType.Alignment) { this.verticalAlignmentRadio.IsChecked = true; } else { this.verticalAbsoluteRadio.IsChecked = true; } }
private void SetVerticalPosition(FloatingBlockVerticalPosition vPos) { this.verticalAlignmentComboBox.SelectedValue = vPos.Alignment; this.verticalAbsoluteOffset.Value = vPos.Offset; this.verticalAlignmentRelativeToComboBox.SelectedValue = vPos.RelativeFrom; this.verticalAbsoluteRelativeToComboBox.SelectedValue = vPos.RelativeFrom; if (vPos.ValueType == PositionValueType.Alignment) { this.verticalAlignmentRadio.IsChecked = true; } else { this.verticalAbsoluteRadio.IsChecked = true; } }