public static WindowsXamlHostBase GetWrapper(this Windows.UI.Xaml.UIElement element) { if (IsDesktopWindowsXamlSourcePresent()) { return((WindowsXamlHostBase)element.GetValue(WrapperProperty)); } return(null); }
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); }
public static WindowsXamlHostBaseExt GetWrapper(this Windows.UI.Xaml.UIElement element) { return((WindowsXamlHostBaseExt)element.GetValue(WrapperProperty)); }