不好意思,以为你这边是winform的,wpf 的话,在Transform中有一个 Rotate,可以旋转控件,旋转90度就可以了
- <c1:C1RangeSlider x:Name="slider1" HorizontalAlignment="Left" Margin="304,74,0,0" VerticalAlignment="Top" Width="153" RenderTransformOrigin="0.5,0.5" >
- <c1:C1RangeSlider.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform/>
- <RotateTransform Angle="90"/>
- <TranslateTransform/>
- </TransformGroup>
- </c1:C1RangeSlider.RenderTransform>
- </c1:C1RangeSlider>
复制代码 |