취소선이 바인딩 과정에서 뭘 잘못했는지 아님 뭐가 잘못되었는지 모르겠어서 간단하게 버튼 2개와 텍스트 하나를 만들어 돌려본 결과 취소선이 그어지기만 할 뿐, 사라지지는 않았다. 바인딩 문제는 아닌 것 같다.
찾아본 결과,
텍스트블럭의 텍스트를 잠시 비운 다음 TextDecorations를 None으로 고친 후에 다시 텍스트를 채우면 정상적으로 취소선을 지울 수 있었다.
이를 ToDo리스트에 적용하려고 또 별짓을 다했다.
졸리다.
근데 결국 안 되더라고요... 그냥 투두리스트는 여기까지만 하고 포기할게요...
인터넷에서 참고한 자료들
https://github.com/microsoft/microsoft-ui-xaml/issues/1093
Setting TextDecoration = None on TextBlock does not remove the strike through after applying it · Issue #1093 · microsoft/micr
Describe the bug I am trying to strike through a TextBlock when the user taps it. This works great, but it's not possible to clear the strike through decoration once it's been applied. Step...
github.com
https://stackoverflow.com/questions/59410953/how-to-pass-element-in-the-converter-parameter-in-uwp
How to pass element in the converter parameter in uwp?
I have to pass the element in the converter parameter in UWP as like below WPF code snippet. <DataTemplate> <TextBlock Text="{Binding Converter={StaticResource
stackoverflow.com
'C# > WinUI3' 카테고리의 다른 글
[WinUI3] Color Picker 사용기 (2) | 2023.01.28 |
---|---|
[WinUI3] Navigation (0) | 2023.01.27 |
[WinUI3] ToDo리스트 만들기(2) (0) | 2023.01.24 |
[WinUI3] ToDo리스트 만들기(1) (0) | 2023.01.24 |
Xaml에서 한글 입력 시 깨질 때 (0) | 2023.01.23 |