c# - Dynamically changing coloration of TextBlock -


i have windows 8 application , trying create landing view it. it's still needs spupport windows 8, hub control unavailable. looks similar. first section contain darker picture , second 1 contain gridview elements on white background. , during scrolling application title should stay in place.

but result have problem title textblock. while it's placed on image should white, after scrolling further should invert color of text part on white background.

here sample markup:

<grid background="{themeresource applicationpagebackgroundthemebrush}">     <scrollviewer zoommode="disabled" verticalscrollmode="disabled"                    verticalscrollbarvisibility="disabled" horizontalscrollbarvisibility="auto">          <stackpanel orientation="horizontal">             <rectangle width="500" fill="purple"/>             <rectangle width="5000" height="500" verticalalignment="center" fill="lightcyan"/>         </stackpanel>     </scrollviewer>      <textblock text="application name" foreground="white"                fontsize="32" fontfamily="segoe ui"                 fontweight="bold" margin="48 24 0 0"                 horizontalalignment="left" verticalalignment="top"/>  </grid> 

maybe has ideas on how should implemented?


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -