private void UpdateCode()
        {
            var pgStyle         = ProgressBarHelper.GetProgressBarStyle(PgbCustom);
            var value           = _usingAnimation ? ProgressBarHelper.GetAnimateTo(PgbCustom) : PgbCustom.Value;
            var isIndeterminate = PgbCustom.IsIndeterminate;
            var cornerRadius    = SldCornerRadius.Value;
            var percentVisible  = ProgressBarHelper.GetIsPercentVisible(PgbCustom);

            TbCode.Text = $"<ProgressBar  Height=\"{PgbCustom.Height}\"" +
                          $"\nWidth=\"{PgbCustom.Width}\"" +
                          (pgStyle == ProgressBarStyle.Standard ? "" : $"\npu:ProgressBarHelper.ProgressBarStyle=\"{pgStyle}\"") +
                          (pgStyle == ProgressBarStyle.Standard ? $"\nBackground=\"{PgbCustom.Background}\"" : $"\nBorderBrush=\"{PgbCustom.BorderBrush}\"") +
                          $"\nForeground=\"{PgbCustom.Foreground}\"" +
                          (value == 0 ? "" : _usingAnimation ? $"\npu:ProgressBarHelper.AnimateTo=\"{value}\"" : $"\nValue=\"{value}\"") +
                          (cornerRadius == 0 ? "" : $"\npu:ProgressBarHelper.CornerRadius=\"{cornerRadius}\"") +
                          (isIndeterminate ? "\nIsIndeterminate=\"True\"" : "") +
                          (percentVisible ? "\npu:ProgressBarHelper.IsPercentVisible=\"True\"" : "") +
                          " />";
        }