Binding a UserControl to a custom BusyIndicator control

后端 未结 2 1425
野的像风
野的像风 2021-01-25 23:46

I have a requirement to focus on a specific textbox when a new view is loaded.

The solution was to add this line of code to the OnLoaded event for the view:



        
2条回答
  •  逝去的感伤
    2021-01-26 00:38

    @Matt, not sure

    DataContext="{Binding RelativeSource={RelativeSource Self}}"
    

    will work in Silverlight 5, have you tried binding it as a static resource?

提交回复
热议问题