Пример #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);
 }