单项选择题
You have definded a style in app.xaml
You want to use this style in your application in code behind.
How can you achieve this? ()
A. button1.Style = FindName("A") as Style
B. button1.Style = FindName("B") as Style
C. button1.Style = FindResource("A") as Style
D. button1.Style = FindResource("B") as Style
相关考题
-
单项选择题
You have a custom button, with should have a Property "IsActive", one must be able to bind this Property on a class Property.()
A. Dependency Property
B. INotifyPropertyChanged
C. net Property -
单项选择题
Where can you check the value of a dependency property? ()
A. WPF visualizer
B. in locals
C. WPF tree visualizer -
单项选择题
Which of the following examples of the pack URI syntax accesses a file named myImage.jpg in a folder named MyFolder in another assembly named myAssembly? ()
A. Pack://application:,,,/myAssembly;component/MyFolder/myImage.jpg
B. Pack://application:,,,/myAssembly;MyFolder/component/myImage.jpg
C. Pack://application:,,,;component/myAssemby/MyFolder/myImage.jpg
D. Pack://application:,,,/myAssembly;component/myImage.jpg
