MainPage properties / idledim

Hi All, is there a way to change the idledim property that is on the MainPage/NavigationPage based upon data on other pages? e.g. can I change idledim to true if another page is open?