Hi!
I have following XAML
I use the following code to add panes to this RadPaneGroup:
And I have the following problem:
When i add panes - everything goes ok (regardless of whether there are panes in the RadPane ot not).
When I close the application and save layout and than load layout (I recreate the content of panes manually, but the panes themselves are created at their right spots) - if there are panes after loading laypout in the RadPaneGroup when i try to add new panes - everything is fine
But when all panes are floating or docked somewhere else (not in the RadPaneGroup) when i load layout and try to add new pane (using the same code above - nothing happens - I can see in debug that items collection of RadPaneGroup is incremented, but the new pane is not visible
Please help!
I have following XAML
<
telerik:RadDocking x:Name="Docking" ElementLoaded="Docking_OnElementLoaded" Grid.Row="1" telerik:RadDocking.SerializationTag="RadDocking"
>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer telerik:RadDocking.SerializationTag="SearchResultsContainer">
<telerik:RadPaneGroup>
..........
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
<
telerik:RadSplitContainer
Width
=
"390"
Orientation
=
"Vertical"
x:Name
=
"SearchCriteriaPane"
InitialPosition
=
"DockedLeft"
telerik:RadDocking.SerializationTag
=
"SearchCriteriaGroupContainer"
>
<
telerik:RadPaneGroup
x:Name
=
"SearchCriteriaGroup"
telerik:RadDocking.SerializationTag
=
"SearchCriteriaGroup"
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
I use the following code to add panes to this RadPaneGroup:
var criteriaView =
new
SearchCriteriaView() {DataContext = chriteria, HorizontalAlignment = HorizontalAlignment.Stretch};
var pane =
new
RadPane() {Content = criteriaView, HorizontalContentAlignment = HorizontalAlignment.Stretch, CanUserClose =
false
, Title= tag};
this
.SearchCriteriaGroup.Items.Add(pane);
And I have the following problem:
When i add panes - everything goes ok (regardless of whether there are panes in the RadPane ot not).
When I close the application and save layout and than load layout (I recreate the content of panes manually, but the panes themselves are created at their right spots) - if there are panes after loading laypout in the RadPaneGroup when i try to add new panes - everything is fine
But when all panes are floating or docked somewhere else (not in the RadPaneGroup) when i load layout and try to add new pane (using the same code above - nothing happens - I can see in debug that items collection of RadPaneGroup is incremented, but the new pane is not visible
Please help!