How can you achieve this?

You have definded a style in app.xaml

<Style x:Key=”A” x:Name=”B”

</Style>
You want to use this style in your application in code behind.
How can you achieve this?

You have definded a style in app.xaml

<Style x:Key=”A” x:Name=”B”

</Style>
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



Leave a Reply 0

Your email address will not be published. Required fields are marked *