32 lines
939 B
C#
32 lines
939 B
C#
using System.Collections.Generic;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace FrameworkTest.PropertyGridTest
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for PropertyGridTest.xaml
|
|
/// </summary>
|
|
public partial class PropertyGridTest : Window
|
|
{
|
|
readonly SampleObjectA _sampleObjectA = new SampleObjectA();
|
|
readonly SampleObjectB _sampleObjectB = new SampleObjectB();
|
|
|
|
public PropertyGridTest()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = this;
|
|
|
|
_PropertyGrid0.SelectedObject = _sampleObjectA;
|
|
_PropertyGrid1.SelectedObject = _sampleObjectB;
|
|
_PropertyGrid2.SelectedObjects = new List<object>() {_sampleObjectA, _sampleObjectB};
|
|
_PropertyGrid2.ShowAdvancedOptions = true;
|
|
}
|
|
|
|
private void Grid_Loaded(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
}
|