示例#1
0
 public static void SetWrapper(this Windows.UI.Xaml.UIElement element, WindowsXamlHostBase wrapper)
 {
     if (IsDesktopWindowsXamlSourcePresent())
     {
         element.SetValue(WrapperProperty, wrapper);
     }
 }
示例#2
0
        public static cave.ui.Widget.MyWidgetInfo getMyWidgetInfo(Windows.UI.Xaml.UIElement widget)
        {
            if (!(widget != null))
            {
                return(null);
            }
            var v = widget.GetValue(WidgetProperty) as cave.ui.Widget.MyWidgetInfo;

            if (!(v != null))
            {
                v = new cave.ui.Widget.MyWidgetInfo();
                widget.SetValue(WidgetProperty, v);
            }
            return(v);
        }
示例#3
0
 public static void SetWrapper(this Windows.UI.Xaml.UIElement element, WindowsXamlHostBaseExt wrapper)
 {
     element.SetValue(WrapperProperty, wrapper);
 }