private void ShowPowerExponentPart() { if (this.powerExponentPart == null) { return; } this.baseNumberPanel.Children.Clear(); this.powerPanel.Children.Clear(); CommonControlCreator.CreateContentControl(this.powerExponentPart.BaseNumber, this.baseNumberPanel, this.Foreground, null); CommonControlCreator.CreateContentControl(this.powerExponentPart.Power.Content, this.powerPanel, this.Foreground, null); }
private void ShowFractionPart() { if (this.fractionPart == null) { return; } if (this.fractionPart.WithPart != null) { this.withPanel.Visibility = System.Windows.Visibility.Visible; CommonControlCreator.CreateContentControl(this.fractionPart.WithPart, this.withPanel, this.Foreground, null); } else { this.withPanel.Visibility = System.Windows.Visibility.Hidden; } CommonControlCreator.CreateContentControl(this.fractionPart.Numerator, this.umeratorPanel, this.Foreground, null); CommonControlCreator.CreateContentControl(this.fractionPart.Denominator, this.denominatorPanel, this.Foreground, null); }