I see from the msdn article that the UniformGrid class does not support an attached property for "setting" columns or rows. In my current programming problem I have the situation that I have added components to the UniformGrid but in the click handlers of the components I've added to the UniformGrid I want the components to be aware of which row and column they wound up in.
Even if it is impossible to "set" this data, is there a way to "get" it?
There is no built-in solution to do this in O(1) time, only in O(n) time by getting the element's index in the UniformGrid's children collection by searching for it, and then applying division and modulo operators in combination with the UniformGrid's Columns
property. This is shown in the SO article here.
If you are looking for a faster means of doing this you will have to keep track of this yourself, perhaps by introducing the values as properties in your component at the moment you add them to your UniformGrid.