Beispiel #1
0
 /// <summary>
 /// Get the all children matching the specified selector
 /// </summary>
 /// <param name="selector">The selector to match</param>
 /// <returns>A list of automation helpers wrapping the children matching the specified selector</returns>
 public new List <T> ChildrenWhere(AutomationSelector selector)
 {
     return(base.ChildrenWhere(selector).Select(v => (T)v).ToList());
 }
Beispiel #2
0
 /// <summary>
 /// Wait for a child to be found for a specified period of time
 /// </summary>
 /// <param name="selector">The selector to match</param>
 /// <param name="timeout">The amount of time to wait before throwing an exception</param>
 /// <returns>An automation helper wrapping the first child matching the specified selector</returns>
 public new T WaitForChildWhere(AutomationSelector selector, int timeout)
 {
     return((T)base.WaitForChildWhere(selector, timeout));
 }
Beispiel #3
0
 /// <summary>
 /// Get the first child matching the specified selector
 /// </summary>
 /// <param name="selector">The selector to match</param>
 /// <returns>An automation helper wrapping the first child matching the specified selector</returns>
 public new T FirstChildWhere(AutomationSelector selector)
 {
     return((T)base.FirstChildWhere(selector));
 }
 /// <summary>
 /// Join a selector to the current instance
 /// </summary>
 /// <param name="selector">The selector to join to the current instance</param>
 /// <returns>The specified selector's values and properties combined with the current instances values and properties</returns>
 public AutomationSelector And(AutomationSelector selector)
 {
     return(new AutomationSelector(this, selector));
 }
 /// <summary>
 /// Create a new selector by combining two existing selectors
 /// </summary>
 /// <param name="s1">The first selector to combine</param>
 /// <param name="s2">The second selector to combine</param>
 public AutomationSelector(AutomationSelector s1, AutomationSelector s2)
 {
     this.Properties = s1.Properties.Concat(s2.Properties).ToArray();
     this.Values     = s1.Values.Concat(s2.Values).ToArray();
 }
Beispiel #6
0
 /// <summary>
 /// Create a new selector by combining two existing selectors
 /// </summary>
 /// <param name="s1">The first selector to combine</param>
 /// <param name="s2">The second selector to combine</param>
 public AutomationSelector(AutomationSelector s1, AutomationSelector s2)
 {
     this.Properties = s1.Properties.Concat(s2.Properties).ToArray();
     this.Values = s1.Values.Concat(s2.Values).ToArray();
 }
Beispiel #7
0
 /// <summary>
 /// Join a selector to the current instance
 /// </summary>
 /// <param name="selector">The selector to join to the current instance</param>
 /// <returns>The specified selector's values and properties combined with the current instances values and properties</returns>
 public AutomationSelector And(AutomationSelector selector)
 {
     return new AutomationSelector(this, selector);
 }