diff --git a/src/Plugin.Maui.Calendar/Shared/Controls/ViewLayoutEngines/ViewLayoutBase.cs b/src/Plugin.Maui.Calendar/Shared/Controls/ViewLayoutEngines/ViewLayoutBase.cs index 1ae85f5..4b39730 100644 --- a/src/Plugin.Maui.Calendar/Shared/Controls/ViewLayoutEngines/ViewLayoutBase.cs +++ b/src/Plugin.Maui.Calendar/Shared/Controls/ViewLayoutEngines/ViewLayoutBase.cs @@ -40,6 +40,12 @@ int numberOfWeeks }; rowDefinition.SetBinding(RowDefinition.HeightProperty, daysTitleHeightBindingName); + var columnDefinition = new ColumnDefinition() + { + BindingContext = bindingContext, + }; + columnDefinition.SetBinding(ColumnDefinition.WidthProperty, dayViewSizeBindingName); + var grid = new Grid { ColumnSpacing = 0d, @@ -50,13 +56,20 @@ int numberOfWeeks }, ColumnDefinitions = { - new ColumnDefinition(){ Width = GridLength.Star}, - new ColumnDefinition(){ Width = GridLength.Star}, - new ColumnDefinition(){ Width = GridLength.Star}, - new ColumnDefinition(){ Width = GridLength.Star}, - new ColumnDefinition(){ Width = GridLength.Star}, - new ColumnDefinition(){ Width = GridLength.Star}, - new ColumnDefinition(){ Width = GridLength.Star}, + //new ColumnDefinition(){ Width = GridLength.Star}, + //new ColumnDefinition(){ Width = GridLength.Star}, + //new ColumnDefinition(){ Width = GridLength.Star}, + //new ColumnDefinition(){ Width = GridLength.Star}, + //new ColumnDefinition(){ Width = GridLength.Star}, + //new ColumnDefinition(){ Width = GridLength.Star}, + //new ColumnDefinition(){ Width = GridLength.Star}, + columnDefinition, + columnDefinition, + columnDefinition, + columnDefinition, + columnDefinition, + columnDefinition, + columnDefinition } };