How can you set a property attribute as a literal string and not a mark up extension?



How can you set a property attribute as a literal string and not a mark up extension?..

Answer / Pawan Prajapati

To set a property attribute as a literal string without using a markup extension, enclose the value in double quotes (e.g., `<Button Content="Hello World" />`). If the string contains double quotes, escape them with another double quote (e.g., `<Button Content="A "Quoted" String" />`).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WPF Interview Questions

What is the difference between dynamicresource and staticresource?

1 Answers  


Explain wpf relative binding/ relative resource?

1 Answers  


Name the namespace required for working with 3d?

1 Answers  


Is x:static the same as a data binding?

1 Answers  


Why do we need xaml in wpf?

1 Answers  


What are the controls and events in WPF?

1 Answers   Wipro,


What are the different ways of binding using relative source?

1 Answers  


What are the advantage of mvvm?

1 Answers  


What is the use of "system.windows.markup" namespace in wpf?

1 Answers  


What are the core wpf assemblies?

1 Answers  


How to add windows form in wpf application?

1 Answers  


What is the unit of measurement in WPF?

1 Answers  


Categories