当前位置:网站首页>Newbeecoder. UI new open source control library DataGrid instructions

Newbeecoder. UI new open source control library DataGrid instructions

2022-06-23 20:31:00 User 7152477

use DataGrid Control to display a collection of data and information . stay WPF Can customize appearance , Cell , Form head , typeface , Color and so on .

Use ItemsSource Property to bind the data source , Bind any implementation IEnuemerable Data source . By default , When the user clicks DataGrid The entire row will be selected when the cells in the , If the user selects the multiline setting SelectionMode attribute . If you do not want to generate automatic columns, use AutoGenerateColumns Property is set to false.

GridLinesVisibility Make gridlines visible 、AreRowDetailsFrozen Freeze row details .Microsoft Docs Yes DataGrid Each function is described in detail .

There are common table options in styles , Such as alternate line background and display / Hide the title , Gridlines and scrollbars . Multiple style and template attributes , Through to ColumnHeaderStyle,CellStyle,RowStyle Custom styles meet design requirements .

Newbeecoder.UI Is a lightweight and extensible open source project , be based on MVVM Development framework , Can be used to quickly build WPF Applications , Without knowing the internal implementation details of the control , It is convenient to expand more control styles and use , The project uses pure C#+WPF Development , Easy to extend and integrate into development projects . As long as your existing system is used WPF Developed , You can use Newbeecoder.UI To easily develop your good-looking applications to integrate into your existing projects .

The development framework has undergone strict technical verification and system testing , Like stress testing , It has been praised and praised by the majority of users . We actively collect user feedback , Constantly improve and improve , The latest version has few systemic flaws . We share successful experiences , Adhere to the principle of innovation , Always provide high-quality after-sales service and technical support . Every time a new version is released , It will certainly surprise users , Every free upgrade , It will make users feel intimate and warm . We are committed to innovation 、 focus 、 major , A consistent spirit , Willing to share success and joy , Welcome to our products .

Demo Version download address :https://download.csdn.net/download/liaohaiyin/63234875

Newbeecoder.UI The control library develops stable and efficient projects according to user needs , Demonstrate the overall function of the control library through video :

Video content

​ Use in control Libraries DataGrid It's simple . Let's take a screenshot to see the effect and the calling code :​

<Grid DataContext="{Binding Source={StaticResource Items}}">
    <DataGrid Style="{DynamicResource DefaultDataGridStyle}" ColumnWidth="*" ItemsSource="{Binding Mode=Default, XPath=/MockObjects/MockObject}">
        <DataGrid.Columns>
            <DataGridTextColumn Header=" Number " Binding="{Binding [email protected]}"/>
            <DataGridTextColumn Header=" full name " Binding="{Binding [email protected]}"/>
            <DataGridTextColumn Header=" abbreviation " Binding="{Binding [email protected]}"/>
        </DataGrid.Columns>
    </DataGrid>
</Grid>

原网站

版权声明
本文为[User 7152477]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112311043316506.html