c# - Get previous item in grid winrt -
<grid x:name="gridgeneralproperties" horizontalalignment="left" height="613" margin="233,5,0,0" grid.row="1" verticalalignment="top" width="437"> <textblock textwrapping="wrap" text="general properties" fontsize="16" margin="162,10,18,573"/> <textblock textwrapping="wrap" text="name" margin="10,69,298,521" fontsize="14.667"/> <textbox textwrapping="wrap" text="{binding document.documentname}" isreadonly="true" margin="144,59,73,520"/> <appbarbutton x:name="appbarbuttoneditname" horizontalalignment="left" label="" margin="349,39,-12,0" verticalalignment="top" icon="edit" height="75"/> </grid>
is there way access previous in grid? in case, if user clicks on appbarbutton, want make previous textbox editable. in instances of button clicked, previous item textbox.
in case - know 1 previous in xaml - can name access it.
the general solution index of starting element in grid.children
collection , previous 1 @ index - 1.
mvvm way go though. i'm not sure why need button make textbox
editable - leave editable , save space.
Comments
Post a Comment