コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        private static void OnBackContentChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            HubTileBase tile = sender as HubTileBase;

            tile.OnBackContentChanged(args.NewValue, args.OldValue);
        }
コード例 #4
0
        private static void OnIsFlippedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            HubTileBase tile = sender as HubTileBase;

            tile.OnIsFlippedChanged((bool)args.NewValue, (bool)args.OldValue);
        }
コード例 #5
0
ファイル: HubTileBase.cs プロジェクト: zach14c/UI-For-UWP
        private static void OnIsFrozenChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            HubTileBase hubTile = (HubTileBase)sender;

            hubTile.UpdateTimerState();
        }