Why does an x:Array element cause any x:Shared attribute following it to be ignored?

前端 未结 1 1300
[愿得一人]
[愿得一人] 2021-01-19 08:34

I suspect a XAML compiler and/or WPF bug, but I want to make sure I haven\'t done something wrong here (other than trusting the XAML compiler and/or WPF, that is :) ).

1条回答
  •  天命终不由人
    2021-01-19 08:45

    Write explicitely into :

    
      
         
          
            value #1
            value #2
            value #3
          
          
         
      
      
        
          
          
        
      
    
    

    I had a very similar issue (actually, quite exactly the same, only with UserControl). I was desperate when I tried the above workaround :), but it worked.
    I've just tried it out with your example code now, with explicit it works by me, without it it doesn't.

    0 讨论(0)
提交回复
热议问题