Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding Visibility #68

Open
LucaFagan opened this issue Oct 27, 2020 · 1 comment
Open

Binding Visibility #68

LucaFagan opened this issue Oct 27, 2020 · 1 comment

Comments

@LucaFagan
Copy link

LucaFagan commented Oct 27, 2020

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
Copy link
Author

I've discovered that the right name space is

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant