Keep text block in view while scrolling in window phone 8.1 Runtime -


my problem similar article

but need implement in wp8.1 runtime. want textblock (name=txt_latest_update) in view while scrolling

here xaml code

<grid name="root_content" background="#fff7fdf7">     <grid.rowdefinitions>         <rowdefinition height="70"/>                   <rowdefinition height="*"/>     </grid.rowdefinitions>      <border grid.row="0" background="red">         <image source="/assets/nepaltoday.png" horizontalalignment="left" margin="10,0,0,0"/>          </border>      <scrollviewer grid.row="1"   name="frontpage_scrollview" verticalscrollbarvisibility="visible"                    >                     <stackpanel>             <grid>                 <grid.rowdefinitions>                     <rowdefinition height="300"/>                     <rowdefinition height="*"/>                 </grid.rowdefinitions>                 <grid grid.row="0">                     <image name="startscren"  stretch="fill"/>                     <grid>                         <grid.background>                             <lineargradientbrush startpoint="0.3,0" endpoint="1,0.">                                 <gradientstop color="transparent" offset="0"/>                                 <gradientstop color="black" offset="1.2" />                             </lineargradientbrush>                         </grid.background>                     </grid>                     <grid horizontalalignment="right" margin="0,10,10,0">                         <stackpanel>                             <textblock name="txt_nepali_date" foreground="white" fontsize="26"/>                             <textblock name="txt_eng_date" foreground="white" fontsize="26" />                             <textblock name="txt_temp"  foreground="yellow" fontsize="44" margin="0,20,0,0"/>                             <textblock name="txt_location" fontsize="22"/>                                               </stackpanel>                     </grid>                 </grid>                  <grid grid.row="1">                     <grid.columndefinitions>                         <columndefinition width="*"/>                         <columndefinition width="*"/>                     </grid.columndefinitions>                      <grid.resources>                         <style targettype="button">                             <setter property="borderbrush" value="lightgray"/>                             <setter property="borderthickness" value="0,1,1,1"/>                             <setter property="height" value="auto"/>                             <setter property="margin" value="0,0,0,-20"/>                         </style>                     </grid.resources>                      <stackpanel grid.column="0">                         <button name="btnnews" click="btnnews_click">                             <image source="/assets/frontpage/horoscope.png" verticalalignment="stretch"/>                         </button>                         <button name="btnhoroscope" click="btnhoroscope_click">                             <image source="/assets/frontpage/horoscope.png"/>                         </button>                         <button name="btncurrencyexchanges" click="btncurrencyexchanges_click">                             <image source="/assets/frontpage/currency exchange.png"/>                         </button>                         <button name="btnstockexchanges" click="btnstockexchange">                             <image source="/assets/frontpage/on day.png"/>                         </button>                         <button name="btnonthisday" click="btnonthisday_click">                             <image source="/assets/frontpage/horoscope.png"/>                         </button>                         <button name="btnmovie" click="btnmovie_click">                             <image source="/assets/frontpage/horoscope.png"/>                         </button>                     </stackpanel>                      <stackpanel grid.column="1" >                         <button name="btnweather" click="btnweather_click">                             <image source="/assets/frontpage/whether.png"/>                         </button>                         <button name="btnloadshedding" click="btnloadshedding_click">                             <image source="/assets/frontpage/loadshedding.png"/>                         </button>                         <button name="btngoldsilver" click="btngoldsilver_click">                             <image source="/assets/frontpage/gold_silver rates.png"/>                         </button>                         <button name="btntheatre" click="btntheatre_click">                             <image source="/assets/frontpage/theater.png"/>                         </button>                         <button name="btncalendar" click="btncalendars">                             <image source="/assets/frontpage/horoscope.png"/>                         </button>                     </stackpanel>                 </grid>             </grid>                       </stackpanel  >      </scrollviewer>      <border name="titleborder" grid.row="1"              background="#ff264778" opacity="0.7"              margin="0,260,0,0"               height="{binding elementname=titletext, path=height}"               verticalalignment="top">          <textblock name="txt_lastest_update" horizontalalignment="center"                       text="keep in view"                    foreground="white"                     fontsize="22"                    margin="12" />     </border> </grid> 

any suggestion?

hey think problem is, want keep textblock fixed while list scroll. have keep list in different grid , textblock in different grid need fix. , make grid contain list scrolable = true.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -