一个给UE(用户体验)带来无限可能的控件。以前有人说不知道用这个来做什么,的确,如果你不从设计和用户体验的角度来看的话,这个的确没有什么作用,放大字体?那个用Slider不是更好吗?说道用户体验,顺便说一下,现在正是一个好的机遇,因为现在正是窄屏显示器向宽屏显示器过渡的时期,能让用户自由的放大、缩小区域绝对会带来用户的高体验度。下面就先来讲下属性和用法,然后举个例子来说明一下它用作提高用户体验的一个例子。
照常,先放出属性,这次还将放出它的几个事件:
1. TargetControlID - The ID of the element that becomes resizable【目标控件】
2. HandleCssClass - The name of the CSS class to apply to the resize handle【Handle(把手?)样式,这个是必须设置的!】
3. ResizableCssClass - The name of the CSS class to apply to the element when resizing【目标控件的样式】
4. MinimumWidth/MinimumHeight - Minimum dimensions of the resizable element【最小高宽】
5. MaximumWidth/MaximumHeight - Maximum dimensions of the resizable element【最大高宽】
6. OnClientResizeBegin - Event fired when the element starts being resized【事件:在开始缩放时触发】
7. OnClientResizing - Event fired as the element is being resized【事件:在缩放过程只能够触发】
8. OnClientResize - Event fired when the element has been resized【事件:在缩放结束后出发】
9. HandleOffsetX/HandleOffsetY - Offsets to apply to the location of the resize handle【Handle的坐标偏移量】
HandleCssClass属性必须设置,一般我们会放个背景图片上去,这样来指引用户的行为。