How to create floating PivotSchemaDesigner
PivotSchema Designer is a separate control that can be loaded at anywhere with the Pivot Grid Control within the browser layout. We have created a simple samples to illustrate about, PivotSchemaDesigner loaded with the PivotGridControl in the left side of the Layout.
XAML
<Grid x:Name="schemaDesignerContainer" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Top" > <pivotSchemaDesigner:PivotSchemaDesigner Name="pivotSchemaDesigner"/> </Grid> |
C#
pivotSchemaDesigner.PivotControl = this.pivotGrid1; |
Figure: pivot Grid with Schema designer on left
Pivot Schema Designer also can be loaded at another window and it can be docked at anywhere in the browser layout. We have used Syncfusion windows control to load the Pivot Schema Designer.
XAML
<StackPanel Margin="5"> <TextBlock FontWeight="Bold"> Load Schema Designer</TextBlock> <Button Name="ShowSchema" Height="25" Width="200" Content="Load Schema Designer" HorizontalAlignment="Left" Click="ShowSchema_Click" /> </StackPanel> |
C#
private void ShowSchema_Click(object sender, RoutedEventArgs e) { SilverlightControl1 SchemaDesigner = new SilverlightControl1(); SchemaDesigner.pivotSchemaDesigner.PivotControl = this.pivotGrid1; SchemaDesigner.Show(); } |
Figure: Pivot Grid with Floating Schema Designer