private void Rearrange() { if (!vm.ShowRGB && !vm.ShowAlpha && !vm.ShowAlphaOption && !vm.ShowHSV && !vm.ShowWebHexValue) { RHColor.Width = new GridLength(0, GridUnitType.Star); SelPanel.SetValue(Grid.RowProperty, 1); SelPanel.SetValue(Grid.ColumnProperty, 0); } else { RHColor.Width = new GridLength(1, GridUnitType.Star); SelPanel.SetValue(Grid.RowProperty, 0); SelPanel.SetValue(Grid.ColumnProperty, 1); } }
void OnDestroy() { Ins = null; }
void Awake() { Ins = this; }