Example #1
0
 public XmlDataProvider()
 {
     _id = _maxid++;
     _ui = new OnWidgetUI()
     {
         DataContext = this
     };
     _namespaces = "";
 }
Example #2
0
        public XmlDataProvider()
        {
            _id = _maxid++;
            try
            {
                CustomUI = new OnWidgetUI()
                {
                    DataContext = this
                };
            }
            catch (Exception e)
            {
                CustomUI = new TextBox()
                {
                    Text = e.ToString(), AcceptsReturn = true, TextWrapping = TextWrapping.Wrap, Height = 256, FontWeight = FontWeights.Normal, VerticalScrollBarVisibility = ScrollBarVisibility.Auto
                };
            }

            _namespaces = "";
        }