The Uid property for WPF elements is set to a unique text though it is represented with a number in Test Studio.
This behavior has been fixed and will be available in the upcoming Test Studio release