C#.Net是否支持布局管理器? [英] Does C#.Net support Layout managers?

查看:68
本文介绍了C#.Net是否支持布局管理器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是这个新闻组的新手,在以下问题中需要帮助。


1.我在GUI应用程序上工作。 C#是否为Java设计GUI提供了布局管理器的方式?我知道它可以使用设计师完成

但我故意不想使用它。原因之一是你不能改变设计师生成的代码。另一个可能就是

你有更多的自由手和控制来设计你的GUI。

2.任何有用的链接谈论GUI设计模式?


谢谢&问候!

-Anoop

Hi,
I am new to this newsgroup and need help in the following questions.

1. I am workin'' on a GUI application. Does C# provides Layout Managers the
way Java does to design GUI? I know that it can be done using the designer
but I intentionally don''t want to use that. The one reason is that you
cannot change the code generated by the designer. The other could be that
you have more free hand and control to design your GUI.
2. Any helpful link which talks about the GUI design patterns?

Thanks & Regards!
-Anoop

推荐答案

它产生的代码肯定可以更改,它只是一个文本

文件(并没有被设计师以任何方式锁定)。

你没有通过避免获得任何东西,因为它可以做你所做的一切

可以做(事实上它生成代码证明了这一点;没有

因为你无法输入它生成的代码)。你的理由

不使用它没有任何事实可以支持它们。


使用设计师;这是一个巨大的生产力提升。


当你说GUI设计模式时你是在谈论GUI

的外观或如何设计UI元素?


Anoop写道:
The code it generates most certainly CAN be changed, its just a text
file after all (and not locked down by the designer in any way).
You''re not gaining anything by avoiding it, as it can do everything you
can do (the fact that it generates code is proof of this; there''s no
reason you couldn''t type in the code it generates). Both your reasons
for not using it don''t have any facts to back them up.

Use the designer; it is a huge productivity boost.

When you say "GUI design patterns" are you refering to how the GUI
looks or how to design UI elements?

Anoop wrote:

您好,

我是这个新闻组的新手,在以下问题中需要帮助。


1.我在GUI上工作应用。 C#是否为Java设计GUI提供了布局管理器的方式?我知道它可以使用设计师完成

但我故意不想使用它。原因之一是你不能改变设计师生成的代码。另一个可能就是

你有更多的自由手和控制来设计你的GUI。

2.任何有用的链接谈论GUI设计模式?


谢谢&问候!

-Anoop
Hi,
I am new to this newsgroup and need help in the following questions.

1. I am workin'' on a GUI application. Does C# provides Layout Managers the
way Java does to design GUI? I know that it can be done using the designer
but I intentionally don''t want to use that. The one reason is that you
cannot change the code generated by the designer. The other could be that
you have more free hand and control to design your GUI.
2. Any helpful link which talks about the GUI design patterns?

Thanks & Regards!
-Anoop


哦,以及关于布局设计师的问题;如果您正在引用

流布局和表格布局,.net 2.0确实有这些。它们是你可以使用或不使用的容器控件。


Anoop写道:
Oh, and your question about layout designers; if you''re refering to
flow layout and table layout, .net 2.0 does have these. They are
container controls which you may use or not use.

Anoop wrote:



我是这个新闻组的新手,在以下问题中需要帮助。


1.我正在使用GUI应用程序。 C#是否为Java设计GUI提供了布局管理器的方式?我知道它可以使用设计师完成

但我故意不想使用它。原因之一是你不能改变设计师生成的代码。另一个可能就是

你有更多的自由手和控制来设计你的GUI。

2.任何有用的链接谈论GUI设计模式?


谢谢&问候!

-Anoop
Hi,
I am new to this newsgroup and need help in the following questions.

1. I am workin'' on a GUI application. Does C# provides Layout Managers the
way Java does to design GUI? I know that it can be done using the designer
but I intentionally don''t want to use that. The one reason is that you
cannot change the code generated by the designer. The other could be that
you have more free hand and control to design your GUI.
2. Any helpful link which talks about the GUI design patterns?

Thanks & Regards!
-Anoop


谢谢Andy。你是对的.Net编辑器允许你修改代码

但如果你这样做,并试图打开表格,它会抛出一个错误,要求你

还原变化(这可能是一个特殊情况,但我得到了2-3次错误)。

.net生成的编码被置于一个方法中

" InitializeComponent ()" ;.代码有位置参数和其他东西,

硬编码(例如(100,120))。布局管理器隐藏这些详细信息。另外,我是

在.Net控件周围创建包装器所以我不想使用

设计器。


通过GUI设计模式,我的意思是,前端设计,例如事件处理,

异常处理,表单设计,日志记录等等。


问候!

-Anoop


" Andy" < aj ***** @ alum.rit.eduwrote in message

news:11 ********************** @ i42g2000cwa.googlegr oups.com ...
Thanks Andy. You are right that .Net editor allows you to modify the code
but if you do so, and try to open the Form, it throws an error asking you to
revert the change (It might be a special case but I got an error 2-3 times).
The .net generated coded is in placed into one method
"InitializeComponent()". The code has location parameters and other things,
hardcoded (e.g. (100,120)). Layout Manager hides these details. Also, I am
creating wrappers arround the .Net controls so I don''t want to use the
designer.

By GUI design Patterns, I mean, is the front end design e.g. Event handing,
Exception handling, Form design, logging etc on the frnt end.

Regards!
-Anoop

"Andy" <aj*****@alum.rit.eduwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...

它生成的代码肯定可以更改,它只是一个文本

文件毕竟(并没有被设计师以任何方式锁定。)

你没有通过避免获得任何东西,因为它可以完成你b $ b所能做的一切(事实上,它生成代码证明了这一点;没有

,因为你无法输入它生成的代码。你的理由

不使用它没有任何事实可以支持它们。


使用设计师;这是一个巨大的生产力提升。


当你说GUI设计模式时你是在谈论GUI

的外观或如何设计UI元素?


Anoop写道:
The code it generates most certainly CAN be changed, its just a text
file after all (and not locked down by the designer in any way).
You''re not gaining anything by avoiding it, as it can do everything you
can do (the fact that it generates code is proof of this; there''s no
reason you couldn''t type in the code it generates). Both your reasons
for not using it don''t have any facts to back them up.

Use the designer; it is a huge productivity boost.

When you say "GUI design patterns" are you refering to how the GUI
looks or how to design UI elements?

Anoop wrote:

您好,

我是这个新闻组的新手,在以下问题中需要帮助。


1.我在GUI上工作应用。 C#提供布局管理器
Hi,
I am new to this newsgroup and need help in the following questions.

1. I am workin'' on a GUI application. Does C# provides Layout Managers




the


Java如何设计GUI?我知道可以使用
way Java does to design GUI? I know that it can be done using the



设计师

designer


但我故意不想用它。原因之一是
but I intentionally don''t want to use that. The one reason is that




you


无法更改设计器生成的代码。另一个可能是
cannot change the code generated by the designer. The other could be




that


you有更多的自由手和控制来设计你的GUI。

2.任何有用的链接,谈论GUI设计模式?


谢谢&问候!

-Anoop
you have more free hand and control to design your GUI.
2. Any helpful link which talks about the GUI design patterns?

Thanks & Regards!
-Anoop



这篇关于C#.Net是否支持布局管理器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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