Skip to content

Commit

Permalink
fix: Reverted RowDefinition and ColumnDefinition changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Apr 11, 2022
1 parent d706e8a commit 81a64bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
17 changes: 0 additions & 17 deletions src/Uno.UI/UI/Xaml/Controls/Grid/ColumnDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
using System.Text;
using Uno.UI.DataBinding;
using Uno.UI.Xaml;
using Windows.UI.Xaml.Markup;

namespace Windows.UI.Xaml.Controls
{
[DebuggerDisplay("{DebugDisplay,nq}")]
[ContentProperty(Name = "Content")]
public partial class ColumnDefinition : DefinitionBase, DependencyObject
{
public ColumnDefinition()
Expand All @@ -25,21 +23,6 @@ internal void OnPropertyChanged2(DependencyPropertyChangedEventArgs args)
InvalidateDefinition();
}

// New WinUI assigned ContentProperty syntax
public virtual object Content
{
set
{
if (value is not string stringValue ||
string.IsNullOrWhiteSpace(stringValue))
{
return;
}

Width = GridLength.ParseGridLength(stringValue.Trim()).FirstOrDefault();
}
}

#region Width DependencyProperty

private static GridLength GetWidthDefaultValue() => GridLengthHelper.OneStar;
Expand Down
17 changes: 0 additions & 17 deletions src/Uno.UI/UI/Xaml/Controls/Grid/RowDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
using System.Linq;
using System.Text;
using Uno.UI.Xaml;
using Windows.UI.Xaml.Markup;

namespace Windows.UI.Xaml.Controls
{
[DebuggerDisplay("{DebugDisplay,nq}")]
[ContentProperty(Name = "Content")]
public partial class RowDefinition : DefinitionBase, DependencyObject
{
public RowDefinition()
Expand All @@ -24,21 +22,6 @@ internal void OnPropertyChanged2(DependencyPropertyChangedEventArgs args)
InvalidateDefinition();
}

// New WinUI assigned ContentProperty syntax
public virtual object Content
{
set
{
if (value is not string stringValue ||
string.IsNullOrWhiteSpace(stringValue))
{
return;
}

Height = GridLength.ParseGridLength(stringValue.Trim()).FirstOrDefault();
}
}

#region Height DependencyProperty

private static GridLength GetHeightDefaultValue() => GridLengthHelper.OneStar;
Expand Down

0 comments on commit 81a64bd

Please sign in to comment.