Ejemplo n.º 1
0
        private void BindStatusIconProperties(NotificationIcon sbIcon)
        {
            var aBinding = CreateBindingForRunStateProperty <RunStateToAnimationStateConverter>();

            sbIcon.SetBinding(NotificationIcon.AnimateProperty, aBinding);
            var cBinding = CreateBindingForRunStateProperty <RunStateToIconColorConverter>();

            sbIcon.SetBinding(NotificationIcon.IconColorProperty, cBinding);
            var tBinding = CreateBindingForRunStateProperty <RunStateToIconTextConverter>();

            sbIcon.SetBinding(NotificationIcon.IconTextProperty, tBinding);
        }