Advanced XAML Animation effects. Pulse, Marching ants, Rotations. Alerts

前端 未结 2 1095
难免孤独
难免孤独 2020-12-01 11:24

I have a list of alarms. When alarms are activated it has been requested to make them more noticeable. When an alarms status changes I wanted to create a pulsing Outer Glo

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 12:16

    Ok amigo, so I took about 15-20mins this morning to go ahead and throw together a few random examples of styles I've used in the past for notification type stuff. I'm guessing the mock you show is just a real rough example, so without knowing more precisely what it looks like it's difficult to match the style like a designer would want to.

    However, I imagine you could use these examples to get the creative juices flowing on how/what route to go, and just a taste of some of the things you can do real quick and easily. If you want a prettier/more precise example you'll have to share the real screens etc. The animations and stuff could apply to other objects like the icon and stuff but for this example I just threw them at some boxes.

    These are from my own bag of tricks, use them freely, I have tons more different techniques I could show you if ya want also but if we get too involved, well this sort of in depth advice is how I make a living, so may have to at least charge ya a case of beer or something ;)

    Anyhow, throw this in a window, I just did it with a fresh quick wpf proj. so you'll just paste them in and run it, they're set to start on load.

    Main thing I've found to avoid, is messing heavily with gradients and the various pixel shader stuff like that in mass animations. However stuff like this seems to do fine.

    OUTPUT (In choppy .gif animated style anyway for visual example.):

    AND THE MAGIC:

    
        
    
            
            
                    
                               
                    
            
    
            
            
                
                    
                    
                
                
                    
                    
                
            
    
            
            
                
                    
                    
                
                
                    
                    
                
            
    
    
            
            
                
                    
                
            
    
            
            
                
                    
                    
                    
                
            
    
        
        
            
                
                
                
                
                
            
        
    
        
            
                
                
                
            
    
            
    
            
            
    
                
                    
                        
                            
                            
                        
                    
                
    
                
    
            
            
    
    
            
            
                
                    
                        
                            
                            
                            
                            
                        
                    
    
                    
    
                
            
            
    
    
            
            
                
                    
                        
                            
                            
                            
                            
                        
                    
    
                    
    
                
            
            
    
    
            
            
                
                    
                        
                            
                            
                        
                    
                
    
                
    
            
            
    
    
            
            
                
                
                    
                        
                            
                            
                            
                            
                        
                    
                
    
                
    
            
            
    
            
    
        
    
    

提交回复
热议问题