0
Follow
0
View

x:Bind in WinUI3 Binding to a datetime

dailiben 注册会员
6 days ago

I could reproduce your behavior when putting the Textblock into a DataTemplate of a ListView.HeaderTemplate. I'm not sure about the reason but I suspect the behavior is related to the . When you put the TextBlock into a DataTemplate, the DataContext will be changed into the root control of the GridView template.

A workaround that I used is to put the TextBlock into a instead of directly putting the TextBlockinto the DataTemplate.

UserControl:

 
    

Page:

 
        
            
                
                    
                    
                    
                    
                    
                
            
        
        123
        123
        123
        123
    

What it looks like:

About the Author

Question Info

Publish Time
6 days ago
Update Time
6 days ago

Related Question

如何检查表雪花是空的,并得到它的响应- Java, SpringBoot

electron+vue开发windows桌面端 ,获取串口列表

Intellij插件完成退出点?

请问怎么才能不走winmain建立窗口程序?

initialPreviewFileType预览图片和视频

idea打开出现error launching

无法从kubernetes集群外在金属下到达Jenkins Pod

scanf优先于printf执行

在期望流的地方提供'undefined'.你可以提供Observable、promise、Array或Iterable

ubuntu怎么连接finalshell