aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Telemetry/ITelemetrySource.cs
blob: d80c6d73afe31fe18e3edf2cd6b6b07cc7f42fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;

namespace Tango.Telemetry
{
    /// <summary>
    /// Represents a telemetry source that provides telemetry data to the system.
    /// </summary>
    public interface ITelemetrySource : IDisposable
    {
        /// <summary>
        /// Gets the name of the telemetry source.
        /// </summary>
        string Name { get; }

        /// <summary>
        /// Gets a value indicating whether the telemetry source requires duplication tracking.
        /// If true, the system should ensure that duplicate telemetry from this source and another will be filtered.
        /// </summary>
        bool RequiresTelemetryDuplicationTracking { get; }
    }
}
lt;Setter.Value> <ControlTemplate TargetType="{x:Type local:TouchToggleButton}"> <Border x:Name="border" Style="{StaticResource DropShadowBorder}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true"> <components:Ripple CornerRadius="{TemplateBinding CornerRadius}" RippleBrush="{TemplateBinding RippleBrush}"> <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> </components:Ripple> </Border> <ControlTemplate.Triggers> <Trigger Property="IsEnabled" Value="false"> <Setter Property="Background" TargetName="border" Value="{StaticResource TangoDisabledBackgroundBrush}"/> <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TangoDisabledBackgroundBrush}"/> <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource TangoDisabledForegroundBrush}"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary>