[Solved] Bind DataContext to Current Item in data source using c# code


After getting a lot of downvotes, at least I figured it out:

It’s:

border.SetBinding(DataContextProperty, "Items/");

solved Bind DataContext to Current Item in data source using c# code