コード例 #1
0
        public static WindowsXamlHostBase GetWrapper(this Windows.UI.Xaml.UIElement element)
        {
            if (IsDesktopWindowsXamlSourcePresent())
            {
                return((WindowsXamlHostBase)element.GetValue(WrapperProperty));
            }

            return(null);
        }
コード例 #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 WindowsXamlHostBaseExt GetWrapper(this Windows.UI.Xaml.UIElement element)
 {
     return((WindowsXamlHostBaseExt)element.GetValue(WrapperProperty));
 }