How to create converter to work like “FindAncestor” for checking IsTypeFound?
问题 I want to create a converter in which I will pass a type to find, in element's parent hierarchy & it should return true if such a type found, otherwise false. So far, I tried below given code & it is working. but now only i have issue is it finds element parent hierarchy until element's parent is null. I want to give ancestor level for finding element in parent hierarchy. So How can I give Ancestor Level to converter?? I used LayoutHelper.cs Class to find element in parent hierarchy as given