첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
<dxg:GridColumn FieldName="OrderUnit">
    <dxg:GridColumn.DisplayTemplate>
        <ControlTemplate>
            <ProgressBar
                Margin="2"
                Minimum="0"
                Maximum="50"
                Value="{Binding Path=DisplayText, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
        </ControlTemplate>
    </dxg:GridColumn.DisplayTemplate>
    <dxg:GridColumn.EditTemplate>
        <ControlTemplate>
            <Grid VerticalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"  />
                    <ColumnDefinition Width="30" />
                </Grid.ColumnDefinitions>
                <Slider x:Name="PART_Editor"
                    Grid.Column="0"
                    Minimum="0"
                    Maximum="50"
                    Value="{Binding Path=EditValue,
                        Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent},
                        Converter={StaticResource IntegerToDoubleValueConverterKey}}" />
                <TextBlock
                    Grid.Column="1"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Foreground="Black"
                    TextWrapping="NoWrap"
                    Text="{Binding EditValue, RelativeSource={RelativeSource TemplatedParent}}" />
            </Grid>
        </ControlTemplate>  
    </dxg:GridColumn.EditTemplate>
</dxg:GridColumn>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요