示例#1
0
        private void SetTextWrap(TextWrap textWrap)
        {
            switch (textWrap)
            {
            case TextWrap.BothSides:
                this.radWrapTextBothSides.IsChecked = true;
                break;

            case TextWrap.LeftOnly:
                this.radWrapTextLeft.IsChecked = true;
                break;

            case TextWrap.RightOnly:
                this.radWrapTextRight.IsChecked = true;
                break;

            default:
                throw new NotImplementedException("Unknown TextWrap: " + textWrap.ToString());
            }
        }
 private void SetTextWrap(TextWrap textWrap)
 {
     switch (textWrap)
     {
         case TextWrap.BothSides:
             this.radWrapTextBothSides.IsChecked = true;
             break;
         case TextWrap.LeftOnly:
             this.radWrapTextLeft.IsChecked = true;
             break;
         case TextWrap.RightOnly:
             this.radWrapTextRight.IsChecked = true;
             break;
         default:
             throw new NotImplementedException("Unknown TextWrap: " + textWrap.ToString());
     }
 }