How to access XAML members


hey

i'm getting started xaml/wpf (coming c#) , stumbled across following basic question: how can access members declared in xaml let's button. googled lot , searched through several msdn articles couldn't find hint except can use event instance of button (but want direct access).

another question: xaml executed when initializecomponent() method called?

thanks help!

hello.

if you're using  codebehing file, think can access control using name (ie, if use x:name attribute, name codebehind file reference control). can use findname method reference control (though isn't needed in codebehind file).



Archived Forums SA-SM  >  Silverlight (formerly WPF/E) Developer Issues



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........