1- <Window x : Class =" VitalSync .MainWindow"
1+ <Window x : Class =" ECGMonitor .MainWindow"
22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
55 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6- xmlns : local =" clr-namespace:VitalSync .ViewModel"
6+ xmlns : local =" clr-namespace:ECGMonitor .ViewModel"
77 xmlns : chart =" clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
88 xmlns : button =" http://schemas.syncfusion.com/wpf"
99 mc : Ignorable =" d" Background =" #112e78" WindowState =" Maximized" >
2222 <Setter Property =" Padding" Value =" 20" />
2323 <Setter Property =" CornerRadius" Value =" 10" />
2424 </Style >
25-
25+
2626 <Style TargetType =" TextBlock" x : Key =" bindingTextStyle" >
2727 <Setter Property =" FontSize" Value =" 28" />
2828 <Setter Property =" FontWeight" Value =" Bold" />
2929 <Setter Property =" Foreground" Value =" #2ac145" />
3030 <Setter Property =" TextAlignment" Value =" Right" />
3131 </Style >
32-
32+
3333 <Style TargetType =" TextBlock" x : Key =" staticTextStyle" >
3434 <Setter Property =" FontSize" Value =" 16" />
3535 <Setter Property =" FontWeight" Value =" Bold" />
115115 </Border >
116116
117117 </Grid >
118-
118+
119119 <!-- Metric Panels -->
120120 <UniformGrid Grid.Row=" 1" Columns =" 4" HorizontalAlignment =" Stretch" >
121121 <!-- Heart Rate Panel -->
142142 <BeginStoryboard >
143143 <Storyboard RepeatBehavior =" Forever" AutoReverse =" True" >
144144 <DoubleAnimation Storyboard.TargetName=" HeartScaleTransform"
145- Storyboard.TargetProperty=" ScaleX"
146- From =" 1.0" To =" 1.2"
147- Duration =" 0:0:0.3" />
145+ Storyboard.TargetProperty=" ScaleX"
146+ From =" 1.0" To =" 1.2"
147+ Duration =" 0:0:0.3" />
148148 <DoubleAnimation Storyboard.TargetName=" HeartScaleTransform"
149- Storyboard.TargetProperty=" ScaleY"
150- From =" 1.0" To =" 1.2"
151- Duration =" 0:0:0.3" />
149+ Storyboard.TargetProperty=" ScaleY"
150+ From =" 1.0" To =" 1.2"
151+ Duration =" 0:0:0.3" />
152152 </Storyboard >
153153 </BeginStoryboard >
154154 </EventTrigger >
155155 </Grid .Triggers>
156156 </Grid >
157157 </Border >
158-
158+
159159 <!-- PR Interval Panel -->
160160 <Border Margin =" 0,0,10,10" Style =" {StaticResource borderStyle}" >
161161 <Grid >
216216 <RowDefinition Height =" 1*" />
217217 <RowDefinition Height =" 9*" />
218218 </Grid .RowDefinitions>
219-
219+
220220 <!-- Title and Export Button -->
221221 <Grid Margin =" 0,0,0,10" >
222222 <Grid .ColumnDefinitions>
223223 <ColumnDefinition Width =" 0.2*" />
224224 <ColumnDefinition Width =" 2*" />
225225 <ColumnDefinition Width =" 7.5*" />
226226 </Grid .ColumnDefinitions>
227-
227+
228228 <Ellipse Width =" 15" Height =" 15" Fill =" #2ac145" Grid.Column=" 0" VerticalAlignment =" Center" HorizontalAlignment =" Left" />
229229 <TextBlock Text =" Live Signal" Grid.Column=" 1" FontSize =" 18" FontWeight =" Bold" Foreground =" white" HorizontalAlignment =" Left" VerticalAlignment =" Center" />
230230 <button : ButtonAdv SizeMode =" Normal" Label =" Export" IconWidth =" 30" IconHeight =" 30" SmallIcon =" /Images/export.png" Grid.Column=" 2" Width =" 100" Height =" 35" CornerRadius =" 10" Click =" Button_Click" HorizontalAlignment =" Right" VerticalAlignment =" Center" />
238238 <Setter Property =" StrokeThickness" Value =" 1" />
239239 <Setter Property =" Stroke" Value =" #344566" />
240240 </Style >
241-
241+
242242 <Style TargetType =" Line" x : Key =" lineStyle" >
243243 <Setter Property =" StrokeThickness" Value =" 2" />
244244 <Setter Property =" Stroke" Value =" #344566" />
245245 </Style >
246-
246+
247247 <Style TargetType =" Label" x : Key =" axisLabelStyle" >
248248 <Setter Property =" FontSize" Value =" 14" />
249249 <Setter Property =" Foreground" Value =" #FFFFFF" />
257257 <!-- Primary Axis (X) -->
258258 <chart : SfChart .PrimaryAxis>
259259 <chart : NumericalAxis Header =" Time in seconds"
260- MajorGridLineStyle =" {StaticResource gridLineStyle}"
261- MajorTickLineStyle =" {StaticResource lineStyle}"
262- AxisLineStyle =" {StaticResource lineStyle}" >
260+ MajorGridLineStyle =" {StaticResource gridLineStyle}"
261+ MajorTickLineStyle =" {StaticResource lineStyle}"
262+ AxisLineStyle =" {StaticResource lineStyle}" >
263263 <chart : NumericalAxis .HeaderStyle>
264264 <chart : LabelStyle Foreground =" #FFFFFF" />
265265 </chart : NumericalAxis .HeaderStyle>
272272 <!-- Secondary Axis (Y) -->
273273 <chart : SfChart .SecondaryAxis>
274274 <chart : NumericalAxis Maximum =" 1.5" Minimum =" -0.5"
275- Header =" Voltage in mV"
276- MajorGridLineStyle =" {StaticResource lineStyle}"
277- MajorTickLineStyle =" {StaticResource lineStyle}"
278- AxisLineStyle =" {StaticResource lineStyle}" >
275+ Header =" Voltage in mV"
276+ MajorGridLineStyle =" {StaticResource lineStyle}"
277+ MajorTickLineStyle =" {StaticResource lineStyle}"
278+ AxisLineStyle =" {StaticResource lineStyle}" >
279279 <chart : NumericalAxis .HeaderStyle>
280280 <chart : LabelStyle Foreground =" #FFFFFF" />
281281 </chart : NumericalAxis .HeaderStyle>
287287
288288 <!-- Fast Line Series -->
289289 <chart : FastLineSeries ItemsSource =" {Binding LiveData}"
290- XBindingPath =" Time"
291- YBindingPath =" Voltage"
292- Stroke =" #00D9FF"
293- StrokeThickness =" 2" />
290+ XBindingPath =" Time"
291+ YBindingPath =" Voltage"
292+ Stroke =" #00D9FF"
293+ StrokeThickness =" 2" />
294294 </chart : SfChart >
295295 </Grid >
296296 </Border >
297297 </Grid >
298- </Window >
298+ </Window >
0 commit comments