Skip to content

Instantly share code, notes, and snippets.

View slyvain's full-sized avatar

Sylvain Perenes slyvain

View GitHub Profile
@slyvain
slyvain / FindControlInVisualTree.cs
Created October 12, 2017 05:52
Find control by name in WPF VisualTree
/// <summary>
/// Finds a Child of a given item in the visual tree.
/// All credits to author CrimsonX: https://stackoverflow.com/questions/636383/how-can-i-find-wpf-controls-by-name-or-type
/// </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>
@slyvain
slyvain / 00-SEPA XML generation.md
Last active September 11, 2023 21:23
Generate an XML file compliant with SEPA Credit Transfer (SCT) in PAIN 001.001.003 format for the EUR currency.

Introduction

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.