private void SetHorizontalPosition(FloatingBlockHorizontalPosition hPos) { this.horizontalAlignmentComboBox.SelectedValue = hPos.Alignment; this.horizontalAbsoluteOffset.Value = hPos.Offset; this.horizontalAlignmentRelativeToComboBox.SelectedValue = hPos.RelativeFrom; this.horizontalAbsoluteRelativeToComboBox.SelectedValue = hPos.RelativeFrom; if (hPos.ValueType == PositionValueType.Alignment) { this.horizontalAlignmentRadio.IsChecked = true; } else { this.horizontalAbsoluteRadio.IsChecked = true; } }
private void SetHorizontalPosition(FloatingBlockHorizontalPosition hPos) { this.horizontalAlignmentComboBox.SelectedValue = hPos.Alignment; this.horizontalAbsoluteOffset.Value = hPos.Offset; this.horizontalAlignmentRelativeToComboBox.SelectedValue = hPos.RelativeFrom; this.horizontalAbsoluteRelativeToComboBox.SelectedValue = hPos.RelativeFrom; if (hPos.ValueType == PositionValueType.Alignment) { this.horizontalAlignmentRadio.IsChecked = true; } else { this.horizontalAbsoluteRadio.IsChecked = true; } }