프로젝트

일반

사용자정보

개정판 7c257f8d

ID7c257f8d9ce71f4951ab318b50fece13eb355fcd
상위 3abe8d4e
하위 32fb9425

김태성이(가) 일년 이상 전에 추가함

issue #00000 colorlist control 추가

Change-Id: Ic721bcc8fbba882006fbaf14dbf08e3b9d5ffbb2

차이점 보기:

KCOM/Controls/ColorList.xaml
1
<UserControl
2
    x:Class="KCOM.Controls.ColorList"
3
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
    xmlns:converter="clr-namespace:KCOM.Common.Converter"
6
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7
    xmlns:local="clr-namespace:KCOM.Controls"
8
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
10
    d:DesignHeight="450"
11
    d:DesignWidth="800"
12
    mc:Ignorable="d">
13
    <UserControl.Resources>
14
        <converter:StringToColorBrushConverter x:Key="StringToColorBrushConverter" />
15
        <converter:StringToColorConverter x:Key="StringToColorConverter" />
16
    </UserControl.Resources>
17
    <Grid>
18
        <telerik:RadListBox telerik:StyleManager.Theme="Office2013">
19
            <telerik:RadListBox.ItemTemplate>
20
                <DataTemplate>
21
                    <telerik:RadColorPicker SelectedColor="{Binding DisplayColor, Converter={StaticResource StringToColorConverter}}" />
22
                </DataTemplate>
23
            </telerik:RadListBox.ItemTemplate>
24
        </telerik:RadListBox>
25
    </Grid>
26
</UserControl>
KCOM/Controls/ColorList.xaml.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using System.Windows;
7
using System.Windows.Controls;
8
using System.Windows.Data;
9
using System.Windows.Documents;
10
using System.Windows.Input;
11
using System.Windows.Media;
12
using System.Windows.Media.Imaging;
13
using System.Windows.Navigation;
14
using System.Windows.Shapes;
15

  
16
namespace KCOM.Controls
17
{
18
    /// <summary>
19
    /// ColorList.xaml에 대한 상호 작용 논리
20
    /// </summary>
21
    public partial class ColorList : UserControl
22
    {
23
        public ColorList()
24
        {
25
            InitializeComponent();
26
        }
27
    }
28
}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)