private void simpleLabelItem1_MouseDown(object sender, MouseEventArgs e) { if (tileControlLayoutItem.Visibility == LayoutVisibility.Always) { ItemsHideHelper.Hide(hideItemCollection, buttonHide); return; } if (tileControlLayoutItem.Visibility == LayoutVisibility.Never) { ItemsHideHelper.Expand(hideItemCollection, buttonHide); } }
private void collapseButton_Click(object sender, EventArgs e) { if (tileControlLCI.Visibility == LayoutVisibility.Always) { ItemsHideHelper.Hide(new object[] { tileControlLCI }, buttonHide); return; } if (tileControlLCI.Visibility == LayoutVisibility.Never) { ItemsHideHelper.Expand(new object[] { tileControlLCI }, buttonHide); } }
void hideButton_Click(object sender, EventArgs e) { if (tileControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Always) { ItemsHideHelper.Hide(hideItemCollection, hideButton); productsSLI.Padding = new XtraLayout.Utils.Padding(25, 2, 10, 10); return; } if (tileControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Never) { ItemsHideHelper.Expand(hideItemCollection, hideButton); productsSLI.Padding = new XtraLayout.Utils.Padding(2, 2, 10, 10); return; } }