Hi,
So it is the order of the commands LDControls.SetButtonStyle and Controls.SetSize. SetButtonStyle recreates the button with the set styling and it resets the width to fit the text as the brushes fonts may have different sizes. SetSize forces the size to be set regardless of the content.
So it is the order of the commands LDControls.SetButtonStyle and Controls.SetSize. SetButtonStyle recreates the button with the set styling and it resets the width to fit the text as the brushes fonts may have different sizes. SetSize forces the size to be set regardless of the content.