Example #1
0
        /// <summary>
        /// Loads the XAML into a Perspex component.
        /// </summary>
        /// <param name="obj">The object to load the XAML into.</param>
        public static void Load(object obj)
        {
            Contract.Requires<ArgumentNullException>(obj != null);

            var loader = new PerspexXamlLoader();
            loader.Load(obj.GetType(), obj);
        }
Example #2
0
        /// <summary>
        /// Loads the XAML into a Perspex component.
        /// </summary>
        /// <param name="obj">The object to load the XAML into.</param>
        public static void Load(object obj)
        {
            Contract.Requires <ArgumentNullException>(obj != null);

            var loader = new PerspexXamlLoader();

            loader.Load(obj.GetType(), obj);
        }
Example #3
0
 /// <summary>
 /// Loads the XAML into a Perspex component.
 /// </summary>
 /// <param name="obj">The object to load the XAML into.</param>
 public static void Load(object obj)
 {
     var loader = new PerspexXamlLoader();
     loader.Load(obj.GetType(), obj);
 }
Example #4
0
 private void InitializeComponent()
 {
     var loader = new PerspexXamlLoader();
     loader.Load(typeof(XamlTestApp), this);
 }
Example #5
0
        /// <summary>
        /// Loads the XAML into a Perspex component.
        /// </summary>
        /// <param name="obj">The object to load the XAML into.</param>
        public static void Load(object obj)
        {
            var loader = new PerspexXamlLoader();

            loader.Load(obj.GetType(), obj);
        }