Cannot change tabItem's iconSource while selectedIndexChange event in TabView




I have tried to change the selected tab’s iconSource while selectedIndexChanged event occured in TabView.

But its not changed based on selection.
I searched and got the following results,

From these above discussions, I don’t get understand like how to solve this issue.
Please suggest !