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
520
DataErrorContentTemplateKey override XamComboEditor Data
posted

As you see on snapshot I have comboxEditor inside cell , once I uncomment following code for DataErrorContentTemplateKey ,I can see comboeditor inside cell but no data there. I don't what I am doing mistake. I attached zipfile, you can eaisly reproduce after commenting/uncommeting following code. my goal is only make transparent of background from pink

---------

<DataTemplate x:Key="{x:Static igDP:DataPresenterBase.DataErrorContentTemplateKey}">
<Grid x:Name="panel">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border x:Name="errorBorder"
BorderThickness="1"
BorderBrush="#FF5D696D"
Grid.ColumnSpan="2"
Visibility="Collapsed"
SnapsToDevicePixels="True">

</Border>
<Control x:Name="errorIcon"
Visibility="Collapsed"
Margin="4,0,0,0"
Style="{DynamicResource {x:Static igDP:DataPresenterBase.DataErrorIconStyleKey}}" />

<ContentPresenter x:Name="content"
ContentTemplate="{x:Null}"
Grid.Column="1"
Margin="0,0,2,0" />
</Grid>
<DataTemplate.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding Path=Host.HasDataError}"
Value="true" />
<Condition Binding="{Binding Path=Host.IsDataErrorDisplayModeIcon}"
Value="true" />
</MultiDataTrigger.Conditions>
<Setter TargetName="errorIcon"
Property="Visibility"
Value="Visible" />
<Setter TargetName="errorIcon"
Property="ToolTip"
Value="{Binding Path=Host.DataError}" />

</MultiDataTrigger>
</DataTemplate.Triggers>
</DataTemplate>