private void OnColumnSpacingSliderValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { if (_pageInfo.Level0Layout != null) { LayoutHelper.SetMinColumnSpacing(_pageInfo.Level0Layout, colSpacingSlider.Value); } if (_pageInfo.Level1Layout != null) { LayoutHelper.SetMinColumnSpacing(_pageInfo.Level1Layout, colSpacingSlider.Value); } if (_pageInfo.Level2Layout != null) { LayoutHelper.SetMinColumnSpacing(_pageInfo.Level2Layout, colSpacingSlider.Value); } }
private void OnRowSpacingSliderValueChanged(object sender, RangeBaseValueChangedEventArgs e) { if (_pageInfo.Level0Layout != null) { LayoutHelper.SetMinRowSpacing(_pageInfo.Level0Layout, rowSpacingSlider.Value);; } if (_pageInfo.Level1Layout != null) { LayoutHelper.SetMinRowSpacing(_pageInfo.Level1Layout, rowSpacingSlider.Value); } if (_pageInfo.Level2Layout != null) { LayoutHelper.SetMinRowSpacing(_pageInfo.Level2Layout, rowSpacingSlider.Value); } }
private void ItemsStretchComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { var alignment = (itemsStretchComboBox.SelectedItem as ComboBoxItem).Content.ToString(); if (_pageInfo.Level0Layout != null) { LayoutHelper.SetItemsStretch(_pageInfo.Level0Layout, alignment); } if (_pageInfo.Level1Layout != null) { LayoutHelper.SetItemsStretch(_pageInfo.Level1Layout, alignment); } if (_pageInfo.Level2Layout != null) { LayoutHelper.SetItemsStretch(_pageInfo.Level2Layout, alignment); } }
private void SetUniformGridLayoutMinRowSpacingButtonClick(object sender, RoutedEventArgs e) { LayoutHelper.SetMinRowSpacing(UniformGridRepeater.Layout, double.Parse(UniformGridLayoutMinRowSpacing.Text)); }