How to bind a (static) Dictionary to Labels?

后端 未结 4 1011
自闭症患者
自闭症患者 2021-01-19 05:57

I have a static Dictionary

class X { static Dictionary MyDict {get { ... }} }

This Dictionary contains Data i want to

4条回答
  •  感情败类
    2021-01-19 06:34

    To get access to the Dictionary, you have to do something like this (if your DataContext isn't already an instance of X):

    
        
            
        
        
    
    

    To access the values in the dictionary, your binding has to look as follows:

提交回复
热议问题