Пример #1
0
 /// <summary>
 /// Creates a local-data object for a focusable element node.
 /// </summary>
 internal ElementNodeLocalData(
     string elementName, FocusabilityCondition focusabilityCondition, Func <bool, ElementNodeFocusDependentData> focusDependentDataGetter)
 {
     ElementName              = elementName;
     FocusabilityCondition    = focusabilityCondition;
     FocusDependentDataGetter = focusDependentDataGetter;
 }
 /// <summary>
 /// Creates a local-data object for a focusable element.
 /// </summary>
 public ElementLocalData(string elementName, FocusabilityCondition focusabilityCondition, Func <bool, ElementFocusDependentData> focusDependentDataGetter)
 {
     NodeDataGetter = classSet => new ElementNodeLocalData(
         elementName,
         focusabilityCondition,
         isFocused => focusDependentDataGetter(isFocused).NodeDataGetter(classSet));
 }
 /// <summary>
 /// Creates a local-data object for a focusable displayable element.
 /// </summary>
 public DisplayableElementLocalData(
     string elementName, FocusabilityCondition focusabilityCondition, Func <bool, DisplayableElementFocusDependentData> focusDependentDataGetter)
 {
     BaseDataGetter = displaySetup => new ElementLocalData(
         elementName,
         focusabilityCondition,
         isFocused => focusDependentDataGetter(isFocused).BaseDataGetter(displaySetup));
 }
Пример #4
0
 /// <summary>
 /// Creates a local-data object for a nonfocusable element node.
 /// </summary>
 public ElementNodeLocalData(string elementName, ElementNodeFocusDependentData focusDependentData)
 {
     ElementName              = elementName;
     FocusabilityCondition    = new FocusabilityCondition(false);
     FocusDependentDataGetter = isFocused => focusDependentData;
 }