Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
有没有办法将滑块转换为Windows 8的非线性比例?_Windows_User Interface_Microsoft Metro - Fatal编程技术网

有没有办法将滑块转换为Windows 8的非线性比例?

有没有办法将滑块转换为Windows 8的非线性比例?,windows,user-interface,microsoft-metro,Windows,User Interface,Microsoft Metro,或者,是否有一种方法可以将现有值转换为非线性值?您可以添加一个值转换器,将线性值转换为非线性值 这样您就不会使滑块非线性,但它将是功能性的 如果您真的需要滑块是非线性的,您可以将其子类化并修改其行为。但是在拖动滑块时显示值的标记将是错误的。任何方法都可以解决这个问题。只需删除标记或在ControlTemplate中更改它以使用相同的值转换器。

或者,是否有一种方法可以将现有值转换为非线性值?

您可以添加一个值转换器,将线性值转换为非线性值

这样您就不会使滑块非线性,但它将是功能性的


如果您真的需要滑块是非线性的,您可以将其子类化并修改其行为。

但是在拖动滑块时显示值的标记将是错误的。任何方法都可以解决这个问题。只需删除标记或在ControlTemplate中更改它以使用相同的值转换器。