Change properties of an object afterwards

Hey guys,

right now i am searching for the possibility to change the properties of an object after it was already created (in best case even from another UX-File).
For example I created this object:

<Image ux:Name="myImage" File="Assets/image.png" Visibility="True"/>

And afterwards, maybe even from another UX-File if possible, I need to change the visibility or add other parameters to it.

How can i do that?

I already found out to do this with

    <Set Target="Filter.Visibility" Value="Hidden"/>

But is there away to do this in an UX-File while the Target is in another?

One way to do this is to put the image inside a trigger such as WhileTrue, and data bind that to a shared JavaScript variable that you can access from wherever you need it. There’s an example at the end here