Completed
Last Updated: 18 Sep 2020 04:47 by ADMIN
Release LIB 2020.3.921 (09/21/2020)
Created by: Stefan
Comments: 1
Category: DataPager
Type: Bug Report
2

When using the Office2016Touch theme and the default control template, the following binding errors can be observed in Visual Studio output:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ContentPresenter', AncestorLevel='1''. BindingExpression:Path=(TextElement.Foreground); DataItem=null; target element is 'TextBlock' (Name=''); target property is 'Foreground' (type 'Brush')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ContentPresenter', AncestorLevel='1''. BindingExpression:Path=(TextElement.Foreground); DataItem=null; target element is 'TextBlock' (Name=''); target property is 'Foreground' (type 'Brush')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ContentPresenter', AncestorLevel='1''. BindingExpression:Path=(TextElement.Foreground); DataItem=null; target element is 'TextBlock' (Name=''); target property is 'Foreground' (type 'Brush')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ContentPresenter', AncestorLevel='1''. BindingExpression:Path=(TextElement.Foreground); DataItem=null; target element is 'TextBlock' (Name=''); target property is 'Foreground' (type 'Brush')

Setup

  • 2020 R2 SP1 NoXaml Assemblies (.NET Framework)
  • Office2016Touch Theme
  • Style with the default extracted ControlTemplate (no custom changed required).

 

For your convenience, a reproducible project is attached.

Completed
Last Updated: 23 Mar 2018 07:00 by ADMIN
Completed
Last Updated: 19 Feb 2018 15:07 by ADMIN
The fix will be available in the R1 2018 SP2 Release.
Completed
Last Updated: 21 Oct 2016 10:35 by Artem