Skip to content

Instantly share code, notes, and snippets.


Sylvain Perenes slyvain

View GitHub Profile
slyvain / 00-SEPA XML
Last active December 28, 2022 21:44
Generate an XML file compliant with SEPA Credit Transfer (SCT) in PAIN 001.001.003 format for the EUR currency.
View 00-SEPA XML


SEPA data formats are based on the ISO 20022 Standard.

The usual banking file format for a SEPA & Non-SEPA Credit Transfer is the Pain (payment initiation) format 001.001.03.

However there is a specific German credit transfer XML format that is supported only by a limited amount of banks, the Pain 001.003.03, but since November 2016, the recommended Standard is 001.001.03.

For more on this, see the german specifications in section DFÜ Agreement Annex 3 – Version 3.0, Chapter 4.

View 00-Luhn
slyvain / FindControlInVisualTree.cs
Created October 12, 2017 05:52
Find control by name in WPF VisualTree
View FindControlInVisualTree.cs
/// <summary>
/// Finds a Child of a given item in the visual tree.
/// All credits to author CrimsonX:
/// </summary>
/// <param name="parent">A direct parent of the queried item.</param>
/// <typeparam name="T">The type of the queried item.</typeparam>
/// <param name="childName">x:Name or Name of child. </param>
/// <returns>The first parent item that matches the submitted type parameter.
/// If not matching item can be found,
/// a null parent is being returned.</returns>