Eyeshot 11 WPF API Reference
WPF Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / SplitterMoving Property
Example

In This Topic
    SplitterMoving Property
    In This Topic
    When the viewport control is hosted inside a Grid control with GridSplitter an annoying repaint issue is present during GridSplitter moving. Setting properly this flag this can be avoided.
    Syntax
    'Declaration
     
    Public Property SplitterMoving As Boolean
    public bool SplitterMoving {get; set;}
    Example
    The following code fragment demonstrates the usage of the SplitterMoving flag to avoid the SplitControl repaint issue during GridSplitter moving.
    private void GridSplitter1_PreviewMouseDown(object sender, MouseButtonEventArgs e)
    {        
    		MainViewport.SplitterMoving = true;                
    }
    private void GridSplitter1_PreviewMouseUp(object sender, MouseButtonEventArgs e)
    {        
    	MainViewport.SplitterMoving = false;
    }
    Private Sub GridSplitter1_PreviewMouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles GridSplitter1.PreviewMouseDown        
        MainViewport.SplitterMoving = True        
    End Sub
    Private Sub GridSplitter1__PreviewMouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles GridSplitter1.PreviewMouseUp                
        MainViewport.SplitterMoving = False
    End Sub
    See Also