■ SparklineEditSettings 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
<Grid xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"> <dxg:GridControl x:Name="gridControl" ItemsSource="{Binding SaleDataRowList}"> <dxg:GridControl.Columns> <dxg:GridColumn FieldName="Title" Header="Order" ReadOnly="True" Width="200" /> <dxg:GridColumn FieldName="SparklineData" Header="Sales" Width="200"> <dxg:GridColumn.EditSettings> <dxe:SparklineEditSettings PointArgumentMember="ArgumentColumn" PointValueMember="ValueColumn"> <dxe:SparklineEditSettings.PointArgumentRange> <dxe:Range Auto="False" Limit1="07/17/2013" Limit2="08/15/2013" /> </dxe:SparklineEditSettings.PointArgumentRange> <dxe:SparklineEditSettings.StyleSettings> <dxe:AreaSparklineStyleSettings Brush="BlueViolet" HighlightMaxPoint="True" HighlightMinPoint="True" MaxPointBrush="Red" MinPointBrush="Blue" /> </dxe:SparklineEditSettings.StyleSettings> </dxe:SparklineEditSettings> </dxg:GridColumn.EditSettings> </dxg:GridColumn> </dxg:GridControl.Columns> </dxg:GridControl> </Grid> |