Ejemplo n.º 1
0
 /// <summary>
 /// Creates a View that manages a tree of UI elements.
 /// </summary>
 /// <param name="content">Root of the UI tree.</param>
 /// <returns>A new View for the specified content.</returns>
 public static View CreateView(FrameworkElement content)
 {
     return(new View(content));
 }
Ejemplo n.º 2
0
 internal View(FrameworkElement content) : this(RegisterContent(content))
 {
 }
Ejemplo n.º 3
0
 private static HandleRef RegisterContent(FrameworkElement content)
 {
     sContentPtr = BaseComponent.getCPtr(content);
     return(sContentPtr);
 }
Ejemplo n.º 4
0
 internal static HandleRef getCPtr(FrameworkElement obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }