Windowscommunitytoolkit: MarkDownTextBlock ignors setting the Text-Property to an empty string

Created on 19 Feb 2018  路  7Comments  路  Source: windows-toolkit/WindowsCommunityToolkit

I'm submitting a bug

Current behavior


MarkDownTextBlock ignors setting the Text-Property to an empty string

Expected behavior


Setting the Text-Property to an empty string should clear the current content

Minimal reproduction of the problem with instructions

Environment

Nuget Package(s): 

Package Version(s): 

Windows 10 Build Number:
- [ ] Anniversary Update (14393) 
- [ ] Creators Update (15063)
- [x] Fall Creators Update (16299)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Anniversary Update (14393) 
- [ ] Creators Update (15063)
- [x] Fall Creators Update (16299)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [x] 2017 (version: current)
- [ ] 2017 Preview (version: )

bug controls in progress

Most helpful comment

All 7 comments

Looks like it also ignores whitespace. @WilliamABradley, any ideas?

Is this happening when you set the Text to empty from code behind? Or from XAML? I don't see that happening though in either cases.

... in both, code and XAML binding.
You also can see this in the sample app when deleting all text in the upper textbox.
2018-02-19

Great find, could you submit a PR?

WOI

PR merged

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HesamKashefi picture HesamKashefi  路  54Comments

Vijay-Nirmal picture Vijay-Nirmal  路  47Comments

Mimetis picture Mimetis  路  29Comments

deltakosh picture deltakosh  路  34Comments

achabill picture achabill  路  46Comments