focusmanager

WPF - Can't set focus to a child of UserControl

I have a UserControl which contains a TextBox. When my main window loads I want to set the focus to this textbox so I added Focusable="True" GotFocus="UC_GotFocus" to the UserControls definition and FocusManager.FocusedElement="{Binding ElementName=login}" to my main windows definition. In the UC_GotFocus method i simply call .Focus() ...

Different flash Tab-Focus behavior in Firefox and Internet Explorer (Solved)

In a minigame that is part of a larger flash game we show a number of editable textfields, about 10 rows with two textfields per row. Every row of two textfields is encapsulated in a class, and objects of that type are placed under each other so that it looks like some sort of table. Now on Firefox the tab behavior is fine, after manual...

A bug in Flex SDK 3.4?? FocusManager.focusInHandler()

I have recently upgraded from Flex SDK 3.3 to SDK 3.4. Now I suddenly get this error message throughout the application: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::FocusManager/focusInHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\FocusManager.a...

flex 4: IFocusManager.moveFocus() api has been removed, any alternative way

Hi, I am working on migrating our app to compile with Flex 4 framework libraries. One of the things I bumped into yesterday was the IFocusManager.moveFocus() api which was previously there in Flex 3, seems to have been removed from Flex 4. We make use of this api in a bunch of places in our code. So, I was wondering if anyone else ha...

setting the focus in one user control based on an action in another user control

Hello One user control is a list box where each item in the list has a button. When the button is clicked, editable detail about the item is displayed in another user control. The detail knows what to display and how to display it via data binding to a view model. Both user controls are in the same window. The problem I am finding tric...

Controling popup open and close focus

Hi I have a popup which contains multiple elements, a list view, a text box and a button. These are operating fine, and if you use the button to close the popup it works as well, but when i tried to make the popup close when it lost focus, it closed when i clicked an element in the listview. Is there any way around this? Is the FocusMana...

How to create multiple tab loops in AS3 by using fl.managers.FocusManager?

Hi, I want to create a tab-enabled popup window in an AS3 Air project. Currently, when I press tab several times, the focus goes through all the components in my popup window and then starts focusing the buttons and TextFields from the components that are behind the popup. I have tried to solve this problem in two ways, but none of them ...

Using Tab Focus Manager In A Title Window Flex

I'm struggling to get around an error that is constantly thrown in my application when I press the tab key. I have a modal dialog box that contains a form with 3 form items. Whenever I press the tab button flex throws an error saying "ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller." I've tried se...

Unable to set focus of an element

Hello! I have an Expander that its content consists of a StackPanel that contains several elements one of whom is a TextBox. I want, that when the Expander expands that TextBox should gain keyboard focus, how do I do this? I tried: Private Sub xp_Expanded(sender As Object, e As RoutedEventArgs) _ Handles xpUnits.Expanded ...

FocusManager.FocusedElement working sometimes on same window

I'm trying to give focus to a DevExpress GridControl on display of the window, so that when the window displays, the user is just able to press arrow keys to navigate the list. I'm using FocusManager.FocusedElement to focus on the GridControls TableView when the page loads, and sometimes it works, but othertimes, I found the usercontrol ...

WPF FocusManager interferring with focus

Hi All, I have a grid, and in the grid I am setting my first element to be focused: <Grid FocusManager.FocusedElement="{Binding ElementName=companyNameField}"> When the window opens, the correct control is focused. But if I tab through the whole form, when the above focused field, should have the focus, there is no cursor evident an...