This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<controls:Gauge Width="136" | |
Height="136" | |
Margin="0" | |
HorizontalAlignment="Center" | |
VerticalAlignment="Center" | |
FontSize="32" | |
Maximum="100" | |
ScaleBrush="Blue" | |
ScaleWidth="20" | |
Style="{StaticResource Gauge}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xmlns:controls="using:Gauge.Controls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A Modern UI Radial Gauge. | |
/// </summary> | |
[TemplatePart(Name = NeedlePartName, Type = typeof(Path))] | |
[TemplatePart(Name = ScalePartName, Type = typeof(Path))] | |
[TemplatePart(Name = TrailPartName, Type = typeof(Path))] | |
[TemplatePart(Name = ValueTextPartName, Type = typeof(TextBlock))] | |
public class Gauge : Control | |
{ | |
#region Constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackPanel Background="{StaticResource ThemeColor}" Height="60" HorizontalAlignment="Center"> | |
<TextBlock Text="Hello World" Style="{StaticResource MyTextBlockStyle}"/> | |
</StackPanel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Application.Resources> | |
<ResourceDictionary> | |
<ResourceDictionary.MergedDictionaries> | |
<ResourceDictionary Source="Themes/SharedResources.xaml" /> | |
<ResourceDictionary Source="Themes/PlatformSpecificThemes.xaml" /> | |
</ResourceDictionary.MergedDictionaries> | |
</ResourceDictionary> | |
</Application.Resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style x:Key="MyTextBlockStyle" TargetType="TextBlock"> | |
<Setter Property="Foreground" Value="Green"/> | |
<Setter Property="FontSize" Value="20"/> | |
<Setter Property="Margin" Value="12"/> | |
</Style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style x:Key="MyTextBlockStyle" TargetType="TextBlock"> | |
<Setter Property="Foreground" Value="Red"/> | |
<Setter Property="FontSize" Value="20"/> | |
<Setter Property="Margin" Value="12"/> | |
</Style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextBlock Text="Hello World!!" Style="{StaticResource MyTextBlockStyle}" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) | |
{ | |
ToastService.ShowToastNotification(MyTextBox.Text); | |
} |
NewerOlder