private static void OnUpdateIntervalChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { HubTileBase hubTile = sender as HubTileBase; var newInterval = (TimeSpan)args.NewValue; if (hubTile.updateIntervalChache != newInterval) { hubTile.updateIntervalChache = newInterval; hubTile.updateTimer.Interval = newInterval; } }
private static void OnIsFrozenChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { HubTileBase hubTile = (HubTileBase)sender; hubTile.UpdateTimerState(); var peer = FrameworkElementAutomationPeer.CreatePeerForElement(hubTile) as HubTileBaseAutomationPeer; if (peer != null) { peer.RaiseToggleStatePropertyChangedEvent((bool)args.OldValue, (bool)args.NewValue); } }
private static void OnBackContentChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { HubTileBase tile = sender as HubTileBase; tile.OnBackContentChanged(args.NewValue, args.OldValue); }
private static void OnIsFlippedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { HubTileBase tile = sender as HubTileBase; tile.OnIsFlippedChanged((bool)args.NewValue, (bool)args.OldValue); }
private static void OnIsFrozenChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { HubTileBase hubTile = (HubTileBase)sender; hubTile.UpdateTimerState(); }