Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1715
CellValuePresenter style
posted

hi,

iam using xamdatagrid and i had set style for one of the cell value as follows.

<igDP:FieldSettings.CellValuePresenterStyle>

<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<StackPanel
Orientation="Horizontal">
<Button
x:Name="edit_btn"
Content="Edit"
Margin="3,3,0,3"
Width="50" Height="Auto"
Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type igDP:XamDataGrid} },
Path=DataContext.Commands.DeleteProjectReferenceCommand}">
<Button.Template>
<ControlTemplate>
<Image Source="pack://application:,,,/Cet.BaseModule.Client;component/Images/delete.ico" Width="16" Height="16"/>
</ControlTemplate>
</Button.Template>

</Button>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="BorderBrush" Value="red"></Setter>
<Setter Property="BorderThickness" Value="0,1,0,1"></Setter>
</Style>

</igDP:FieldSettings.CellValuePresenterStyle>

but the problem is that after applying this style ,the border is not displaying .

how can i set border for cell value presenter with this style.??

if any idea ,pls share me.

Jafar VM

Regards.