Silverlight UserControl Custom Property Binding

前端 未结 3 1423
生来不讨喜
生来不讨喜 2021-02-07 08:36

What is the proper way to implement Custom Properties in Silverlight UserControls?

Every \"Page\" in Silverlight is technically a UserControl (they are derived from the

3条回答
  •  孤城傲影
    2021-02-07 09:04

    Instead of binding data context to self, you can set the binding in xaml by adding an x:Name for the user control and then binding in the user control xaml follows:

    
        
            
                
                
                    
                
            
         
    
    

提交回复
热议问题