public void ConfigureResourceDictionary(ResourceDictionary dictionary, string prefix) { Default.ConfigureResourceDictionary(dictionary, prefix); QueryInvalid.ConfigureResourceDictionary(dictionary, prefix + "QueryInvalid"); Selected.ConfigureResourceDictionary(dictionary, prefix + "Selected"); Hovering.ConfigureResourceDictionary(dictionary, prefix + "Hovering"); Pressed.ConfigureResourceDictionary(dictionary, prefix + "Pressed"); }
/// <summary> /// Invoke the hovering event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The hover event.</param> internal void InvokeHovering(View sender, HoverEvent e) { Hovering?.Invoke(sender, new HoverEventArgs(e)); if (e.State == GestureState.Ended && Command is ICommand cmd && cmd.CanExecute(CommandParameter)) { cmd.Execute(CommandParameter); } }
public ControlColors Clone() { return(new ControlColors { Default = Default.Clone(), Hovering = Hovering.Clone(), Pressed = Pressed.Clone(), }); }
public void ConfigureResourceDictionary(ResourceDictionary dictionary, string prefix) { Default.ConfigureResourceDictionary(dictionary, prefix); Selected.ConfigureResourceDictionary(dictionary, prefix + "Selected"); Hovering.ConfigureResourceDictionary(dictionary, prefix + "Hovering"); Pressed.ConfigureResourceDictionary(dictionary, prefix + "Pressed"); NotFollowbacked.ConfigureResourceDictionary(dictionary, prefix + "NotFollowbacked"); Followbacked.ConfigureResourceDictionary(dictionary, prefix + "Followbacked"); NotFollowed.ConfigureResourceDictionary(dictionary, prefix + "NotFollowed"); Following.ConfigureResourceDictionary(dictionary, prefix + "Following"); Blocking.ConfigureResourceDictionary(dictionary, prefix + "Blocking"); }
void Start() { body = GetComponent <Rigidbody>(); collider = GetComponent <BoxCollider>(); initPos = transform.position; initRot = transform.eulerAngles; currentAngle = transform.eulerAngles; prevPos = initPos; prevRot = initRot; //prevPosX = initPos.x; //prevPosZ = initPos.z; hover = GetComponent <Hovering>(); hover.enabled = true; GoHome = false; }
public void ConfigureResourceDictionary(ResourceDictionary dictionary, string prefix) { Default.ConfigureResourceDictionary(dictionary, prefix); Hovering.ConfigureResourceDictionary(dictionary, prefix + "Hovering"); Pressed.ConfigureResourceDictionary(dictionary, prefix + "Pressed"); }