Get the x:Name property dynamicly |
Post Reply |
Author | |
sand.fj.wen
Newbie Joined: 25 April 2011 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 25 April 2011 at 5:28am |
Hi,
I am programming with CXTPMarkupObject these days, now there is a question puzzles me... I set the Run element with Property x:Name="total_count" in a xaml file like this: <Run x:Name="total_count" MouseLeftButtonUp="Run_MouseLeftButtonUp">...</Run> <Run x:Name="item_first" MouseLeftButtonUp="Run_MouseLeftButtonUp">...</Run> <Run x:Name="item_second" MouseLeftButtonUp="Run_MouseLeftButtonUp">...</Run> when click on the Run element, Run_MouseLeftButtonUp() method is called, but in the Run_MouseLeftButtonUp(), I want to get the clicked Run element's x:Name property, so that I can deal with different method, how can I get the x:Name property in programming? Thanks, best regards! |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |