i have another problem in the same template the button overlaps the text when text is larger how to handle that
You have the TextBlock and the Button both occupying the same cell, but with opposite alignments. So if they are large enough, they will naturally overlap.
The two objects are already in a “Table” Panel, so you can try setting the Picture’s column to 1 so that they occupy different cells.