I hope the title is somewhat clear.
In windows forms this is pretty straight forward.

But for whatever reason in WPF its not the case.

I am trying to change the opactiy of 2 labels.
Both labels are on seperate windows.
Window1 has a button to change opacity of a label to 0 and a label to change it to 100.
But these buttons need to change both labels on window1 and window2.

Is this possible in WPF?

Got this as code for the opacity, which only works on the form where the button is on.

        private void BtnIncreaseOpacity_Click(object sender, RoutedEventArgs e)
            lblDrag.Opacity = 100;
            win2.lblDrag2.Opacity = 100;

In the Public partial class

        TrackerMessage win2 = new TrackerMessage();

Got the same problem with getting a label to become visible when a timer on window1 has run out.

Any help is appreciated.

4 Years
Discussion Span
Last Post by Sevyt
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.