Пример #1
0
 /// <summary>
 /// Sets the DependencyProperty value of the DependencyObject.
 /// </summary>
 /// <returns>The new value of the dependency property</returns>
 public static string SetDependencyPropertyValue(this QueryEx query, string dependencyPropertyName, string value)
 => App.Query(q => query.Unwrap(q).SetDependencyPropertyValue(dependencyPropertyName, value).Value <string>()).FirstOrDefault();
Пример #2
0
 /// <summary>
 /// Gets the DependencyProperty value of the DependencyObject return by the query.
 /// </summary>
 public static object GetDependencyPropertyValue(this QueryEx query, string dependencyPropertyName)
 => App.Query(q => query.Unwrap(q).InvokeGeneric("browser:Uno.UI.WindowManager.current|GetDependencyPropertyValue", dependencyPropertyName)).FirstOrDefault();