WPF XAML Escape Sequence {}


Example:

<TextBox Text="{}pack://application:,,,/Controls;component/WatermarkTextBox/WatermarkTextBoxSample.xaml" />
 
{} is the escape sequence for string use in XAML. 

Reference:
http://msdn.microsoft.com/en-us/library/ms744986.aspx

Comments

Popular posts from this blog

WPF How to Dispose ViewModel when the associated UserControl (Not Window) closes?

C# How to unit test Dispatcher

WPF: How to Deep Copy WPF object (e.g. UIElement) ?