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

[WPF] Change TextBlock to render only when text is not empty #4799

Merged

Conversation

almedina-ms
Copy link
Contributor

@almedina-ms almedina-ms commented Sep 22, 2020

Related Issue

references #4478

Description

Updated WPF renderer to render a textblock only when text is given

How Verified

The fix was verified manually, as in WPF we don't raise parsing errors, then it's a rendering only fix

image

Microsoft Reviewers: Open in CodeFlow

@almedina-ms almedina-ms merged commit 23ea105 into jwoo/TextBlockUpdate Sep 22, 2020
@almedina-ms almedina-ms deleted the user/almedina-ms/WPF_TextBlockUpdate branch September 22, 2020 21:42
jwoo-msft added a commit that referenced this pull request Sep 29, 2020
* work in progress

* updated ChoiceSetInput.cpp

* changed the code such that missing text doesn't throw exception

* updated TextBlock Test

* uwp changes

* android changes

* Updated Shared Model to include parse warnings

* [WPF] Change TextBlock to render only when text is not empty (#4799)

* Change default value and change rendering behavior

* Add skip to failing test

* perf investigation

* investigation changes

* Updated Default Value Handling

* Updated app to have explicit render button

* changed the code such that missing text doesn't throw exception

* updated TextBlock Test

* uwp changes

* android changes

* Updated Shared Model to include parse warnings

* more changes

* Android Changes

* work in progress

* FactSet for dotnet

* ios change

* Remove warnings for elements that failed to render and don't perform fallback on them

* addressed CR review comments

* Updated dotnet Additional Properties Handling (#4800)

* perf investigation

* investigation changes

* Updated Default Value Handling

* Updated app to have explicit render button

* reverted button changes

* addressed review comments

* removed FactSet.Test.json to include comprehensive cards from a new PR

* Removed TextBlock.Test.json for udpated card which will be added in
separate PR

* updated idl

* updated factset test

Co-authored-by: shalinijoshi19 <shalinij@microsoft.com>
Co-authored-by: almedina-ms <35784165+almedina-ms@users.noreply.github.com>
Co-authored-by: Alberto Medina Gutierrez <almedina@microsoft.com>
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* work in progress

* updated ChoiceSetInput.cpp

* changed the code such that missing text doesn't throw exception

* updated TextBlock Test

* uwp changes

* android changes

* Updated Shared Model to include parse warnings

* [WPF] Change TextBlock to render only when text is not empty (microsoft#4799)

* Change default value and change rendering behavior

* Add skip to failing test

* perf investigation

* investigation changes

* Updated Default Value Handling

* Updated app to have explicit render button

* changed the code such that missing text doesn't throw exception

* updated TextBlock Test

* uwp changes

* android changes

* Updated Shared Model to include parse warnings

* more changes

* Android Changes

* work in progress

* FactSet for dotnet

* ios change

* Remove warnings for elements that failed to render and don't perform fallback on them

* addressed CR review comments

* Updated dotnet Additional Properties Handling (microsoft#4800)

* perf investigation

* investigation changes

* Updated Default Value Handling

* Updated app to have explicit render button

* reverted button changes

* addressed review comments

* removed FactSet.Test.json to include comprehensive cards from a new PR

* Removed TextBlock.Test.json for udpated card which will be added in
separate PR

* updated idl

* updated factset test

Co-authored-by: shalinijoshi19 <shalinij@microsoft.com>
Co-authored-by: almedina-ms <35784165+almedina-ms@users.noreply.github.com>
Co-authored-by: Alberto Medina Gutierrez <almedina@microsoft.com>
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

Successfully merging this pull request may close these issues.

2 participants