C# - Programmatically change content of xaml : So I'm wondering if it's possible to change xaml programmatically through c#

Basically what I'm trying to do is hide or replace a specific element, using a if statement within my class file.

The code I'm trying to manipulate is below, to be more specific I want to know how to replace Spin="True" with Spin="False" well atleast to get me in right the direction of programmatically editing xaml

 
    <fa:ImageAwesome Icon="Refresh" Spin="True" Height="48" Width="48" Margin="0,350,0,0" />

So at the current state spin is equal to true so therefore the icon within the grid would spin, but I would like to set spin is equal to false during some form of if statement or simply within 5 seconds of the current form being active.

