如何自定义默认的AddandEditNew屏幕 [英] How to custom default AddandEditNew Screen

查看:87
本文介绍了如何自定义默认的AddandEditNew屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hallo Guys,

Hallo Guys,

有没有办法在LightSwitch默认的AddandEditNew屏幕中自定义要查看的控件,比如将自动完成组合框更改为Modal Windows Picker。

It's there any way to custom what control to be viewed in LightSwitch default AddandEditNew screen, like change auto complete combo box into Modal Windows Picker.

如果不可能,那么我们可以像AddandEditNew屏幕一样显示自定义窗体作为弹出窗口。

If it's impossible, then can we show custom form as pop up window like that AddandEditNew screen.

谢谢。

推荐答案

嗨Adith,

Hi Adith,

不,目前无法修改自动生成的模态窗口,尽管团队已指出这可能在LS的未来版本中。

No, it's not currently possible to modify the auto-generated modal windows, although the team has indicated that this may be possible in a future version of LS.

您可以创建自己的窗口而不是默认的AddAndEditNew屏幕,Beth Massi有一个很棒的视频"如何:创建可以在LightSwitch应用程序中编辑和添加记录的屏幕"
http://msdn.microsoft.com/en-us/lightswitch/gg604823 。如果您还没有看过它们,我建议您观看整个"我如何"。系列
http://msdn.microsoft.com/en-us/lightswitch/gg604823 ,它们非常好。

You can create your own window to use instead of the default AddAndEditNew screen, Beth Massi has an excellent video "How Do I: Create a Screen that can Both Edit and Add Records in a LightSwitch Application" http://msdn.microsoft.com/en-us/lightswitch/gg604823. If you haven't watched them already, I suggest you watch the whole "How Do I" series http://msdn.microsoft.com/en-us/lightswitch/gg604823, they're VERY good.

如果您不想要标签窗口,还可以在列表/网格屏幕中添加模态控件。拖动集合的"选定项目"到屏幕&将其类型更改为"模态窗口"。默认情况下,有一个按钮可以激活它,但是还有一个设置
来隐藏按钮,所以你可以打开&关闭代码中的模态窗口。

If you don't want a tab window, you can also add a modal control in your list/grid screen. Drag the collection's "Selected Item" to the screen & change it's type to "Modal Window". By default, there's a button to activate it, but there's also a setting to hide the button, so you can open & close the modal window in code.

希望这有助于,或者至少指向正确的方向。如果您有任何困难,请告诉我。

Hope that helps, or at least points you in the right direction. Let me know if you have any difficulties getting this to work.

Yann


这篇关于如何自定义默认的AddandEditNew屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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