Skip to content

Instantly share code, notes, and snippets.

View TobiasSekan's full-sized avatar
🏠
Homeoffice

Tobias Sekan TobiasSekan

🏠
Homeoffice
  • Saxony (Germany)
View GitHub Profile
@TobiasSekan
TobiasSekan / WPF_Error_HV_ContentAlignment.md
Last active July 21, 2023 07:48
[WPF] Fix for -> System.Windows.Data Error: 4 -> HorizontalContentAlignment and VerticalContentAlignment

Fix for debug output errors

Add the follow lines to the file App.xaml in your WPF application

    <!--
        Global fix for
        
        System.Windows.Data Error: 4 :
        Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''.