* Run the Doubleclick action only on Grid and Stackpanel and cleanup the logic * Remove ternary operator because it is only supported for powershell 7+
* Run the Doubleclick action only on Grid and Stackpanel and cleanup the logic * Remove ternary operator because it is only supported for powershell 7+