File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed
BionicCode.Controls.Net.Wpf
BionicCode.Net.Framework.Core.Ui.Test Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -1367,7 +1367,7 @@ protected virtual void DrawAnalog24Clock()
1367
1367
Draw24HHourIntervals ( ) ;
1368
1368
Draw24HMinuteIntervals ( ) ;
1369
1369
Draw24HSecondIntervals ( ) ;
1370
- Draw24ClockFaceBackground ( this . IntervalMarkerMinuteCenterRadius ) ;
1370
+ Draw24ClockFaceBackground ( ) ;
1371
1371
DrawTimePickerSelectionArcs ( ) ;
1372
1372
if ( ! this . IsTimePickerModeEnabled || this . IsTimePickerClockHandVisible )
1373
1373
{
@@ -1799,9 +1799,9 @@ protected virtual void DrawTimePickerHoursSelectionBounds()
1799
1799
} ) ;
1800
1800
}
1801
1801
1802
- private void Draw24ClockFaceBackground ( double intervalMarkerCenterPositionRadius )
1802
+ private void Draw24ClockFaceBackground ( )
1803
1803
{
1804
- double deltaToMiddleRadius = ( this . Radius - this . IntervalMarkerMinuteCenterRadius ) * 2 ;
1804
+ double deltaToMiddleRadius = ( this . Radius - this . IntervalMarkerCenterRadius ) * 2 ;
1805
1805
var clockFaceBackgroundPosition = new Point ( ) ;
1806
1806
clockFaceBackgroundPosition . Offset ( deltaToMiddleRadius / 2 , deltaToMiddleRadius / 2 ) ;
1807
1807
var ellipse = new Ellipse ( )
Original file line number Diff line number Diff line change 16
16
<SolidColorBrush Color =" DodgerBlue" Opacity =" 0.6" />
17
17
</Setter .Value>
18
18
</Setter >
19
- <Setter Property =" Background" Value =" Transparent " />
19
+ <Setter Property =" Background" Value =" #FF252526 " />
20
20
<Setter Property =" FontSize" Value =" 8" />
21
21
<Setter Property =" FontStretch" Value =" UltraExpanded" />
22
22
<Setter Property =" FontWeight" Value =" UltraLight" />
Original file line number Diff line number Diff line change 19
19
<Setter .Value>
20
20
<wpf : AnalogClockFace x : Name =" AnalogClockFace"
21
21
IsTimePickerModeEnabled =" True"
22
- Is24HModeEnabled =" True" />
22
+ Is24HModeEnabled =" True"
23
+ Background =" {Binding RelativeSource={RelativeSource AncestorType=wpf:AnalogTimePicker}, Path=Background}" />
23
24
</Setter .Value>
24
25
</Setter >
25
26
<Setter Property =" Template" >
94
95
<ScaleTransform x:Name="PopupScaleTransform"/>
95
96
</Popup.RenderTransform>-->
96
97
<Border BorderThickness =" 1"
97
- BorderBrush =" DarkGray "
98
- Background =" #24292E "
98
+ BorderBrush =" DimGray "
99
+ Background =" {TemplateBinding Background} "
99
100
Margin =" 8"
100
101
Padding =" 8" >
101
102
<Border .Effect>
Original file line number Diff line number Diff line change 7
7
xmlns : wpf =" clr-namespace:BionicCode.Controls.Net.Wpf;assembly=BionicCode.Controls.Net.Wpf"
8
8
mc : Ignorable =" d"
9
9
Title =" MainWindow" Height =" 450" Width =" 800" Name =" Window"
10
- Background =" DimGray " >
10
+ Background =" #FF252526 " >
11
11
<Window .Resources>
12
12
</Window .Resources>
13
13
<Grid >
14
- <TextBlock Text =" {Binding ElementName=TimePicker, Path=SelectedTime}" />
15
- <wpf : AnalogTimePicker x : Name =" TimePicker" Background =" #24292E " Foreground =" AntiqueWhite" IsClockHandVisible =" False" Margin =" 0,20" />
16
- <!-- < wpf:AnalogClockFace x:Name="TimePicker" Background="DimGray" IsTimePickerModeEnabled="False" SelectedTime="{Binding ElementName=Window, Path=CurrentDateTime}"/> -- >
14
+ <!-- < TextBlock Text="{Binding ElementName=TimePicker, Path=SelectedTime}"/>
15
+ <wpf:AnalogTimePicker x:Name="TimePicker" Background="#FF252526 " Foreground="AntiqueWhite" IsClockHandVisible="False" Margin="0,20" /> -- >
16
+ <wpf : AnalogClockFace x : Name =" TimePicker" IsTimePickerModeEnabled =" False" SelectedTime =" {Binding ElementName=Window, Path=CurrentDateTime}" />
17
17
</Grid >
18
18
<!-- <StackPanel>
19
19
<wpf:TimePicker x:Name="TimePicker" IsSecondsEnabled="True" IsOpen="True"/>
You can’t perform that action at this time.
0 commit comments