Equivalent of CSS in XAML

前端 未结 2 1081
北恋
北恋 2021-02-08 01:52

In web development, styles sheets are very commonly used. In Swing there are layout managers for handling of the GUI. Am I correct in the assumption that XAML applies one of tho

2条回答
  •  孤独总比滥情好
    2021-02-08 02:13

    Better way to store style as a resource in the assembly so that it can be available in multiple files as css

    you can check : Silverlight and styles

    Also check : How to set Silverlight Control Styles via Application.Resources

    put style like this in Application.Xaml file or create new one for you

    
        
            
        
    
    

    Now you can utilize like this in multiple uercontrol to assign style to button

    
        
            

提交回复
热议问题