or
| Text="{Binding Path=Content.Field.Value}" |
| Text="{Binding Path=DataContext.Price, Mode=TwoWay, Converter = {StaticResource CentPriceConverter}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewRow}}}" |
| <ControlTemplate x:Key="PriceExpandedCell" TargetType="telerik:GridViewCell"> |
| <Border Name="Part_Border" |
| CornerRadius="0" |
| Loaded="Part_Border_Loaded" |
| Height="Auto" |
| BorderBrush="{StaticResource SolidBorderBrush}" |
| VerticalAlignment="Stretch"> |
| <StackPanel Name="Part_StackPanel" |
| ScrollViewer.VerticalScrollBarVisibility="Hidden" |
| Orientation="Vertical" |
| Background="{Binding Path=Background, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewRow}}}"> |
| <TextBox Name="Part_Text" |
| Width="Auto" |
| BorderThickness="0" |
| Background="Transparent" |
| Margin="2,2,2,2" |
| TextChanged="Part_Text_TextChanged" |
| Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewRow}}}" |
| Text="{Binding Path=DataContext.Price, Mode=TwoWay, Converter = {StaticResource CentPriceConverter}, |
| RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewRow}}}"/> |
| <Button Content="Discount" Margin="15,3,3,3" |
| Name="btnDiscount" |
| Click="btnDiscount_Click" |
| HorizontalAlignment="Left" |
| Style="{StaticResource CompactButton}"/> |
| </StackPanel> |
| </Border> |
| <ControlTemplate.Triggers> |
| <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewRow}}}" Value="True"> |
| <Setter TargetName="Part_StackPanel" Property="Background" Value="{StaticResource HighlightGradientBrush}"/> |
| </DataTrigger> |
| <Trigger Property="IsInEditMode" Value="True"> |
| <Setter TargetName="Part_Border" Property="BorderThickness" Value="3"/> |
| <Setter TargetName="Part_StackPanel" Property="Background" Value="{StaticResource LightBlueBrush}"/> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
