XAML bind to static method with parameters

后端 未结 2 1960
一个人的身影
一个人的身影 2021-02-05 07:21

I got a static class like the following:

public static class Lang
{
   public static string GetString(string name)
   {
      //CODE
   }
}

Now

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 07:38

    The right way would be to go the objectdataprovider route. Although if you are just binding to text rather than use a label, I would use a textblock.

    
                     
                         Parameter1 
                    
    
    
    
    

提交回复
热议问题