Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - Get the x:Name property dynamicly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get the x:Name property dynamicly

 Post Reply Post Reply
Author
Message
sand.fj.wen View Drop Down
Newbie
Newbie


Joined: 25 April 2011
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote sand.fj.wen Quote  Post ReplyReply Direct Link To This Post Topic: Get the x:Name property dynamicly
    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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.140 seconds.