예제 #1
0
 private void UpdateSplitterDistance(SplitterInfo splitterInfo)
 {
     if (_splitter.Orientation == Orientation.Horizontal)
     {
         _splitter.SplitterDistance = ViewsManager.GetChildDimensionFromPercentage(_splitter.Height, splitterInfo.HorizontalPercentage);
     }
     else
     {
         _splitter.SplitterDistance = ViewsManager.GetChildDimensionFromPercentage(_splitter.Width, splitterInfo.VerticalPercentage);
     }
 }