Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 28 additions & 14 deletions AppWeather/Views/HomePage.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Page
<Page
x:Class="AppWeather.Views.HomePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Expand Down Expand Up @@ -337,19 +337,33 @@
</gauge:SfCircularGauge>
</Grid>

<!--<Grid Grid.Row="2" Grid.Column="1" Margin="20,0,0,20">
<gauge:SfCircularGauge Height="200" Width="200">
<Grid Grid.Row="2" Grid.Column="1" Margin="30,0,0,30">
<gauge:SfCircularGauge x:Name="stroke" Height="210" Width="210">
<gauge:SfCircularGauge.Scales>
<gauge:CircularScale RimStrokeThickness="0" RimStroke="Transparent" TickStroke="Transparent" SmallTickStroke="Transparent" LabelStroke="Transparent" StartAngle="90" SweepAngle="2000" StartValue="0" EndValue="2000" RangePointerPosition="Custom" RangePointerOffset="0.05">

<!--<gauge:CircularScale RimStrokeThickness="0" RimStroke="Transparent" TickStroke="Transparent" SmallTickStroke="Transparent" LabelStroke="Transparent" StartAngle="90" SweepAngle="2000" StartValue="0" EndValue="2000" RangePointerPosition="Custom" RangePointerOffset="0.05">
<gauge:CircularScale.Pointers>
<gauge:CircularPointer PointerType="RangePointer" RangePointerStrokeThickness="20" RangePointerStroke="#66FFFFFF" Value="{Binding Pressure}" >
</gauge:CircularPointer>
</gauge:CircularScale.Pointers>
</gauge:CircularScale>
<gauge:CircularScale RimStrokeThickness="00" RimStroke="Transparent" TickStroke="Transparent" SmallTickStroke="Transparent" LabelStroke="Transparent" RangePointerPosition="Cross" StartAngle="90" SweepAngle="2000" StartValue="0" EndValue="2000">
</gauge:CircularScale>-->
<gauge:CircularScale RimStrokeThickness="20" RimStroke="Transparent" TickStroke="Transparent" SmallTickStroke="Transparent" LabelStroke="Transparent" RangePointerPosition="Cross" StartAngle="90" SweepAngle="2000" StartValue="0" EndValue="2000">
<gauge:CircularScale.Ranges>
<gauge:CircularRange StartValue="0" EndValue="{Binding Pressure}" Opacity="0.5" StrokeThickness="40" Stroke="White">
<!--<gauge:CircularRange.Stroke>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Transparent"/>
<GradientStop Color="#7FFFFFFF" Offset="0.5"/>
<GradientStop Color="Transparent" Offset="0.51"/>
<GradientStop Color="Transparent" Offset="1"/>
</LinearGradientBrush>
</gauge:CircularRange.Stroke>-->
</gauge:CircularRange>
</gauge:CircularScale.Ranges>
<gauge:CircularScale.Pointers>
<gauge:CircularPointer KeyTipHorizontalOffset="3" PointerType="SymbolPointer" Symbol="Rectangle" Value="{Binding Pressure}" SymbolPointerStroke="White" SymbolPointerWidth="7" SymbolPointerHeight="30" />
<gauge:CircularPointer KeyTipHorizontalOffset="3" PointerType="SymbolPointer" Symbol="Rectangle" Value="{Binding Pressure}" SymbolPointerWidth="27" SymbolPointerHeight="30" >
<gauge:CircularPointer NeedleLengthFactor="1" NeedlePointerStrokeThickness="20" NeedlePointerStroke="{ThemeResource AppBarItemForegroundThemeBrush}" PointerType="NeedlePointer" Symbol="Rectangle" Value="{Binding Pressure}"/>
<!--<gauge:CircularPointer KeyTipHorizontalOffset="3" PointerType="SymbolPointer" Symbol="Rectangle" Value="{Binding Pressure}" SymbolPointerStroke="White" SymbolPointerWidth="20" SymbolPointerHeight="30" />-->
<gauge:CircularPointer KeyTipHorizontalOffset="3" PointerType="SymbolPointer" Symbol="Rectangle" SymbolPointerBorderBrush="Transparent" SymbolPointerBorderThickness="0" Value="{Binding Pressure}" SymbolPointerWidth="27" SymbolPointerHeight="30" >
<gauge:CircularPointer.SymbolPointerStroke>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Transparent"/>
Expand All @@ -363,7 +377,7 @@
</gauge:CircularScale>
</gauge:SfCircularGauge.Scales>
</gauge:SfCircularGauge>
</Grid>-->
</Grid>
<!--<Frame Grid.Row="2" Grid.Column="2" x:Name="AgaueFrame4" Margin="20,0,0,20">
</Frame>-->
</Grid>
Expand Down Expand Up @@ -396,11 +410,11 @@

<Grid Grid.Row="2" Grid.Column="1" Margin="20,0,0,20">

<Polygon Points="333.2,412.8 547.4,469.8 542.6,490.2 490.7,473.8 329,430.7 486,587.1 471.7,602.4 435,562.3 316.5,444.1 374.2,658.1 354.2,664.1 342.4,611 297.8,445.2 253.7,610.5 241.5,664.3 221.9,659 279.1,444.1 161.3,562.2 123.8,602.7 109.6,588.2 266.6,430.7 105.5,474.1 52.8,490.4 47.7,470.8 262.4,412.9 101.2,369.9 47.4,357.7 52.8,338.1 267.7,395.4 149.6,277.5 109.1,240.1 123.5,225.8 281,382.8 237.7,221.7 221.3,169 241,163.9 297.7,374.3 353.6,164.4 373.9,169.2 357.6,221 314.5,382.7 470.9,225.8 486.1,240 446.1,276.8 327.9,395.3 541.8,337.6 547.9,357.5 494.8,369.3"
Fill="{Binding SystemControlAcrylicWindowBrush}" Stretch="UniformToFill" Width="200" Height="200"/>
<Path Data="M0,0V513H513V0H0ZM256.14,512.5C114.75,512.5,.14,397.88,.14,256.5S114.75,.5,256.14,.5s256,114.62,256,256-114.62,256-256,256Z" Stretch="UniformToFill" Width="200" Height="200"
Fill="{ThemeResource SystemControlAcrylicWindowBrush}"/>
<Ellipse Width="160" Height="160" Fill="{ThemeResource SystemControlAcrylicWindowBrush}"></Ellipse>
<!--<Polygon Points="333.2,412.8 547.4,469.8 542.6,490.2 490.7,473.8 329,430.7 486,587.1 471.7,602.4 435,562.3 316.5,444.1 374.2,658.1 354.2,664.1 342.4,611 297.8,445.2 253.7,610.5 241.5,664.3 221.9,659 279.1,444.1 161.3,562.2 123.8,602.7 109.6,588.2 266.6,430.7 105.5,474.1 52.8,490.4 47.7,470.8 262.4,412.9 101.2,369.9 47.4,357.7 52.8,338.1 267.7,395.4 149.6,277.5 109.1,240.1 123.5,225.8 281,382.8 237.7,221.7 221.3,169 241,163.9 297.7,374.3 353.6,164.4 373.9,169.2 357.6,221 314.5,382.7 470.9,225.8 486.1,240 446.1,276.8 327.9,395.3 541.8,337.6 547.9,357.5 494.8,369.3"
Fill="{Binding SystemControlAcrylicWindowBrush}" Stretch="UniformToFill" Width="200" Height="200"/>-->
<!--<Path Data="M0,0V513H513V0H0ZM256.14,512.5C114.75,512.5,.14,397.88,.14,256.5S114.75,.5,256.14,.5s256,114.62,256,256-114.62,256-256,256Z" Stretch="UniformToFill" Width="200" Height="200"
Fill="{ThemeResource SystemControlAcrylicWindowBrush}"/>-->
<Ellipse Width="140" Height="140" Fill="{ThemeResource SystemControlAcrylicWindowBrush}"></Ellipse>

<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{x:Bind ViewModel.Pressure, Mode=TwoWay}"
Expand Down