-
Notifications
You must be signed in to change notification settings - Fork 168
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
IsVisible? #57
Comments
It works and it doesn't work. @Eilon I think I found the bug: Considering the example below, if the
But if change the code to this:
The label is still there! As we know, if the
Every element in MobileBlazorBindings has two classes. A wrapper and handler. In
Later, in
The only problem is, this ApplyAttributes method (for I think the bug is, when the I debugged it several times, and it seems I'm correct. |
@0x414c49 Thanks very much... your answer led me to the answer. I got caught up trying to figure out Xamarin and forgot I was using Blazor. It's working now. |
Ah yes I figured there were some cases like this that weren't handled properly, but I hadn't yet seen any. The fundamental issue is covered by this issue I logged a while ago: #15 And, the tool I'm working on in #25 will help produce the right code for these. This is what I'm working on right now so I hope to have this fixed very soon. |
It turns out there were numerous problems conspiring together to prevent this from working. I think I have them all fixed on my machine.
|
This is the key part of the fix for #57
OK I think this is now fixed in the live code base. Definitely a very interesting issue to fix because it helped uncover some gnarly bugs! |
At least I'm trying things :-) Does the IsVisible attribute work? I set it to false on a StackLayout that is in a GridCell but the components in that StackLayout are displayed.
There are also warnings displayed on two properties
Component parameter 'IsVisible' should not be set outside of its component
Component parameter 'BackgroundColor' should not be set outside of its component
The text was updated successfully, but these errors were encountered: