public void SetReadOnly(bool readOnly)
 {
     this.ResetButton.Visibility = readOnly ? Visibility.Collapsed : System.Windows.Visibility.Visible;
     if (CellMeasurePanel != null)
     {
         CellMeasurePanel.SetReadOnly(readOnly);
     }
     if (periodPanel != null)
     {
         periodPanel.SetReadOnly(readOnly);
     }
     if (filterScopePanel != null)
     {
         filterScopePanel.SetReadOnly(readOnly);
     }
 }
 public void Expand(bool expand)
 {
     CellMeasurePanel.Expand(expand);
     filterScopePanel.Expand(expand);
 }