-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontentcontrol.h
More file actions
85 lines (63 loc) · 1.82 KB
/
Copy pathcontentcontrol.h
File metadata and controls
85 lines (63 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* contentcontrol.h:
*
* Copyright 2007-2009 Novell, Inc. (http://www.novell.com)
*
* See the LICENSE file included with the distribution for details.
*
*/
#ifndef __CONTENT_CONTROL_H__
#define __CONTENT_CONTROL_H__
#include <glib.h>
#include "control.h"
namespace Moonlight {
/* @Namespace=None */
class ContentControlChangedEventArgs : public EventArgs {
Value *old_content;
Value *new_content;
protected:
virtual ~ContentControlChangedEventArgs () {}
public:
ContentControlChangedEventArgs (Value *old_content, Value *new_content);
/* @GeneratePInvoke */
Value *GetOldContent ();
/* @GeneratePInvoke */
Value *GetNewContent ();
};
/* @ContentProperty="Content" */
/* @Namespace=System.Windows.Controls */
/* @CallInitialize */
class ContentControl : public Control {
protected:
/* @GeneratePInvoke */
ContentControl ();
virtual ~ContentControl ();
friend class MoonUnmanagedFactory;
friend class MoonManagedFactory;
public:
/* @PropertyType=object,Validator=ContentControlContentValidator */
const static int ContentProperty;
/* @PropertyType=DataTemplate,GenerateAccessors */
const static int ContentTemplateProperty;
virtual UIElement *GetDefaultTemplate ();
virtual void OnPropertyChanged (PropertyChangedEventArgs *args, MoonError *error);
//
// Property Accessors
//
void SetContentTemplate (DataTemplate *t);
DataTemplate *GetContentTemplate ();
/* @GeneratePInvoke */
void SetContentSetsParent (bool value) { content_sets_parent = value; }
/* @GeneratePInvoke */
bool GetContentSetsParent () { return content_sets_parent; }
//
// Events
//
/* @GenerateManagedEvent=false */
const static int ContentControlChangedEvent;
private:
bool content_sets_parent;
};
};
#endif /* __CONTENT_CONTROL_H__ */