I'm trying to use databinding to add RadPanes at runtime. However, when I do the following, all that's displayed is a white blank area for the pane, with no headers or controls. However, the bottom edge of the white area can be resized (even though no splitter border is visible).
In the sample code below, I'm not even attempting to substitute content with databinding, I'm just trying to get a static item to show up. What am I missing?
Thanks for any help!
Here is the xaml:
And here is the code behind:
In the sample code below, I'm not even attempting to substitute content with databinding, I'm just trying to get a static item to show up. What am I missing?
Thanks for any help!
Here is the xaml:
<Grid x:Name="LayoutRoot"> |
<dock:RadDocking> |
<dock:RadSplitContainer x:Name="SummaryContainer" Orientation="Horizontal" InitialPosition="DockedTop" Height="300" VerticalContentAlignment="Top" > |
<dock:RadPaneGroup x:Name="SummaryGroup"> |
<dock:RadPaneGroup.ItemTemplate> |
<DataTemplate> |
<dock:RadPane Header="Summary 1" Title="Summary 1"> |
<TextBlock Text="Summary 1 data goes here" /> |
</dock:RadPane> |
</DataTemplate> |
</dock:RadPaneGroup.ItemTemplate> |
</dock:RadPaneGroup> |
</dock:RadSplitContainer> |
</dock:RadDocking> |
</Grid> |
And here is the code behind:
public DockingBugTest() |
{ |
InitializeComponent(); |
ObservableCollection<DockTestData> dockTestData = new ObservableCollection<DockTestData>(); |
dockTestData.Add(new DockTestData() { MyTitle = "My Summary 1" }); |
SummaryGroup.DataContext = dockTestData; |
SummaryGroup.ItemsSource = dockTestData; |
} |
public class DockTestData |
{ |
public string MyTitle { get; set; } |
} |