Welcome to Microsoft Q&A!
I want to control how many times GIF is played.
There is no native UWP API that can control the repeat times for GIF files. In UWP apps, we use BitmapImage Class to show the GIF files. There are three properties that related to using GIF files,
IsPlaying. Nono of them could control the repeat times of the GIF.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.