完全卡住并需要帮助来改善c#程序的GUI外观 [英] totaly stuck and need help to improve the GUI look of c# program

查看:71
本文介绍了完全卡住并需要帮助来改善c#程序的GUI外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#2005快递版


我已经完成了一个winforms应用程序,我需要

显着提高界面的视觉吸引力。


我完全坚持这个,似乎无法解决如何开始使用

解决方案。


我当然使用了各种各样的组件,主要是单选按钮

带有按钮的按钮。外观。


所以我需要一种方法来增强按钮和表单外观而无需重做

或撤消任何exisitng编码,我明白有办法

影响整个GUI和应用程序外观。


那么我从哪里开始呢。我想最终能够定制整个视觉组件的外观,但是在

短期内做一些像改善各种按钮外观的东西

和单选按钮和检查按钮上下视觉状态与一些

种类的渐变色,以产生金属般的外观,即使在

表格本身的背面。


我的互联网研究并没有让我逐步了解

如何做到这一点的例子。


如果有人能让我开始使用像

这样的例子,那就太棒了。当它在
中时,将渐变和位图应用于单选按钮
" button"外观模式并针对上下状态进行调整

外观,以便在应用程序中影响表单上所有相同的按钮类型

感谢您的帮助。


我真的卡在这一个上,不知道从哪里开始。


peted

解决方案

如果您打算使用Windows窗体,那么您可能需要查看

子类化Button类,并自定义绘制它(以及您想要改进的任何其他用户界面元素)。一旦你执行

,你就必须用你自己定制的

替换这些UI元素的所有实例。


如果您使用的是Windows Presentation Foundation,那么您可以更轻松地执行此操作,因为可以通过XAML以声明方式完成元素的自定义

,而不仅仅是通过代码。

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" Peted"在留言新闻中写道:g5 ******************************** @ 4ax.com ...
< blockquote class =post_quotes>
我正在使用c#2005快递版


我已经完成了一个winforms应用程序,我需要

显着提高界面的视觉吸引力。


我完全坚持这个,似乎无法解决如何开始使用

解决方案。


我当然使用了各种各样的组件,主要是单选按钮

withbutton外观。


所以我需要一种方法来增强按钮和表单外观而无需重做

或撤消任何exisitng编码,我明白有办法

影响整个GUI和应用程序外观。


那么我从哪里开始呢。我想最终能够定制整个视觉组件的外观,但是在

短期内做一些像改善各种按钮外观的东西

和单选按钮和检查按钮上下视觉状态与一些

种类的渐变色,以产生金属般的外观,即使在

表格本身的背面。


我的互联网研究并没有让我逐步了解

如何做到这一点的例子。


如果有人能让我开始使用像

这样的例子,那就太棒了。当它在
中时,将渐变和位图应用于单选按钮
" button"外观模式并针对上下状态进行调整

外观,以便在应用程序中影响表单上所有相同的按钮类型


感谢您提供任何帮助。


我真的坚持这个,不知道从哪里开始。


peted


我建​​议你不要采用一种完全独特的单一方法来定制

UI进入剥皮?这种技术已经存在好几年了,它已经应用于多种语言,并且有实现的b $ b ..Net实现。环顾四周并查看这些内容:

http://www.dnzone.com/showDetail.asp...=3&NewsId=1654
http://www.skincrafter.com/vbnet_dev...tml?adv=dotnet

Nicholas Paldino [.NET / C#MVP]" < mv*@spam.guard.caspershouse.comwrote ...


如果您打算使用Windows窗体,那么您可能需要查看

继承Button类,并自定义绘制它(以及任何你希望改进的其他用户界面元素的b / b $ b)。一旦

你这样做,你就必须用自己的自定义元素替换这些UI元素的所有实例




如果您使用的是Windows Presentation Foundation,那么您可以更轻松地执行此操作,因为可以通过XAML以声明方式完成元素的自定义

,而不仅仅是通过代码。


-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" Peted"在消息中写道

新闻:g5 ******************************** @ 4ax.com ...


>我正在使用c#2005快递版

我已经完成了一个winforms应用程序,我需要
显着改善了界面的视觉吸引力。

我完全坚持这一点,似乎无法解决如何开始使用
解决方案。

我有当然使用了各种各样的组件,主要是单选按钮
带有按钮。外观。

所以我需要一种方法来增强按钮和表单的外观,而无需重做或撤消任何现有的编码,我知道有一些方法可以影响整个GUI和应用程序的外观。

那么我从哪里开始。我希望最终能够自定义整个视觉组件的外观,但是在短期内做一些改善各种按钮的外观和单选按钮和检查按钮上下视觉状态与一些绘制的渐变,以产生金属般的外观,甚至在表格本身的背面。

我的互联网研究没有带我到任何具体的一步一步
如何做到这一点的例子。

如果有人能让我开始使用像
应用渐变的例子那将是很棒的当位于
按钮时,位图到单选按钮外观模式并根据上下状态调整外观,以便影响表格上的所有相同按钮类型,在应用程序中

感谢任何帮助。

我真的坚持这个,不知道从哪里去。

peted



Tom,


老实说,我认为WPF需要剥皮框架

已经过时了。要么是这样,要么它的重要性要小得多,

因为能够换掉控件的外观。


除此之外,OP说:


所以我需要一种方法来增强按钮和表单外观而无需重做

或撤消任何现有编码


使用皮肤框架不能满足这种需求,AFAIK。

-

- Nicholas Paldino [.NET / C#MVP]
- mv*@spam.guard.caspershouse.com


汤姆莱伦 < tl ***** @nospam.netwrote in message

新闻:OA ************** @ TK2MSFTNGP06.phx.gbl ...


而不是采用完全独特的单一方法来定制

用户界面我可能建议你研究一下皮肤?这项技术已经存在好几年了,已经应用于多种语言,而且b $ b $ .b实现.Net实现。环顾四周并查看这些内容:

http://www.dnzone.com/showDetail.asp...=3&NewsId=1654
http://www.skincrafter.com/vbnet_dev...tml?adv=dotnet


Nicholas Paldino [.NET / C#MVP]" < mv*@spam.guard.caspershouse.com>

写道...


>如果您打算使用Windows窗体,那么您可能希望看看
子类化Button类,并自定义绘制它(以及您希望改进的其他用户界面元素的任何元素)一旦你这样做,你将不得不用你自己的自定义元素替换这些UI元素的所有实例。

如果你使用的是Windows Presentation Foundation,你会因为可以通过XAML以声明的方式完成元素的定制,而不仅仅是通过代码来完成这些元素的定制。

-
- Nicholas Paldino [.NET / C#MVP]
- mv*@spam.guard.caspershouse.com

Peted在消息中写道
新闻:g5 ******************************** @ 4ax.com ..


>>我正在使用c#2005快递版

我已经完成了一个winforms应用程序,我需要
显着提高界面的视觉吸引力。

我完全坚持这个,似乎无法找到如何开始解决方案。

我当然有使用了各种各样的组件,主要是单选按钮
带有按钮。外观。

所以我需要一种方法来增强按钮和表单的外观,而无需重做或撤消任何现有的编码,我知道有一些方法可以影响整个GUI和应用程序的外观。

那么我从哪里开始。我希望最终能够自定义整个视觉组件的外观,但是在短期内做一些改善各种按钮的外观和单选按钮和检查按钮上下视觉状态与一些绘制的渐变,以产生金属般的外观,甚至在表格本身的背面。

我的互联网研究没有带我到任何具体的一步一步
如何做到这一点的例子。

如果有人能让我开始使用像
应用渐变的例子那将是很棒的当位于
按钮时,位图到单选按钮外观模式并根据上下状态调整外观,以便影响表格上的所有相同按钮类型,在应用程序中

感谢任何帮助。

我真的坚持这个,不知道从哪里去。

peted



Im using c# 2005 express edition

Ive pretty much finished an winforms application and i need to
significantly improve the visual appeal of the interface.

Im totaly stuck on this and cant seem to work out how to start on a
solution.

I have of course used a varienty of componets, mostly radio buttons
with "button" appearence.

So i need a way to enhance the buttons and forms looks without redoing
or undoing any exisitng coding, and i understand there are ways of
affecting the whole GUI and look of the application.

So where do i start with that. I would like to eventually be able to
customise the look of the whole range of visual componets, but in the
short term doing something like improve the look of the various button
and radio button and check button up and down visual states with some
sort of painted gradient to produce a metalic like look, even on the
back of the forms itself.

My internet research has not led to me to any specific step by step
examples on how i can do this.

It would be great if anyone could get me started with an example like
applying a gradient and bitmap to a radio button while it is in
"button" appearence mode and adjusted for the up and down states
appearence, in such a way as to affect all the same button types on
the forms, in the application
thanks for any help.

Im realy stuck on this one with no idea where to go from here.

peted

解决方案

If you are going to use Windows Forms, then you might want to look into
subclassing the Button class, and custom painting it (as well as any of your
other user interface elements which you want to improve upon). Once you do
that, you would have to replace all instances of those UI elements with your
own custom ones.

If you were using Windows Presentation Foundation, you would have been
able to do this much easier, as customization of elements can be done
declaratively through XAML, not just through code.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Peted" wrote in message news:g5********************************@4ax.com...

Im using c# 2005 express edition

Ive pretty much finished an winforms application and i need to
significantly improve the visual appeal of the interface.

Im totaly stuck on this and cant seem to work out how to start on a
solution.

I have of course used a varienty of componets, mostly radio buttons
with "button" appearence.

So i need a way to enhance the buttons and forms looks without redoing
or undoing any exisitng coding, and i understand there are ways of
affecting the whole GUI and look of the application.

So where do i start with that. I would like to eventually be able to
customise the look of the whole range of visual componets, but in the
short term doing something like improve the look of the various button
and radio button and check button up and down visual states with some
sort of painted gradient to produce a metalic like look, even on the
back of the forms itself.

My internet research has not led to me to any specific step by step
examples on how i can do this.

It would be great if anyone could get me started with an example like
applying a gradient and bitmap to a radio button while it is in
"button" appearence mode and adjusted for the up and down states
appearence, in such a way as to affect all the same button types on
the forms, in the application
thanks for any help.

Im realy stuck on this one with no idea where to go from here.

peted


Rather than undertake a completely unique one-up approach to customizing a
UI may I suggest you look into skinning? The technique has been around for
several years, it has been applied across multiple languages and there are
..Net implementations. Look around and check these out as well:

http://www.dnzone.com/showDetail.asp...=3&NewsId=1654
http://www.skincrafter.com/vbnet_dev...tml?adv=dotnet
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote...

If you are going to use Windows Forms, then you might want to look into
subclassing the Button class, and custom painting it (as well as any of
your other user interface elements which you want to improve upon). Once
you do that, you would have to replace all instances of those UI elements
with your own custom ones.

If you were using Windows Presentation Foundation, you would have been
able to do this much easier, as customization of elements can be done
declaratively through XAML, not just through code.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Peted" wrote in message
news:g5********************************@4ax.com...

>Im using c# 2005 express edition

Ive pretty much finished an winforms application and i need to
significantly improve the visual appeal of the interface.

Im totaly stuck on this and cant seem to work out how to start on a
solution.

I have of course used a varienty of componets, mostly radio buttons
with "button" appearence.

So i need a way to enhance the buttons and forms looks without redoing
or undoing any exisitng coding, and i understand there are ways of
affecting the whole GUI and look of the application.

So where do i start with that. I would like to eventually be able to
customise the look of the whole range of visual componets, but in the
short term doing something like improve the look of the various button
and radio button and check button up and down visual states with some
sort of painted gradient to produce a metalic like look, even on the
back of the forms itself.

My internet research has not led to me to any specific step by step
examples on how i can do this.

It would be great if anyone could get me started with an example like
applying a gradient and bitmap to a radio button while it is in
"button" appearence mode and adjusted for the up and down states
appearence, in such a way as to affect all the same button types on
the forms, in the application
thanks for any help.

Im realy stuck on this one with no idea where to go from here.

peted



Tom,

To be honest, I think that WPF makes the need for skinning frameworks
obsolete. Either that, or it makes their importance much less significant,
because of the ability to swap out the physical appearance of a control.

On top of that, the OP said:

So i need a way to enhance the buttons and forms looks without redoing
or undoing any exisitng coding

Putting a skinning framework in would not satisfy that need, AFAIK.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tom Leylan" <tl*****@nospam.netwrote in message
news:OA**************@TK2MSFTNGP06.phx.gbl...

Rather than undertake a completely unique one-up approach to customizing a
UI may I suggest you look into skinning? The technique has been around
for several years, it has been applied across multiple languages and there
are .Net implementations. Look around and check these out as well:

http://www.dnzone.com/showDetail.asp...=3&NewsId=1654
http://www.skincrafter.com/vbnet_dev...tml?adv=dotnet
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
wrote...

> If you are going to use Windows Forms, then you might want to look
into subclassing the Button class, and custom painting it (as well as any
of your other user interface elements which you want to improve upon).
Once you do that, you would have to replace all instances of those UI
elements with your own custom ones.

If you were using Windows Presentation Foundation, you would have been
able to do this much easier, as customization of elements can be done
declaratively through XAML, not just through code.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Peted" wrote in message
news:g5********************************@4ax.com.. .

>>Im using c# 2005 express edition

Ive pretty much finished an winforms application and i need to
significantly improve the visual appeal of the interface.

Im totaly stuck on this and cant seem to work out how to start on a
solution.

I have of course used a varienty of componets, mostly radio buttons
with "button" appearence.

So i need a way to enhance the buttons and forms looks without redoing
or undoing any exisitng coding, and i understand there are ways of
affecting the whole GUI and look of the application.

So where do i start with that. I would like to eventually be able to
customise the look of the whole range of visual componets, but in the
short term doing something like improve the look of the various button
and radio button and check button up and down visual states with some
sort of painted gradient to produce a metalic like look, even on the
back of the forms itself.

My internet research has not led to me to any specific step by step
examples on how i can do this.

It would be great if anyone could get me started with an example like
applying a gradient and bitmap to a radio button while it is in
"button" appearence mode and adjusted for the up and down states
appearence, in such a way as to affect all the same button types on
the forms, in the application
thanks for any help.

Im realy stuck on this one with no idea where to go from here.

peted



这篇关于完全卡住并需要帮助来改善c#程序的GUI外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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