tab-ordering

WPF Popup tab key bug

本小妞迷上赌 提交于 2020-06-23 03:51:32
问题 I have a WPF Popup control with a ListBox and a Button in it. When I click the Button , it should become disabled. The problem is, that when I disable the Button, the Tab key goes out from the Popup. I tried to set the focus to the ListBox, after I set the Button's IsEnabled to false, but that did not work. So, how can I set the tab focus to the ListBox inside the Popup control ? Here is my code. Window1.xaml: <Window x:Class="WpfApplication5.Window1" xmlns="http://schemas.microsoft.com/winfx

WPF hosting a WinForm, Tab Navigation problems

我的梦境 提交于 2020-01-02 01:04:38
问题 I have run into issues when hosting a WinForms form within a WindowsFormsHost and the tab navigation. To solve I have made this simple example: Created WPF Window (starting point of app) Created WinForms Form with two TextBox on it WPF window: Added WindowsFormsHost to it WPF window: Added OnLoaded handler WPF window: Added Textbox positioned under the WindowsFormsHost In the OnLoaded handler I got: System.Windows.Forms.Form f = new WinFormsForm(); f.TopLevel = false; f.FormBorderStyle =

Setting tab order in wpf when use from UserControls?

我只是一个虾纸丫 提交于 2020-01-01 05:21:07
问题 I have a User Control like this: <UserControl x:Class="MySample.customtextbox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="20" d:DesignWidth="300"> <Grid> <TextBox x:Name="Ytextbox" Background="Yellow"/> </Grid> And I use this control in a window and set

WPF tab order with custom controls?

徘徊边缘 提交于 2019-12-30 10:38:31
问题 I have a WPF page that contains several out of the box controls with the tab order set. I have a custom control (NumericSpinner) that contains: border/grid/text box/2 Repeatbuttons (up/down). Two issues: 1) when I am in the textbox for the custom selector control, I cannot tab out of it to other controls on the page. However after clicking on one of the up/down arrows, I am able to tab over to other controls. 2) I am unable to tab into the textbox of the custom control in order. It is only

Textbox gets back focus upon timepicker close

你离开我真会死。 提交于 2019-12-24 10:38:13
问题 I'm using the timepicker plugin for jquery. Once users selected a date+time and click on the "Done" button, which basically just closes the dialog, I want the textbox where datetime is set to gain back focus (the current behavior of the plugin is to blur out focus). This is because on this page I have a set of textboxes and their tab orders are set sequentially. I need the datetime textbox to gain back focus to continue the tab order. otherwise the tab order will restart from the first text

C# tab order with radio buttons

谁说我不能喝 提交于 2019-12-22 11:42:42
问题 SO i have a windows form application, there is a textbox which tells you what grocery item you want to select. There are 3 radio buttons answers which you can chose from and a button that submits that answer. What i want is to be able to navigate through those radio buttons using tab . I have tried the tab order thing but it doesnt work. Any suggestions? 回答1: Windws Forms lets you only Tab into the group. One way to hack around it is to get all Buttons in seperate Groups by putting group

WinForms TabOrder tool: Broken or just confusing?

感情迁移 提交于 2019-12-19 08:54:05
问题 I have a form with a bunch of panels, and some panels inside groupboxes. When using the TabOrder tool in Vs2005, the controls outside of containers are given integers (0), the controls inside panels are given decimals (72.0), and the controls within panels within groupboxes are given three-part values (73.73.0). Unfortunately the resulting tab order has nothing to do with the order I clicked my controls. Does this tool simply not support nested containers? Am I doing something wrong? Perhaps

Setting TAB Order on MVC View with DropDownListFor()/EditorFor()?

我只是一个虾纸丫 提交于 2019-12-12 06:39:52
问题 Visually speaking, on one of my MVC Views I have about 20 fields in standard vertical order, with the first 8 or so having optional [Create] boxes in same <div> group over on the right. My default tab order currently hits my first dropdown, then goes right to [Create], down to the next, then right, etc. What I would like to do set the TAB order to where it goes straight down my various fields and leave the [Create] boxes as optional for the user (or at the end of the tab order). While there

WPF custom textbox takes two tabs to get to text?

痞子三分冷 提交于 2019-12-11 05:08:20
问题 I have a custom textbox control that displays its name when there is no text inside of it, but for some curious reason I have to hit tab twice to get from the previous element to get into the control's text field. On the first tab it highlight's the TextBox's border. I went through all of the levels of the Generic.xaml file with the properties window open and searching for 'tab' but the only one that I could find was on the TextBox itself which is properly tabstopping. How do I make my

How to exclude a widget from tab-ordering list?

雨燕双飞 提交于 2019-12-10 01:54:36
问题 (This picture is from Qt official site, and I take it as an example.) I'd like to escape some unimportant widgets from being tab-focused. (This strategy is useful if you have a widget that you want to quickly rotate between some commonly used QLineEdit to enter data and escape those rarely used settings.) Take the picture as an example, is it possible to exclude Width and Height from tab-ordering list so I can use Tab to rotate only between Name , Color depth , OK and Cancel ? I've searched