Alex141 / CalcBinding

Advanced WPF Binding which supports expressions in Path property and other features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binding Visibility

LucaFagan opened this issue · 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

I've discovered that the right name space is

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