Beispiel #1
0
        /// <summary>Helper for setting <see cref="VisibleWhenProperty"/> on <paramref name="element"/>.</summary>
        /// <param name="element"><see cref="UIElement"/> to set <see cref="VisibleWhenProperty"/> on.</param>
        /// <param name="value">VisibleWhen property value.</param>
        public static void SetVisibleWhen(this UIElement element, WatermarkVisibleWhen value)
        {
            if (element is null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            element.SetValue(VisibleWhenProperty, value);
        }
Beispiel #2
0
 public static void SetVisibleWhen(this UIElement element, WatermarkVisibleWhen value)
 {
     element.SetValue(VisibleWhenProperty, value);
 }
 public static void SetVisibleWhen(this UIElement element, WatermarkVisibleWhen value)
 {
     element.SetValue(VisibleWhenProperty, value);
 }