wpf - Binding A Value in Header WP7/Silverlight -


Nob Query :)

I try to add the margin to a header through my app I have been and connecting manually not in all my thoughts and I want many header text. I know that I need to add it to App.xaml and I can apply margins but I can not seem to bind the text.

My header looks like this:

  & lt; C: panoramite Header & gt; & Lt; Text Block Margin = "50,0,0,0" Text = "Message" /> & Lt; / C: PanoramaItem.Header & gt;  

I want something like this:

  & lt; C: Panoramite Header Template = "{Static Resource Panarama Header Template}" Header = "Message" & gt;  

And there is something like App.xaml:

  & gt; Datatomplate x: key = "panarama header template" & gt; & Lt; Grid margin = "50,0,0,0" & gt; & Lt; TextBlock TextWrapping = "wrap" text = "{TemplateBinding Header}" /> & Lt; / Grid & gt; & Lt; / DataTemplate & gt;  

But I'm not getting a title right now .. I'm not sure that this is the right direction, but I know that in my thoughts it does not want to be the property element syntax.

Any help?

Thanks

I am not familiar Paramahadar for the phone, but I believe In your DataTemplate in your TextBlock : TextWrapping = "wrap" text = "{binding}" />


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -