[DEVEXPRESS/WPF] PopupColorEdit 클래스 : Palettes 속성을 사용해 커스텀 팔레트 설정하기
DevExpress/WPF 2014. 3. 29. 09:00728x90
반응형
728x170
▶ XAML
<Grid xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<dxe:PopupColorEdit x:Name="popupColorEdit"
Width="150"
Height="25" />
</Grid>
728x90
▶ C#
using System.Collections.Generic;
using System.Windows.Media;
using DevExpress.Xpf.Editors;
this.popupColorEdit.Palettes.Add(CustomPalette.CreateGradientPalette("Paper Colors", PredefinedColorCollections.Paper));
this.popupColorEdit.Palettes.Add
(
new CustomPalette
(
"Custom RGB Colors",
new List<Color>()
{
Color.FromRgb(170, 0 , 0 ),
Color.FromRgb(0 , 125, 0 ),
Color.FromRgb(0 , 0 , 170)
}
)
);
728x90
반응형
그리드형(광고전용)
'DevExpress > WPF' 카테고리의 다른 글
[DEVEXPRESS/WPF] TextEdit 클래스 : EditCore 속성을 사용해 에디터 모드에서 표시 텍스트 구하기 (0) | 2014.03.29 |
---|---|
[DEVEXPRESS/WPF] TextEdit 클래스 : 커스텀 텍스트 에디터 사용하기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] ButtonEditSettings 엘리먼트 사용하기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] LookUpEdit 엘리먼트 사용하기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] SpinEdit 엘리먼트 사용하기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] TrackBarEdit 엘리먼트 사용하기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] ProgressBarEdit 엘리먼트 사용하기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] DateEdit 엘리먼트 : ShowWeekNumbers 속성을 사용해 주차 보여주기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] ComboBoxEdit 엘리먼트 : StyleSettings 속성을 사용해 라디오 콤보 박스 에디터 사용하기 (0) | 2014.03.29 |
[DEVEXPRESS/WPF] TextEdit 엘리먼트 : Mask 속성을 사용해 마스크 설정하기 (0) | 2014.03.29 |
댓글을 달아 주세요