Xamarin ListView focused event wont fire - xamarin.forms

I'm looking for a way to know if a Xamarin ListView has been focused, its property IsFocused and Focus event seems not working on android.
thank you.

Related

Un/Subscribe to events in Xamarin Content View

I have a TabView inside of my ContentPage and to keep things clean I usually put my tabs in a ContentView
My ContentView in this example has a few Entry controls. I want to subscribe to the TextChanged event for the control so I can display a character counter label on the page.
Now I'm not sure if this is correct or not but I keep these UI functions in the code behind as to my knowledge they have no place in the VM.
The issue is; in the ContentPage there is no way to get a reference to the control when its buried in a ContentView and if I try to move the logic to the ContentView there is no access to the usual OnAppearing & OnDisappearing methods. I'm using MVVMCross and at the moment I'm subscribing to the event in the OnBindingContextChanged method. However, I cant see anything that gets triggered when the page is closed / popped.
I was over thinking this as usual.
What I was wanting to achieve was to simply update a Label when the text in an Entry changed. I keep my UI specific code in the XAML and code behind but I was having issues in un/subscribing to the TextChanged events in the code behind.
I don't know why I don't think of this before; just wire the TextChanged event in the XAML instead of doing it in the code behind and that way the unsubscribe is already taken care of.

Xamarin Forms Unfocused Event Not Firing on User Control

I created a simple Xamarin Forms user control based on a ContentView. Since the ContentView is (ultimately) a VisualElement, I assumed the built-in Unfocused event would work as expected. However, while I can subscribe to my user control's Unfocused event, the event never fires. (Same with the FocusChangeRequested event, as it turns out.) The Xamarin documentation for the Xamarin.Forms.VisualElement.Unfocused event is cryptic:
This event is not bubbled through the Forms stack and is received directly from the native control.
How can I implement an Unfocused event within a Xamarin Forms user control? Is there something within the Xamarin Forms environment that I can intercept when the user control loses focus or, alternatively, when another control receives focus that will allow me to fire an Unfocused event?

FullCalendar dayClick fires on drag on iPad

I have used the fantastic fullcalendar and added some touch and swipe type functionality for the iPad. I have a dialog that appears on dayClick which allows the user to add a new event and a similar dialog for eventClick in order that they can edit an event.
This all works fine but when I drag an event on the iPad/iPhone it also fires the dayClick event at the point that the drag started. So if I drag an event from say 2pm to 4pm then a dayClick event will also fire at 2pm.
This doesn't occur on the browser so I realise this isn't a bug I just wondered if anyone had any ideas on how to prevent this.
Many thanks

Flex DropDownList fires focus out on scroll when used in datagrid item editor

I have a data grid with a custom item editor that displays a DropDownList component. When I click the scroll bar in the component, it is firing a focus out event on the list, which is causing itemEditEnd to fire. I can't figure out why the list is not keeping focus, or how to make it keep focus. I'm using Flex 4.
Thanks for any help!
I couldn't reproduce your problem but the solution probably involves listening to an event on the scrollbar and stopping its propagation. That should prevent the datagrid from getting the event and dispatching its own itemEditEnd event.

Help! dragDrop event not firing for my TextArea control

I'm working on a simple view in my app that allows a user to drag an item from a list control and drop it onto a textarea.
Seems the dragEnter event fires just fine, but the dragDrop event does not.
i forgot to add the textarea as a drop target during my drag enter handler. :P

Resources