Skip to content

Commit d39c7b5

Browse files
authored
Merge pull request #182 from reactivemarbles/UpdateNumberPad
Add UseCrissCrossThemeManager property to NumberPad control
2 parents cd2ddaf + ac34d31 commit d39c7b5

File tree

15 files changed

+117
-65
lines changed

15 files changed

+117
-65
lines changed

Directory.Build.props

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
<!-- Include PDB in the built .nupkg -->
3030
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
3131
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
32-
<AvaloniaVersion>11.3.1</AvaloniaVersion>
33-
<ReactiveUIVersion>20.3.1</ReactiveUIVersion>
32+
<AvaloniaVersion>11.3.4</AvaloniaVersion>
33+
<ReactiveUIVersion>20.4.1</ReactiveUIVersion>
3434
<XamarinReactiveUIVersion>19.6.12</XamarinReactiveUIVersion>
35-
<WebViewVersion>1.0.3296.44</WebViewVersion>
36-
<CoreNetVersion>9.0.6</CoreNetVersion>
35+
<WebViewVersion>1.0.3405.78</WebViewVersion>
36+
<CoreNetVersion>9.0.8</CoreNetVersion>
3737
<CrissCrossCoreTargetFrameworks>netstandard2.0;net8.0;net9.0</CrissCrossCoreTargetFrameworks>
3838
<CrissCrossWinTargetFrameworks>net462;net472;net48;net8.0-windows10.0.17763.0;net9.0-windows10.0.17763.0</CrissCrossWinTargetFrameworks>
3939
<CrissCrossWebviewTargetFrameworks>net462;net472;net48;net8.0-windows;net9.0-windows</CrissCrossWebviewTargetFrameworks>
@@ -56,7 +56,7 @@
5656
<!--<Compile Update="**\*.cs" DependentUpon="I%(Filename).cs" />-->
5757
<PackageReference Include="Nerdbank.GitVersioning" Version="3.7.115" PrivateAssets="all" Condition="!Exists('packages.config')" />
5858
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
59-
<PackageReference Include="Roslynator.Analyzers" Version="4.13.1" PrivateAssets="All" />
59+
<PackageReference Include="Roslynator.Analyzers" Version="4.14.0" PrivateAssets="All" />
6060
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" />
6161
</ItemGroup>
6262
</Project>

Version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "2.5.2",
3+
"version": "2.5.3",
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$",
66
"^refs/heads/main$"

src/CrissCross.Avalonia.Test.Android/CrissCross.Avalonia.Test.Android.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<ItemGroup>
2121
<PackageReference Include="Avalonia.Android" Version="$(AvaloniaVersion)" />
22-
<PackageReference Include="Xamarin.AndroidX.Core.SplashScreen" Version="1.0.1.16" />
22+
<PackageReference Include="Xamarin.AndroidX.Core.SplashScreen" Version="1.0.1.17" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

src/CrissCross.MAUI.Test/CrissCross.MAUI.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(CoreNetVersion)" />
5555
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(CoreNetVersion)" />
5656
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="$(CoreNetVersion)" />
57-
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.80" />
58-
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.80" />
57+
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.100" />
58+
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.100" />
5959
</ItemGroup>
6060

6161
<ItemGroup>

src/CrissCross.MAUI/CrissCross.MAUI.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<IsAotCompatible>true</IsAotCompatible>
2020
</PropertyGroup>
2121
<ItemGroup>
22-
<PackageReference Include="CompiledBindings.MAUI" Version="1.0.18" />
2322
<PackageReference Include="ReactiveUI.Maui" Version="$(ReactiveUIVersion)" />
2423
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(CoreNetVersion)" />
2524
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(CoreNetVersion)" />
@@ -29,8 +28,8 @@
2928
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.100" />
3029
</ItemGroup>
3130
<ItemGroup Condition="$(TargetFramework.StartsWith('net9'))">
32-
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.80" />
33-
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.80" />
31+
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.100" />
32+
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.100" />
3433
</ItemGroup>
3534
<ItemGroup>
3635
<ProjectReference Include="..\CrissCross\CrissCross.csproj" />

src/CrissCross.WPF.Plot.Test/CrissCross.WPF.Plot.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="ReactiveMarbles.ObservableEvents.SourceGenerator" Version="1.3.1" PrivateAssets="all" />
14-
<PackageReference Include="ReactiveUI.SourceGenerators" Version="2.2.4" PrivateAssets="all" />
14+
<PackageReference Include="ReactiveUI.SourceGenerators" Version="2.3.1" PrivateAssets="all" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

src/CrissCross.WPF.Plot/CrissCross.WPF.Plot.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
<PackageReference Include="AppBarButton.WPF" Version="1.0.2" />
1616
<PackageReference Include="ReactiveList" Version="2.2.1" />
1717
<PackageReference Include="ReactiveMarbles.ObservableEvents.SourceGenerator" Version="1.3.1" PrivateAssets="all" />
18-
<PackageReference Include="ReactiveUI.SourceGenerators" Version="2.2.4" PrivateAssets="all" />
19-
<PackageReference Include="ScottPlot.WPF" Version="5.0.55" />
18+
<PackageReference Include="ReactiveUI.SourceGenerators" Version="2.3.1" PrivateAssets="all" />
19+
<PackageReference Include="ScottPlot.WPF" Version="5.0.56" />
2020
</ItemGroup>
2121

2222
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
23-
<PackageReference Include="Polyfill" Version="8.0.1">
23+
<PackageReference Include="Polyfill" Version="8.8.0">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2626
</PackageReference>

src/CrissCross.WPF.UI.Gallery/CrissCross.WPF.UI.Gallery.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="ReactiveUI.SourceGenerators" Version="2.2.4" PrivateAssets="all" />
20-
<PackageReference Include="CompiledBindings.WPF" Version="1.0.18" />
19+
<PackageReference Include="ReactiveUI.SourceGenerators" Version="2.3.1" PrivateAssets="all" />
20+
<PackageReference Include="CompiledBindings.WPF" Version="1.0.19" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/CrissCross.WPF.UI.Gallery/Views/BasicControls/NumericPushButtonView.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
<RowDefinition />
4141
</Grid.RowDefinitions>
4242
<ui:NumericPushButton Margin="5" UseSeperateEditValue="True" />
43-
<ui:NumericPushButton Grid.Column="1" Margin="5" />
43+
<ui:NumericPushButton
44+
Grid.Column="1"
45+
Margin="5"
46+
UseCrissCrossThemeManager="False" />
4447

4548
<ui:NumericPushButton Grid.Column="3" Margin="5" />
4649
<ui:NumericPushButton Grid.Row="1" Margin="5" />

src/CrissCross.WPF.UI/Controls/NumberPad/NumberPad.xaml

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717
<Window.Background>
1818
<SolidColorBrush Opacity="0" Color="#00000000" />
1919
</Window.Background>
20-
<Grid>
21-
<Grid
22-
x:Name="Mask"
23-
Background="{Binding MaskColor}"
24-
Opacity="0.1" />
25-
<Grid
20+
<controls:Grid>
21+
<controls:Grid x:Name="Mask" Opacity="0.1" />
22+
<controls:Grid
2623
x:Name="WGrid"
2724
Width="206"
2825
Height="366"
@@ -31,16 +28,16 @@
3128
VerticalAlignment="Top"
3229
Background="{DynamicResource ApplicationBackgroundBrush}"
3330
Opacity="1">
34-
<StackPanel
31+
<controls:StackPanel
3532
Margin="8"
3633
HorizontalAlignment="Center"
3734
VerticalAlignment="Center">
38-
<Border
35+
<controls:Border
3936
Width="184"
4037
Height="40"
4138
BorderBrush="Black"
4239
BorderThickness="1">
43-
<StackPanel
40+
<controls:StackPanel
4441
HorizontalAlignment="Right"
4542
VerticalAlignment="Center"
4643
Orientation="Horizontal">
@@ -55,17 +52,17 @@
5552
SpinButtonPlacementMode="Hidden"
5653
Text="0"
5754
TextAlignment="Right" />
58-
<Label
55+
<controls:Label
5956
x:Name="Unit"
6057
Width="55"
6158
VerticalAlignment="Center"
6259
x:FieldModifier="public"
6360
Content="Unit"
6461
FontFamily="Tahoma"
6562
FontSize="19" />
66-
</StackPanel>
67-
</Border>
68-
<StackPanel Margin="0,8,0,0" Orientation="Horizontal">
63+
</controls:StackPanel>
64+
</controls:Border>
65+
<controls:StackPanel Margin="0,8,0,0" Orientation="Horizontal">
6966
<controls:Button
7067
Width="56"
7168
Height="48"
@@ -101,8 +98,8 @@
10198
Text="9"
10299
TextDecorations="Underline" />
103100
</controls:Button>
104-
</StackPanel>
105-
<StackPanel Margin="0,8,0,0" Orientation="Horizontal">
101+
</controls:StackPanel>
102+
<controls:StackPanel Margin="0,8,0,0" Orientation="Horizontal">
106103
<controls:Button
107104
Width="56"
108105
Height="48"
@@ -138,8 +135,8 @@
138135
Text="6"
139136
TextDecorations="Underline" />
140137
</controls:Button>
141-
</StackPanel>
142-
<StackPanel Margin="0,8,0,0" Orientation="Horizontal">
138+
</controls:StackPanel>
139+
<controls:StackPanel Margin="0,8,0,0" Orientation="Horizontal">
143140
<controls:Button
144141
Width="56"
145142
Height="48"
@@ -175,8 +172,8 @@
175172
Text="3"
176173
TextDecorations="Underline" />
177174
</controls:Button>
178-
</StackPanel>
179-
<StackPanel Margin="0,8,0,0" Orientation="Horizontal">
175+
</controls:StackPanel>
176+
<controls:StackPanel Margin="0,8,0,0" Orientation="Horizontal">
180177
<controls:Button
181178
Width="56"
182179
Height="48"
@@ -210,8 +207,8 @@
210207
FontSize="19"
211208
Text="-" />
212209
</controls:Button>
213-
</StackPanel>
214-
<StackPanel Margin="0,8,0,0" Orientation="Horizontal">
210+
</controls:StackPanel>
211+
<controls:StackPanel Margin="0,8,0,0" Orientation="Horizontal">
215212
<controls:Button
216213
x:Name="CancelBtn"
217214
Width="56"
@@ -241,8 +238,8 @@
241238
FontSize="48"
242239
FontWeight="Bold"
243240
Foreground="White" />
244-
</StackPanel>
245-
</StackPanel>
246-
</Grid>
247-
</Grid>
241+
</controls:StackPanel>
242+
</controls:StackPanel>
243+
</controls:Grid>
244+
</controls:Grid>
248245
</Window>

0 commit comments

Comments
 (0)