-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
218 lines (200 loc) · 11.6 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<Window x:Class="DenseNumerics.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="DenseNumerics" Height="835" Width="800"
WindowStartupLocation="CenterScreen"
Background="{DynamicResource BackgroundBrush}">
<Window.Resources>
<Style x:Key="CategoryTextStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="20"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
<Setter Property="Margin" Value="0,24,0,16"/>
</Style>
<Style x:Key="AnalysisButtonStyle" TargetType="Button" BasedOn="{StaticResource MaterialButton}">
<Setter Property="Height" Value="72"/>
<Setter Property="Margin" Value="0,8"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="Background" Value="{DynamicResource SurfaceBrush}"/>
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
</Style>
<Style x:Key="ButtonTitleStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Margin" Value="0,0,0,4"/>
</Style>
<Style x:Key="ButtonDescriptionStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Header -->
<Border Background="{DynamicResource PrimaryBrush}"
Padding="24,16">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Text="DenseNumerics"
FontSize="24"
FontWeight="Medium"
Foreground="White"/>
<ToggleButton x:Name="ThemeToggle"
Grid.Column="1"
Margin="0,0,16,0"
Click="ThemeToggle_Click">
<ToggleButton.Content>
<Path Data="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
Fill="White"
Width="20"
Height="20"/>
</ToggleButton.Content>
</ToggleButton>
<ComboBox x:Name="LanguageComboBox"
Grid.Column="2"
Width="120"
Style="{DynamicResource MaterialComboBox}"
Background="White"
SelectionChanged="LanguageComboBox_SelectionChanged">
<ComboBoxItem Content="Magyar" Tag="hu"/>
<ComboBoxItem Content="English" Tag="en" IsSelected="True"/>
</ComboBox>
</Grid>
</Border>
<!-- Content -->
<ScrollViewer Grid.Row="1"
Padding="24,0"
VerticalScrollBarVisibility="Auto">
<StackPanel>
<!-- Asymptotic Density Section -->
<TextBlock x:Name="AsymptoticDensityHeader"
Text="Asymptotic Density Analysis"
Style="{DynamicResource CategoryTextStyle}"/>
<Button x:Name="StartingWithOneBtn"
Style="{DynamicResource AnalysisButtonStyle}"
Click="StartingWithOneBtn_Click"
ToolTip="Investigates the asymptotic density of numbers starting with digit 1. This examines how frequent these numbers are compared to all natural numbers and explores if there is a limiting distribution.">
<Grid Margin="16,8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="StartingWithOneBtnTitle"
Text="Numbers Starting with One"
Style="{DynamicResource ButtonTitleStyle}"/>
<TextBlock x:Name="StartingWithOneBtnDesc"
Grid.Row="1"
Text="Analysis of numbers that start with digit 1"
Style="{DynamicResource ButtonDescriptionStyle}"/>
</Grid>
</Button>
<Button x:Name="PowerNumbersBtn"
Style="{DynamicResource AnalysisButtonStyle}"
Click="PowerNumbersBtn_Click"
ToolTip="Studies numbers of the form n^k for a fixed k. Examines their distribution and frequency patterns. Includes analysis of square numbers (k=2), cubic numbers (k=3), and higher powers.">
<Grid Margin="16,8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="PowerNumbersBtnTitle"
Text="Power Numbers"
Style="{DynamicResource ButtonTitleStyle}"/>
<TextBlock x:Name="PowerNumbersBtnDesc"
Grid.Row="1"
Text="Analysis of numbers raised to arbitrary power (n^k)"
Style="{DynamicResource ButtonDescriptionStyle}"/>
</Grid>
</Button>
<Button x:Name="CongruentNumbersBtn"
Style="{DynamicResource AnalysisButtonStyle}"
Click="CongruentNumbersBtn_Click"
ToolTip="Analyzes numbers that give a fixed remainder when divided by a given number. For example, n ≡ 2 (mod 5) studies numbers that give remainder 2 when divided by 5.">
<Grid Margin="16,8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="CongruentNumbersBtnTitle"
Text="Congruent Numbers"
Style="{DynamicResource ButtonTitleStyle}"/>
<TextBlock x:Name="CongruentNumbersBtnDesc"
Grid.Row="1"
Text="Analysis of numbers with specific remainder (n ≡ r (mod m))"
Style="{DynamicResource ButtonDescriptionStyle}"/>
</Grid>
</Button>
<!-- Reciprocal Series Section -->
<TextBlock x:Name="ReciprocalSeriesHeader"
Text="Reciprocal Series Analysis"
Style="{DynamicResource CategoryTextStyle}"/>
<Button x:Name="ReciprocalPowerBtn"
Style="{DynamicResource AnalysisButtonStyle}"
Click="ReciprocalPowerBtn_Click"
ToolTip="Studies series of the form Σ(1/n^k). For k=1 this is the harmonic series. For k=2 it's the Basel problem with sum π²/6. Examines convergence and special values.">
<Grid Margin="16,8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="ReciprocalPowerBtnTitle"
Text="Power Number Series"
Style="{DynamicResource ButtonTitleStyle}"/>
<TextBlock x:Name="ReciprocalPowerBtnDesc"
Grid.Row="1"
Text="Analysis of series 1/n^k for arbitrary k"
Style="{DynamicResource ButtonDescriptionStyle}"/>
</Grid>
</Button>
<Button x:Name="ReciprocalCongruentBtn"
Style="{DynamicResource AnalysisButtonStyle}"
Click="ReciprocalCongruentBtn_Click"
ToolTip="Investigates series Σ(1/n) where n satisfies congruence conditions. Shows how arithmetic progressions affect series convergence.">
<Grid Margin="16,8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="ReciprocalCongruentBtnTitle"
Text="Congruent Number Series"
Style="{DynamicResource ButtonTitleStyle}"/>
<TextBlock x:Name="ReciprocalCongruentBtnDesc"
Grid.Row="1"
Text="Analysis of series 1/n where n ≡ r (mod m)"
Style="{DynamicResource ButtonDescriptionStyle}"/>
</Grid>
</Button>
<!-- Adjacent Elements Section -->
<TextBlock x:Name="AdjacentElementsHeader"
Text="Adjacent Elements Analysis"
Style="{DynamicResource CategoryTextStyle}"/>
<Button x:Name="AdjacentNumbersBtn"
Style="{DynamicResource AnalysisButtonStyle}"
Click="AdjacentNumbersBtn_Click"
ToolTip="Studies ratios of consecutive terms in various sequences like powers, factorials and Fibonacci numbers. Examines limiting behavior and convergence rates.">
<Grid Margin="16,8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="AdjacentNumbersBtnTitle"
Text="Special Number Sequences"
Style="{DynamicResource ButtonTitleStyle}"/>
<TextBlock x:Name="AdjacentNumbersBtnDesc"
Grid.Row="1"
Text="Analysis of ratios for various number sequences"
Style="{DynamicResource ButtonDescriptionStyle}"/>
</Grid>
</Button>
</StackPanel>
</ScrollViewer>
</Grid>
</Window>