public static void SetWrapper(this Windows.UI.Xaml.UIElement element, WindowsXamlHostBase wrapper) { if (IsDesktopWindowsXamlSourcePresent()) { element.SetValue(WrapperProperty, wrapper); } }
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 void SetWrapper(this Windows.UI.Xaml.UIElement element, WindowsXamlHostBaseExt wrapper) { element.SetValue(WrapperProperty, wrapper); }