mirror of
https://gitee.com/chinware/atomui.git
synced 2024-12-02 03:47:52 +08:00
修复部分 disabled 样式没处理好的问题
This commit is contained in:
parent
aeef64e952
commit
43295dc739
@ -32,7 +32,6 @@
|
||||
IsEnabled="{Binding NormalEnabled}"
|
||||
IsRangeMode="True"
|
||||
TickFrequency="5"
|
||||
Included="False"
|
||||
Marks="{Binding SliderMarks}"
|
||||
RangeValue="20, 80" />
|
||||
|
||||
|
@ -122,6 +122,8 @@ internal class SliderTheme : ControlTheme
|
||||
|
||||
var sliderTrackStyle = new Style(selector => selector.Nesting().Template().OfType<SliderTrack>());
|
||||
sliderTrackStyle.Add(SliderTrack.TrackBarBrushProperty, SliderResourceKey.TrackBgDisabled);
|
||||
sliderTrackStyle.Add(SliderTrack.MarkBorderActiveBrushProperty, SliderResourceKey.ThumbCircleBorderColorDisabled);
|
||||
sliderTrackStyle.Add(SliderTrack.MarkBorderBrushProperty, SliderResourceKey.ThumbCircleBorderColorDisabled);
|
||||
disabledStyle.Add(sliderTrackStyle);
|
||||
var thumbStyle = new Style(selector => selector.Nesting().Template().OfType<SliderThumb>());
|
||||
thumbStyle.Add(SliderThumb.BorderBrushProperty, SliderResourceKey.ThumbCircleBorderColorDisabled);
|
||||
|
@ -308,7 +308,8 @@ public class SliderTrack : Control, IControlCustomStyle
|
||||
IsRangeModeProperty);
|
||||
AffectsRender<SliderTrack>(TrackBarBrushProperty,
|
||||
TrackGrooveBrushProperty,
|
||||
IncludedProperty);
|
||||
IncludedProperty,
|
||||
MarkBorderBrushProperty);
|
||||
}
|
||||
|
||||
public SliderTrack()
|
||||
|
Loading…
Reference in New Issue
Block a user