C# Класс Continuity.Controls.StarsBackground

TODO: 1. Create glow effect on each big star 2. Dispose stars that are outside of the window and recreate new ones 3. Hook up with Inclinometer (90%)
Наследование: Windows.UI.Xaml.Controls.UserControl
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
NumberOfBigMovingStarsProperty Windows.UI.Xaml.DependencyProperty
NumberOfSmallTwinklingStarsProperty Windows.UI.Xaml.DependencyProperty
SkyVisualAreaRatioProperty Windows.UI.Xaml.DependencyProperty
StarUriStringProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Свойство Тип Описание
CreateBigMovingStarVisual void
CreateSmallTwinklingStarVisual void
CreateStarVisual SpriteVisual
CreateStarsVisuals void
InitializeCompositionVariables void
OnInclinometerReadingChanged void
OnLoaded void
OnWindowVisibilityChanged void
RunInclinometer void
SetupInclinometer void
SetupSkyVisualOffsetExpressionAnimation void
StartBigMovingStarVisualOpacityAnimation void
StartSkyCanvasStartupAnimations void
StartSmallTwinklingStarVisualOpacityAnimation void
StartStarVisualOffsetAnimation void
StopInclinometer void

Открытые методы

Метод Описание
StarsBackground ( ) : Continuity.Extensions

Приватные методы

Метод Описание
CreateBigMovingStarVisual ( ) : void
CreateSmallTwinklingStarVisual ( ) : void
CreateStarVisual ( float offsetZ, float diameter ) : SpriteVisual
CreateStarsVisuals ( ) : void
InitializeCompositionVariables ( ) : void
OnInclinometerReadingChanged ( Inclinometer sender, InclinometerReadingChangedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnWindowVisibilityChanged ( object sender, VisibilityChangedEventArgs e ) : void
RunInclinometer ( ) : void

Restore the default report interval.

SetupInclinometer ( ) : void
SetupSkyVisualOffsetExpressionAnimation ( ) : void
StartBigMovingStarVisualOpacityAnimation ( SpriteVisual starVisual ) : void
StartSkyCanvasStartupAnimations ( ) : void
StartSmallTwinklingStarVisualOpacityAnimation ( SpriteVisual starVisual ) : void
StartStarVisualOffsetAnimation ( SpriteVisual starVisual, double duration, float offsetZ = 0.0f ) : void
StopInclinometer ( ) : void

Reset the default report interval to release resources while the sensor is not in use.

Описание методов

StarsBackground() публичный Метод

public StarsBackground ( ) : Continuity.Extensions
Результат Continuity.Extensions

Описание свойств

NumberOfBigMovingStarsProperty публичное статическое свойство

public static DependencyProperty,Windows.UI.Xaml NumberOfBigMovingStarsProperty
Результат Windows.UI.Xaml.DependencyProperty

NumberOfSmallTwinklingStarsProperty публичное статическое свойство

public static DependencyProperty,Windows.UI.Xaml NumberOfSmallTwinklingStarsProperty
Результат Windows.UI.Xaml.DependencyProperty

SkyVisualAreaRatioProperty публичное статическое свойство

public static DependencyProperty,Windows.UI.Xaml SkyVisualAreaRatioProperty
Результат Windows.UI.Xaml.DependencyProperty

StarUriStringProperty публичное статическое свойство

public static DependencyProperty,Windows.UI.Xaml StarUriStringProperty
Результат Windows.UI.Xaml.DependencyProperty