protected GuiProvider GetGuiProvider(IServiceProvider serviceProvider)
        {               //****************************************
            FrameworkElement MyElement;

            //****************************************

            MyElement = GetParentElement(serviceProvider);

            if (MyElement == null)
            {
                return(null);
            }

            //****************************************

            return(((WpfToolkit)GuiService.Toolkit).FindProvider(MyElement.GetType()));
        }
Ejemplo n.º 2
0
        public void TestCollectionMyelement()
        {
            // Object type of all data

            List <MyElement> list_of_string = new List <MyElement>();

            MyElement elm_1 = new MyElement();
            MyElement elm_2 = new MyElement();
            MyElement elm_3 = new MyElement();

            list_of_string.Add(elm_1);
            list_of_string.Add(elm_2);
            list_of_string.Add(elm_3);



            // object.GetType() return type of element

            CollectionAssert.AllItemsAreInstancesOfType(list_of_string, elm_1.GetType());
        }
Ejemplo n.º 3
0
        public void TestCollectionClassMyelemetExist()
        {
            // Object type of all data

            List <MyElement> list_of_myelements = new List <MyElement>();

            MyElement elm_1 = new MyElement();
            MyElement elm_2 = new MyElement();
            MyElement elm_3 = new MyElement();


            list_of_myelements.Add(elm_1);
            list_of_myelements.Add(elm_3);

            string x = "some text";

            x.GetType();

            // object.GetType() return type of element
            CollectionAssert.AllItemsAreInstancesOfType(list_of_myelements, elm_1.GetType());
        }