Hi Bibek,
Please refer our sample here:
The WMTS logic should be the same between web and wpf.
Regards,
Ethan