Пример #1
0
        public void ApplicationXamlResources()
        {
            tlog.Debug(tag, $"ApplicationXamlResources START");

            Widget widget      = new Widget();
            var    application = new WidgetApplication(widget.GetIntPtr(), false) as Application;

            tlog.Debug(tag, "application.XamlResources : " + application.XamlResources);

            application.XamlResources = new Tizen.NUI.Binding.ResourceDictionary();
            tlog.Debug(tag, "application.XamlResources : " + application.XamlResources);

            try
            {
                Tizen.NUI.Binding.ResourceDictionary resources = null;
                application.XamlResources = resources;
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            widget.Dispose();
            widget = null;
            tlog.Debug(tag, $"ApplicationXamlResources END (OK)");
        }