private void _control_Load(object sender, EventArgs e) { LayoutHelper.AutoFitLabels(_labelSize); DisplayHelper.AutoFitSystemLabel(_labelOne, _labelOne.Width, int.MaxValue); DisplayHelper.AutoFitSystemButton(_previewButton, 0, int.MaxValue); if (_control.RightToLeft == RightToLeft.Yes) { _webImageUrl.Left = _previewButton.Right + (int)DisplayHelper.ScaleX(WebImageUrlPadding); _webImageUrl.Width = _pictureBorder.Right - _previewButton.Right - (int)DisplayHelper.ScaleX(WebImageUrlPadding); _fileSize.Left = _pictureBorder.Left; _fileSize.Width = _labelSize.Left - _fileSize.Left - SizeLabelPadding; } else { _webImageUrl.Left = _pictureBorder.Left; _webImageUrl.Width = _previewButton.Left - _webImageUrl.Left - (int)DisplayHelper.ScaleX(WebImageUrlPadding); _fileSize.Left = _labelSize.Right + SizeLabelPadding; _fileSize.Width = _pictureBorder.Right - _fileSize.Left; } BidiHelper.RtlLayoutFixup(_control); _webImageUrl.Select(); }
public override void TabSelected() { if (firstRun) { Reset(); } videoCode.Select(); }