I created the item template control and set its border thickness and color in Data Template. This is my ItemTemplate code: