Thursday, February 26, 2015

Hub.Header margin/border hides right aligned text

Hi,


I want to have some text aligned all the way to the right in the Hub.Header. But then there is a right margin/border that hides part of the text on the right side.


How do I get rid of that margin/border or how do I get the text to be all the way to the right?


This is what I have:



<Hub Name="MyHub">
<Hub.Header>
<TextBlock Text="Something" TextAlignment="Right" Width="{Binding ActualWidth, ElementName=MyHub}"></TextBlock>
</Hub.Header>
<HubSection>
<DataTemplate>
<TextBlock Text="Some content here"></TextBlock>
</DataTemplate>
</HubSection>
</Hub>


No comments:

Post a Comment