본문 바로가기
C#/컨트롤

[WPF] 컨트롤에서 따옴표 ['], 쌍따옴표 ["] 표시

by izen8 2023. 9. 6.
반응형

따옴표(싱글 쿼트)를 사용하려면 '
쌍따옴표/더블쿼트를 사용하려면 " 를 사용해주면 된다

<!--사용 예시-->
<TextBlock FontSize="20" Text=" &quot; 입니다."></TextBlock>

https://learn.microsoft.com/en-us/dotnet/desktop/xaml-services/xml-character-entities?redirectedfrom=MSDN

 

XML Character Entities and XAML - XAML

Describes how special characters are handled in XAML and general considerations for other XML concepts in XAML.

learn.microsoft.com

 

변수 타입 String 에서의 사용법은 String strTmp = String.Format("쌍따옴표 : \""); 

 

반응형

댓글