首页 > 其他分享 >WPF DataGrid FrozenColumnCount="2" AreRowDetailsFrozen="True" RowDetailsVisibili

WPF DataGrid FrozenColumnCount="2" AreRowDetailsFrozen="True" RowDetailsVisibili

时间:2024-09-22 20:12:26浏览次数:7  
标签:FrozenColumnCount DataGrid Visible RowDetailsVisibilityMode AreRowDetailsFrozen 

 <DataGrid ItemsSource="{StaticResource booksData}"
           EnableColumnVirtualization="True"
           EnableRowVirtualization="True"
           FrozenColumnCount="2"
           AreRowDetailsFrozen="True"
           RowDetailsVisibilityMode="Visible">
     <DataGrid.RowDetailsTemplate>
         <DataTemplate>
             <Viewbox>
                 <Image Source="{Binding ImgUrl}" Width="200" Height="500"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Stretch"/>
             </Viewbox>
         </DataTemplate>
     </DataGrid.RowDetailsTemplate>
 </DataGrid>

 

 

 

 

 

标签:FrozenColumnCount,DataGrid,Visible,RowDetailsVisibilityMode,AreRowDetailsFrozen,
From: https://www.cnblogs.com/Fred1987/p/18425791

相关文章