UWP擅长风格网格 [英] UWP excel style grid

查看:123
本文介绍了UWP擅长风格网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将一个相当复杂的Excel电子表格计算工具转换为UWP。



从我的在线研究中,在UWP下传统意义上没有'网格' ,除非你使用像Syncfusion这样的第三方工具。



我目前有几个网格(5行x 49列),但是因为XAML Binding没有映射到字典好吧,我必须为每个'单元'创建一个属性来绑定(每个网格245个属性),更不用说所有的OnPropertyChanged调用了。



我'已完成一个网格,它工作正常 - 但我有另外4个实现,然后另外5(14 x 49)数据输入网格。



这似乎是很多努力,所以我不禁想到我错过了一些东西,并且必须有一个更简单的方法。



有没有人有任何建议?



提前致谢。



我尝试过的事情:



大锤方法 - 财产&每个单元格的文本框网格。我没有尝试过使用Collection和Converter。

解决方案

Telerik的商业UWP控件套件最近开源(即:免费)并具有强大的网格控件:

*网站:通用Windows平台的用户界面,Windows 10用户界面| Telerik [ ^ ]

* Github: telerik / UI-For-UWP:此repo包含Telerik UI for Universal Windows的源代码平台(UWP),包括20多个用于构建UWP应用程序的开发人员的UI控件。 [ ^ ]



Syncfusion还有一个商业UWP控制套件,您可以在社区许可下免费使用:

*网站:全面的UWP控件集合,包括用于开发Windows应用商店/都市风格应用的图表,量表,地图和日期选择器 [ ^ ]

*社区许可: 800+ Free co .NET的控件和框架(Windows窗体,WPF,ASP.NET MVC,ASP.NET Web窗体,LightSwitch,Silverlight,Windows Phone,WinRT,Windows 8),iOS,Android,Xamarin和JavaScript平台 [< a href =https://www.syncfusion.com/products/communitylicensetarget =_ blanktitle =New Window> ^ ]



Microsoft还有一个社区驱动的扩展控制套件,您可能需要查看:

* Annoucement(带链接): Microsoft发布UWP Community Toolkit 1.3,支持新的OneDrive和Surface Dial等--MSPoweruser [< a href =https://mspoweruser.com/microsoft-releases-uwp-community-toolkit-1-3-with-new-onedrive-support-and-more/target =_ blanktitle =New Window > ^ ]

I'm currently converting a reasonably complex excel spreadsheet calculation tool to UWP.

From my online research there is no 'grid' in the traditional sense under UWP, unless you use a third party tool like Syncfusion.

I currently have several Grids (5 rows x 49 columns), however as XAML Binding doesn't map to Dictionaries well, I've had to create a property per 'cell' to bind (245 properties per grid), not to mention all of the OnPropertyChanged calls.

I've done one grid and it works fine - however I've got another 4 to implement, then another 5 (14 x 49) data entry grids.

This seems like a LOT of effort, so I can't help but think I've missed something and that there must be an easier way.

Does anyone have any suggestions?

Thanks in advance.

What I have tried:

Sledge hammer approach - property & textbox grid per cell. I've unsuccessfully tried using a Collection and Converter.

解决方案

Telerik's commercial UWP control suite very recently went Open Source (ie: free) and has a powerful Grid control:
* Website: UI for Universal Windows Platform, Windows 10 UI | Telerik[^]
* Github: telerik/UI-For-UWP: This repo contains the source code for Telerik UI for Universal Windows Platform (UWP), which includes 20+ UI controls for developers building UWP applications.[^]

Syncfusion also have a commercial UWP control suite that you can use for free under the Community License:
* Website: Comprehensive collection of UWP controls including Chart, Gauge, map and date picker for developing Windows Store/metro style apps[^]
* Community License: 800+ Free controls and frameworks for .NET (Windows Forms, WPF, ASP.NET MVC, ASP.NET Web Forms, LightSwitch, Silverlight, Windows Phone, WinRT, Windows 8), iOS, Android, Xamarin and JavaScript platforms[^]

Microsoft also have a community-driven extended control suite that you might want to check out:
* Annoucement (with links): Microsoft releases UWP Community Toolkit 1.3, with new OneDrive and Surface Dial support and more - MSPoweruser[^]


这篇关于UWP擅长风格网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆