Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Visibility binding of a TextColumn
posted

Hi,

I'm trying to set the Visibility of a TextColumn using binding (MVVM style, INotifyPropertyChanged...):

Visibility="{Binding ElementName=LayoutRoot, Path=DataContext.MyVisibilityProperty}"

Somehow this doesn't work. The MyVisibilityProperty raises the PropertyChanged event, but nothing happens. How can I get this to work?

Thanks,

Arjen

Parents
  • 27093
    Verified Answer
    posted

    Hi Arjen,

    I looked more thourougly into this and found a solution that should work better in your situation: Visibility={Binidng isVisible,  Source={StaticResource myViewModel}

    Hope this suits you better. Please let me know if you got everything working.

    Regards Petar.

Reply Children