Hi,
I tried buliding a small app to reproduce the issue in v2.3, but with no success.
Here's the XAML I used :
I tried buliding a small app to reproduce the issue in v2.3, but with no success.
Here's the XAML I used :
<xcad:DockingManager x:Name="AvalonDockingManager"
DocumentsSource="{Binding Workspaces, Mode=TwoWay}">
<xcad:DockingManager.Theme>
<xcad:VS2010Theme />
</xcad:DockingManager.Theme>
<xcad:DockingManager.LayoutItemContainerStyle>
<Style TargetType="{x:Type xcad:LayoutItem}">
<Setter Property="Title"
Value="{Binding Model.Tag}" />
</Style>
</xcad:DockingManager.LayoutItemContainerStyle>
</xcad:DockingManager>
Here's the CodeBehind I used :public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
AvalonDockingManager.DataContext = this;
this.Workspaces = new ObservableCollection<object>()
{
new Button() { Content = "My Button", Tag = "The Button"},
new TextBox() { Text = "My TextBox", Tag = "The TextBox"},
new DataGridControl() { Tag = "The DataGrid", ItemsSource = new List<MyData>(){ new MyData() { Age = 12, FirstName = "Tom", LastName = "AAA"},
new MyData() { Age = 45, FirstName = "Kevin", LastName = "BBB"},
new MyData() { Age = 58, FirstName = "Julie", LastName = "CCC"},
new MyData() { Age = 66, FirstName = "Vicki", LastName = "DDD"},
new MyData() { Age = 25, FirstName = "Simon", LastName = "EEE"},
}
}
};
}
public ObservableCollection<object> Workspaces
{
get;
set;
}
}
public class MyData
{
public string FirstName
{
get;
set;
}
public string LastName
{
get;
set;
}
public int Age
{
get;
set;
}
}
In addition, I don't have the warnings for unfound resourceKeys. I have search the 4 you mentionned in the solution, but they can't be found in the Toolkit v2.3. Are they associated to your app ?