Exemple #1
0
        void UpdateBorderRadius()
        {
            var radius       = BorderRadius == -1 ? 0 : BorderRadius;
            var cornerRadius = WinUIHelpers.CreateCornerRadius(radius);

            if (_contentPresenter != null)
            {
                _contentPresenter.CornerRadius = cornerRadius;
            }

            if (_rootGrid != null)
            {
                _rootGrid.CornerRadius = cornerRadius;
            }
        }
Exemple #2
0
 public static void UpdateStrokeThickness(this RadioButton nativeRadioButton, IRadioButton radioButton)
 {
     nativeRadioButton.BorderThickness = radioButton.StrokeThickness <= 0 ? WinUIHelpers.CreateThickness(3) : WinUIHelpers.CreateThickness(radioButton.StrokeThickness);
 }