The most basic difference is that StaticResource evaluates the resource one time only, but
DynamicResource evaluates it every time the resource is required. And due to this reason,
DyanamicResource is heavy on the system but it makes pages or windows load faster