Is it possible to set a style in XAML that selectively affects controls?

前端 未结 2 719
一向
一向 2020-12-16 22:25

In I have defined following style:

    

        
        IP
        Port
        Status
    

by using the {x:type } syntax you dont need the x:key,it will set the style for all textblocks in the wrappanel. if you want diff styles, you can still use the x:key and explicity set the style on the textblock.

提交回复
热议问题