CalcBinding icon indicating copy to clipboard operation
CalcBinding copied to clipboard

Binding Visibility

Open LucaFagan opened this issue 5 years ago • 1 comments

Hello,

I'm not able to use the following syntax decrived in your examples

xmlns:c="clr-namespace:CalcBinding;assembly=CalcBinding"
xmlns:sys="clr-namespace:System;assembly=mscorlib"

Visibility="{c:Binding '(JobParamsOtt.MULTIPLY_RIP_TYPE != 1) ? sys:Visibility.Visible : sys:Visibility.Hidden'}">

I get error: XamlParseException: The type reference cannot find the named type '{clr-namespace:System;assembly=mscorlib}Visibility'.

I've tried to change reference to sys in this way but keep getting error

xmlns:sys="clr-namespace:System;assembly= System"

I get error: XamlParseException: The type reference cannot find the named type '{clr-namespace:System;assembly=System}Visibility'.

What is wrong with my code ?

Regards Luca

LucaFagan avatar Oct 27 '20 04:10 LucaFagan

I've discovered that the right name space is

xmlns:win="clr-namespace:System.Windows;assembly=PresentationCore"

LucaFagan avatar Oct 27 '20 16:10 LucaFagan