-
Notifications
You must be signed in to change notification settings - Fork 563
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
.NET WPF doesn't render a simple card #2569
Comments
card renders as expected in designer... |
@paulcam206 does this need to be fixed for 1.2? If so we should get to this soon |
@shalinijoshi19 -- this should be fixed with changes to what |
@paulcam206 still working on this for 1.2 or should we move out? |
we should move this out. I took a look. it only affects .Net WPF and isn't a regression. |
Didn't we had to set rules on how the ids for elements had to be? I believe the issue has to do with the card having a number only id |
Exactly what Paul commented |
@paulcam206 @matthidinger what was the format we decided upon this?? According to the WPF documentation " a Name must start with a letter or the underscore character (_), and must contain only letters, digits, or underscores. " |
We have 2 choices I think:
I'm kind of on the fence personally. Does this payload work properly on all other renderers as of today? If so, I'm inclined to keep it permissive and do the WPF fixup. @dclaux any thoughts? |
@matthidinger I only found WPF to have this issue, all the other platforms accept numbers as id |
How expensive is 4 (a) going to be @almedina-ms ? |
@andrewleader proposal may still be the best option, having a dictionary when rendering with all the ids and rendered items to handle all id's , that way we don't have to worry about changing the ids prefixing an underscore '_' and we don't have to deal with the 'Name' message and the impact on the client side
|
The users specify ids for retrieving the input data in submit actions and for defining the elements to be hidden by a ToggleVisibility action
We dont have any rules defined for how an id should be formed and we don't have tests on other type of scenarios so there could be other mismatches between the platforms.
The error is confusing as we're setting the name property to the rendered UIElement for retrieving the element using the
The draft #3242 supports any kind of string so its just as permissive as the string type is, it just requires an extra dictionary which contains pairs of string and UIElement where the string is the object model's id |
@shalinijoshi19 , any thoughts about this? |
Thanks! Can you do me a favor write this up into a one-pager and lets review this on Friday? Thanks |
@almedina-ms we'll need a onepager for this to review please! thanks |
This issue has been automatically marked as stale because it has not had any activity for 5 days. |
🎉 Handy links: |
.NET WPF (haven't tested HTML yet) fails to render this card:
exception message:
Aside from the exception itself, it's noteworthy that we're not converting the
System.ArgumentException
to anAdaptiveException
.The text was updated successfully, but these errors were encountered: