Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to display a text value in the designer but also do a binding?????

$
0
0

Hello,

When I define a textbox in my XAML, the designer will display the text as long as the Text property has a value:

<TextBlock Text="MyValue" /> 

But if I use a binding for the Text value, the designer does not show anything (I guess because it does not know what value to display). 

<TextBlock Text="{Binding Path=Value}" />

When I am trying to layout the GUI, it is pretty important to know where all the controls visually are and if the TextBlock is not visible, then you lose track of it.  Is there a way to set the text value via a binding but still have the designer visually indicate that a TextBlock component is located there?

Thanks for any insight - Peter Len


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>