How to access button in some other cs file
-
Hi i am using WPf for my app. I have created a button. I disabled that button by default. I want to enable that button in some other file( not code behind) in the project at some point of time according to my logic ( in different cs file). How can i access that button? Does any one have any idea how to do this. Santhapur.
-
Hi i am using WPf for my app. I have created a button. I disabled that button by default. I want to enable that button in some other file( not code behind) in the project at some point of time according to my logic ( in different cs file). How can i access that button? Does any one have any idea how to do this. Santhapur.
You can use the
LogicalTreeHelper
class to find the button. Alternatively, you can use theFindName
method in theFrameworkElement
class.Deja View - the feeling that you've seen this post before.
-
You can use the
LogicalTreeHelper
class to find the button. Alternatively, you can use theFindName
method in theFrameworkElement
class.Deja View - the feeling that you've seen this post before.
-
Deja View - the feeling that you've seen this post before.
-
Deja View - the feeling that you've seen this post before.