Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
Customize XamPivotGrid Layout - RowsFieldDropAreaControl initial size
posted

I want to increase the width of the initial RowsFieldDropAreaControl. Its pretty much still there in the PivotGridPanel as part of the original template.  I added a ComboBox before the ColumnsFieldDropAreaControl and made that area bigger , and I want the RowsFieldDropAreaControl which is part of the PivotGridPanel to match that size. If I change the size of RowsFieldDropAreaControl say to width=300px or maxWidth=300 it doesn't work, it seems to be resetting this somehow.


Can you please provide a sample of the above. I have tried several different way to change this and it hasn't worked yet. Thanks for your help in advance.

Attached is snippet of where RowsFieldDropAreaControl is.

<pss:PivotGridPanel x:Name="MainLayout" SharedSizeColumn="{Binding ElementName=LeftColumn}">
<!--<StackPanel Orientation="Horizontal">-->
<pss:PivotDataRowsPanel x:Name="DataRowsPanel" ZIndex="-2">
<ig:DragDropManager.DropTarget>
<ig:DropTarget DropTargetMarkerBrush="#FF6E7E8D" DropChannels="Measures" />
</ig:DragDropManager.DropTarget>
</pss:PivotDataRowsPanel>
<pss:PivotRowsPanel x:Name="RowsHeaderPanel" ZIndex="-1" VerticalAlignment="Top">
<ig:DragDropManager.DropTarget>
<ig:DropTarget DropTargetMarkerBrush="#FF6E7E8D" DropChannels="Rows" />
</ig:DragDropManager.DropTarget>
</pss:PivotRowsPanel>
<pss:PivotColumnsPanel VerticalAlignment="Bottom" x:Name="ColumnsHeaderPanel" ZIndex="-1">
<ig:DragDropManager.DropTarget>
<ig:DropTarget DropTargetMarkerBrush="#FF6E7E8D" DropChannels="Columns2222" />
</ig:DragDropManager.DropTarget>
</pss:PivotColumnsPanel>
<pss:PivotRowDataAreaPanel x:Name="PivotRowsDataArea" ZIndex="-1" />
<Grid pss:PivotGridPanel.IsTopLeftCornerControl="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<ssp:RowsFieldDropAreaControl Panel.ZIndex="100" MinWidth="350px" Width="350px" x:Name="RowsDropArea" Grid.Column="1" AllowResizing="Right" ItemTemplate="{StaticResource FieldItemTemplateKey}" ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataSource.Rows, Mode=TwoWay}" IsEnabled="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataSource.Rows.IsEditable}" />
</Grid>
<!--</StackPanel>-->
<pss:HiddenAxisChooser x:Name="ColumnChooser" ItemTemplate="{StaticResource AxisChooserTemplateKey}" />
<pss:HiddenAxisChooser x:Name="RowChooser" ItemTemplate="{StaticResource AxisChooserTemplateKey}" />

</pss:PivotGridPanel>