English 中文(简体)
2. 与银星Slider及其umb的精密问题
原标题:Precision issue with the Silverlight Slider and it s thumb

I have a precision problem with the slider control in Silverlight:

我建立了一些cus形模版,以稍微修改对银星光电梯控制标准的直观。 我的目标是要有一个体现其规模的价值观的梯度。 相应的umb也稍作改动,其 center(或峰值)位于其中心,以目前对梯子的价值为准。

—— http://www.willzeit.at/sliderThumb.jpg” rel=“nofollow”http://www.willzeit.at/sliderThumb.jpg

实际上,所有事情都奏效,但我遇到了umb的奇怪行为:

umb头上的位置表明der子目前的价值,似乎从umb上最左头的位置转变为umb上最正确的位置!

因此,就地毯而言,地毯位于其左端位置上,就地毯而言,右.点上右侧的右侧点是左侧的顶端。

当然,如果umb平处于最正确的位置,那么umb的计价位置就处于最正确的位置,则同样如此。

当然,这具有意义,因为th子的 t子能够超越其der子的界限,而umb的计价点必须在整个山 w(如我的情况那样,如果是横向的梯子)。

BUT:这大大降低了th与der之间yn合的精确度(当然,只有在你想要表明der子的精子的确切价值时)。

正如我说过的那样,需要建立一个显示价值(用标语和标签标明)的梯子和一个针头。 当用户想对电梯控制确定某种特定价值时,他必须转移umb,以保持这一特定价值。

I hope i could make this issue clear and also my problem :) Does anybody have any ideas ? I guess there must be a way to solve this problem - otherwise the slider control is not intended to be used in such a way - what sounds highly unlikely for me ...

I really would appreciate any help :) marc

最佳回答

你们都需要使<代码>Silder<>/code>控制认为其行程只有1平方位。 你可以通过修改Thumb模板来做到这一点,使模板中的最要素是Canvas(a Grid clips its content),然后将内容的其余部分列入“,即你给左边留出一定规模,然后予以抵销。 使用奇数的宽度并设定左位=-1* (Width -1) / 2。 你们可以采取这种行动,留下来,或者进行变革。

现在我说的是“理论”,因为在实践中,我完全可以解释。 不管怎样,我只想让umb子的左边活跃。 银根似乎不想承认umb右侧。

最后,我决定作出这一答复,因为显然你已经编辑控制模板,或许如果你将这一模板适用于你自己的工作,你就会赢得这种一致。

问题回答

暂无回答




相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签