Alex141 / CalcBinding

Advanced WPF Binding which supports expressions in Path property and other features
Apache License 2.0
638 stars 79 forks source link

Binding Visibility #68

Open LucaFagan opened 4 years ago

LucaFagan commented 4 years ago

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 commented 4 years ago

I've discovered that the right name space is

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