private void ToggleElementsOpacity(bool show) { InfoPlaceHolderGrid.GetVisual().Opacity = show ? 1f : 0f; OperationSP.GetVisual().Opacity = show ? 1f : 0f; PreviewBtn.GetVisual().Opacity = show ? 1f : 0f; SetAsGrid.GetVisual().Opacity = show ? 1f : 0f; }
private void SetInfoPlaceholderGridClip(bool clip) { if (!clip) { InfoPlaceHolderGrid.ClearValue(ClipProperty); return; } InfoPlaceHolderGrid.Clip = new RectangleGeometry() { Rect = new Rect(0, 0, InfoPlaceHolderGrid.ActualWidth, InfoPlaceHolderGrid.ActualHeight) }; }
private void ToggleElementsOpacity(bool show) { InfoPlaceHolderGrid.GetVisual().Opacity = show ? 1f : 0f; OperationSp.GetVisual().Opacity = show ? 1f : 0f; }