diff --git a/AFrame.Core/Context.cs b/AFrame.Core/Context.cs index f66b79c..6d2488b 100644 --- a/AFrame.Core/Context.cs +++ b/AFrame.Core/Context.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -19,5 +19,10 @@ public Control As() { return As(); } + + public Control As(Type type) + { + return (Control)Control.CreateInstance(type, this, null); + } } -} \ No newline at end of file +}