Hi,
How does one set the width of the grid section the xamGantt control? On initial load, the control always displays with the grid & chart sections having the same width. We'd like to set the initial width of the grid to a different value.
Thanks for any info,
-Lyndon
I finally figured this out. I copied in the MetroDark.xamGantt.xaml file into my Themes directory. I then modified the following code at the very end of the file to adjust the initial position of the ProjectGridSplitter. I changed the default '*' to the numeric value of 1250 to move the starting position 1250 pixels to the right.
<Grid x:Name="RootPanel" igPrim:XamlHelper.SnapsToDevicePixels="{TemplateBinding igPrim:XamlHelper.SnapsToDevicePixels}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1250" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
I am trying to determine how to "re-template" this control. Do you have any suggestions on how to do this?
Can you point me to an example of how to "re-template" this control?
Thanks for the tip, Yanko!
Cheers,
Hi Andrew,
Retemplating's fine as a work-around.
Thanks again!