Ejemplo n.º 1
0
        private static void OnZeroBalanceReachedTooltipChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            TimeMergeGauge thisObject = sender as TimeMergeGauge;

            if (thisObject != null)
            {
                thisObject._zeroBalanceReachedTextBlock.ToolTip = args.NewValue as string;
            }
        }
Ejemplo n.º 2
0
        private static void OnZeroBalanceReachedTimeChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            TimeMergeGauge thisObject = sender as TimeMergeGauge;

            if (thisObject != null)
            {
                var newZeroBalanceText = args.NewValue as string;
                thisObject._zeroBalanceReachedTextBlock.Visibility = string.IsNullOrEmpty(newZeroBalanceText) ? Visibility.Hidden : Visibility.Visible;
                thisObject._zeroBalanceReachedTextBlock.Text       = newZeroBalanceText;
            }
        }