silverlight   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Silverlight 2 Watermarked TextBox Control大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

http://blogs.msdn.com/kathykam/archive/2008/06/23/watermarkedtextbox-for-silverlight-2-beta-2.aspx One breaking change you may have noticed between Silverlight 2 Beta 1 and Beta 2 is thatWatermarkedTe
http://blogs.msdn.com/kathykam/archive/2008/06/23/watermarkedtextbox-for-silverlight-2-beta-2.aspx

One breaking change you may have noticed between Silverlight 2 Beta 1 and Beta 2 is thatWatermarkedTextBox is no longer available in the Silverlight SDK (System.Windows.Controls.Extended.dll). 

We decided to remove the control because in a future version of Silverlight,we will be adding a “Watermark” property to TextBox. Given this upcoming change,it does not make sense to have "WatermarkedTextBox" as a separate control,so we decided to remove the control from Silverlight 2.

Because the update to TextBox will not happen until a future version of Silverlight feel free download and use the WatermarkedTextBox source code and unit test in the mean time. By downloading the source and unit tests you accept the license.

Here is an example on how to use it:

Silverlight 2 Watermarked TextBox Control

 

Silverlight 2 Watermarked TextBox Control

 

For more information on how to use this control,check out our Beta1 documentation in MSDN:

http://msdn.microsoft.com/en-us/library/system.windows.controls.watermarkedtextbox(VS.95).aspx

In additional to porTing the source code & unit test for Beta 1,we also did the following:

  • updated the template to use new features in the framework (i.e. VisualStateManager)
  • Bug fixing: When the control has focus,MouSEOver state will no longer be active after moving the mouse away from the cotnrol
  • Bug fixing: Allow setTing BorderBrush correctly

If you run into any problems,let me kNow! :)

<Editorial Note>
This is also a great example on how to use the new Visual State Manager for Silverlight 2 Beta 2! 
Also a special "Thank you" to the WatermarkedTextBox dev Alex Bulankou for porTing the source code,updating & fixing the bugs.
</Editorial Note>

Posted: Monday,June 23,2008 6:55 PM by  KathyKam

Comments

Brad Abrams said: 

Silverlight 2 Watermarked TextBox Control

One breaking change you may have noticed between Silverlight 2 Beta 1 and Beta 2 is that WatermarkedTextBox

Silverlight SDK said: 

Silverlight 2 Watermarked TextBox Control

Just a quick note that one of the breaking changes from beta 2 was that the WatermarkedTextBox control

@L_801_24@

Programming said: 

Silverlight 2 Watermarked TextBox Control

BenHayat said: 

Silverlight 2 Watermarked TextBox Control

Kathy,one quick question: When you say "Future version of SL" do you mean like SL 3 or are we still talking version 2?

Thanks!

..ben

KathyKam said: 

Silverlight 2 Watermarked TextBox Control

Hi Ben,

"future" means some future version after SL 2.

Thanks,

Kathy

KierenH said: 

Silverlight 2 Watermarked TextBox Control

Hope watermark is available on similar controls like ComboBox - this Could be exposed via control template or attached property like ToolTip.

di .NET e di altre Amenit said: 

Silverlight 2 Watermarked TextBox Control

Silverlight 2.0: La desaparecida WatermarkedTextBox

# June 25,2008 3:55 AM

Craig Nicholson said: 

Silverlight 2 Watermarked TextBox Control

Hi Kathy,

I prevIoUsly upgraded the control for Silverlight 2 beta 2 as well (http://craign.net/2008/06/10/watermarkedtextbox-control-for-silverlight-2-beta-2/) however I never took advantage of the VSm.

Are you going to update the control to use the DefaultStyle and generic.xaml so that it can be styled using a future build of Blend? I was about to blog the updated code when I saw your post on it. Would you like a copy of my changes perhaps?

Thomas Lebrun said: 

Silverlight 2 Watermarked TextBox Control

Dans la Beta 1 de Silverlight 2,on disposait d'un contrôle bien sympathique nommé WatermarkTextBox.

Community Blogs said: 

Silverlight 2 Watermarked TextBox Control

Emil Stoychev with a Silverlight Twitter Widget,Kathy Kam on the missing WatermarkedTextBox,Adam Kinney

# June 26,2008 12:29 AM

Atul Gupta said: 

Silverlight 2 Watermarked TextBox Control

source codE into our projects,or rename the assembly,as it otherwise conflicts with the released System.Windows.Controls.Extended assembly which I would use to work with controls inside of it.

# July 3,2008 11:26 PM

Infosys | Microsoft said: 

Silverlight 2 Watermarked TextBox Control

Silverlight WatermarkedTextBox control code

The Last Mind said: 

Silverlight 2 Watermarked TextBox Control

작년 12월에 Silverlight 1.0 애플리케이션 맛보기 개발에 대한 글을 쓴 적이 있다. 어제 새벽 2시 정도에 잠을 깨는 바람에 Silverlight 2 애플리케이션 개발을 위한 튜터리얼을 보면서 실제로 개발하는 과정을 체험해보았다. Silverlight 1.0은 Javascript 만을 지원했고,GUI 애플리케이션 개발을 위한 라이브러리에 기본적으로 포함되어있는 레이아웃이나 컨트롤(위젯)들을 포함하고 있지 않았기 때문에,이렇다 할

# July 17,2008 2:31 PM

shan said: 

Silverlight 2 Watermarked TextBox Control

How can I System.Windows.Controls in silverlight 2 beta 2.

# August 8,2008 10:01 AM

d_jedi said: 

Silverlight 2 Watermarked TextBox Control

How does this work Now?

source code sln file opens with errors.

I'm trying to follow Scott Guthrie's silverlight tutorial.. but I can't do it with this.

AARGH.

# August 12,2008 9:35 PM

Mc David said: 

Silverlight 2 Watermarked TextBox Control

Why you don't built a watermarkedtextBox .dll file cause when I download the zip file above I can't build it,they said it's not my currently using version!

# August 17,2008 9:56 PM

Nagapito said: 

Silverlight 2 Watermarked TextBox Control

The System.Windows.Controls.Extended.Test project misses a reference to the System.Windows.Controls.Extended project.

After adding the reference,the solution builds!

# October 14,2008 5:57 PM

zazi said: 

Silverlight 2 Watermarked TextBox Control

I've just tested my compiled WatermarkedTextBox project with the Silverlight 2.0 RTW assemblies. When I built my Silverlight project with a WatermarkedTextBox inside I get the error:

unkNown attribute "Duration" for element "VisualTransition". [Line: 1 Position: 997]

How I can solve this problem?

Cheers zazi

# October 15,2008 2:59 PM

Joshua said: 

Silverlight 2 Watermarked TextBox Control

Hi~

I tried using that.

But it isn't working.

Could you explain to use that control in Silverlight 2 RTW(2.0.31005.0)?

I want to use that control.

Please~

zazi said: 

Silverlight 2 Watermarked TextBox Control

For all who tried to get the WatermarkedTextBox assembly to work with Silverlight 2.0 RTW:

You have to change the "Duration" property of the VisualTransition class in the WatermarkedTextBox.xaml of the project to "GeneratedDuration" - then it will work.

Cheers Zazi

# October 16,2008 9:51 AM

Method ~ of ~ failed by Tim Heuer said: 

Silverlight 2 Watermarked TextBox Control

Silverlight.net updated code samples

# October 20,2008 4:18 PM

Tim Heuer said: 

Silverlight 2 Watermarked TextBox Control

With the release of Silverlight 2 many people faced the task of ensuring their applications/code written

大佬总结

以上是大佬教程为你收集整理的Silverlight 2 Watermarked TextBox Control全部内容,希望文章能够帮你解决Silverlight 2 Watermarked TextBox Control所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。