1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.ComponentModel;
6
using System.Windows.Markup;
8
namespace ICSharpCode.WpfDesign.Tests.XamlDom
10
[ContentProperty("StringProp")]
11
public class ExampleClass : ISupportInitialize
13
internal static int nextUniqueIndex;
15
string stringProp, otherProp, otherProp2;
16
int uniqueIndex = nextUniqueIndex++;
20
TestHelperLog.Log("ctor" + Identity);
23
protected string Identity {
25
return GetType().Name + " (" + uniqueIndex + ")";
29
void ISupportInitialize.BeginInit()
31
TestHelperLog.Log("BeginInit " + Identity);
34
void ISupportInitialize.EndInit()
36
TestHelperLog.Log("EndInit " + Identity);
39
public string StringProp {
41
TestHelperLog.Log("StringProp.get " + Identity);
45
TestHelperLog.Log("StringProp.set to " + value + " - " + Identity);
50
public string OtherProp {
52
TestHelperLog.Log("OtherProp.get " + Identity);
56
TestHelperLog.Log("OtherProp.set to " + value + " - " + Identity);
61
public string OtherProp2 {
63
TestHelperLog.Log("OtherProp2.get " + Identity);
67
TestHelperLog.Log("OtherProp2.set to " + value + " - " + Identity);
74
public object ObjectProp {
76
TestHelperLog.Log("ObjectProp.get " + Identity);
80
TestHelperLog.Log("ObjectProp.set to " + value + " - " + Identity);