Skip to content

Normal binding doesn't work #211

Description

@MasterProger

Description:

I can't set up the binding. When auto-generation of columns is disabled, nothing else works.

Steps to Reproduce:

 <tv:TableView
     Grid.Row="1"
     Grid.ColumnSpan="2"
     ItemsSource="{x:Bind Documents}"
     SelectionMode="Single"
     SelectionUnit="Row"
     IsReadOnly="True"
     AutoGenerateColumns="False" Visibility="Visible">
     <tv:TableViewTemplateColumn Header="Name">
         <tv:TableViewTemplateColumn.CellTemplate>
             <DataTemplate x:DataType="models:Document">
                 <StackPanel>
                     <TextBlock Text="{x:Bind DocumentType}" Foreground="{ThemeResource TextFillColorPrimaryBrush}"/>
                 </StackPanel>
             </DataTemplate>
         </tv:TableViewTemplateColumn.CellTemplate>
     </tv:TableViewTemplateColumn>
 </tv:TableView>

Expected behavior:

It was expected that all elements would be displayed, but they are not displayed. I tried different methods. Empty lines without text are displayed

Screenshots:

Image

Environment:

  • The latest version is being used
  • WinAppSDK Version 1.7.250606001

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions