Наследование: System.EventArgs
Пример #1
0
 void OnSelectElement( object sender, HighlightEventArgs e )
 {
     if( e.Element is VMKeySimple )
     {
         VMKeySimple key = (VMKeySimple)e.Element;
         if( key.KeyDownCommand.CanExecute( null ) )
         {
             key.KeyDownCommand.Execute( null );
             if( key.KeyUpCommand.CanExecute( null ) )
             {
                 key.KeyUpCommand.Execute( null );
             }
         }
     }
 }
Пример #2
0
 void OnEndHighlight( object sender, HighlightEventArgs e )
 {
     VMZoneSimple vm = e.Element as VMZoneSimple;
     if( vm != null ) vm.IsHighlighting = false;
     else
     {
         VMKeySimple vmk = e.Element as VMKeySimple;
         if( vmk != null ) vmk.IsHighlighting = false;
     }
 }
Пример #3
0
 void OnSelectElement( object sender, HighlightEventArgs e )
 {
     if( Parent.IsViewHidden && e.Element == this )
     {
         Parent.RestoreSkin();
     }
 }
Пример #4
0
 void OnEndHighlight( object sender, HighlightEventArgs e )
 {
     if( Parent.IsViewHidden && e.Element == this )
     {
         IsHighlighted = false;
     }
 }
Пример #5
0
 void OnBeginHighlight( object sender, HighlightEventArgs e )
 {
     if( Parent.IsViewHidden && e.Element == this )
     {
         IsHighlighted = true;
     }
 }
Пример #6
0
 protected void FireSelectElement( object sender, HighlightEventArgs eventArgs )
 {
     SelectElement( sender, eventArgs );
 }