contextmenu

Do any browsers support HTML5's context menu?

馋奶兔 提交于 2019-12-09 02:29:59
问题 Do any browsers support the HTML5 context menu attribute? 回答1: This has been added to Firefox 8. See this for an example of it working https://bug617528.bugzilla.mozilla.org/attachment.cgi?id=554309 回答2: Right now, the contextmenu attribute is not supported by any browser version. According to caniuse.com it doesn't have support for any current browser versions (IE 9, Firefox 4, Safari 5, Chrome 11, Opera 11.1, or any mobile browsers - iOS, Opera, or Android). It is unknown if it will be

WPF ContextMenu still visible after launching an external process

主宰稳场 提交于 2019-12-08 21:23:33
问题 I'm launching an external application from a ContextMenu, and I must block the the source application while the target application is running. To achieve this I'm using Process.WaitForExit() to avoid the source application responding to events. The problem is the context menu is still ahead the target application. Let's see it with a simple example: This is the code I'm using for the example. public MainWindow() { InitializeComponent(); this.ContextMenu = new ContextMenu(); MenuItem menuItem1

WPF ContextMenu using ItemsControl, incorrectly highlight the whole collection

梦想的初衷 提交于 2019-12-08 20:53:39
I need to design one ContextMenu which includes one MenuItem , this MenuItem has a deeper level menu list which binds to a property of type ObservableCollection from my ViewModel. The code looks like this: <ContextMenu DataContext="{Binding PlacementTarget.DataContext, RelativeSource={RelativeSource Self}}" > ... <MenuItem Header="Map to account" > <ItemsControl ItemsSource="{Binding RelatedAccounts}" > <ItemsControl.ItemTemplate> <DataTemplate> <MenuItem Header="{Binding Number}" Command="{Binding PlacementTarget.DataContext.MapToAccountCommand, RelativeSource={RelativeSource AncestorType

Get a item selected in listview when i generate context Menu

佐手、 提交于 2019-12-08 18:32:09
问题 I want get a selected item from a listview. When maintain a longclick a listview item I get the context menu (everything works) but I want to know how to detect what is POSITION which to made ​​the longclick 1º declare the items for a context menu in /res/menu/NAMEOFXMLUWANT.XML like this <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/Abrir" android:title="@string/Abrir" /> <item android:id="@+id/Editar" android:title="@string/Edit" /> <item android

Add context menu item to all text boxes operating system wide

风流意气都作罢 提交于 2019-12-08 17:12:15
问题 I know it is possible to extend the context menu of the standard file however is there a way to add items to the system-wide text box context menu? This would be so the new item appears in every text box that a user can type in anywhere in windows? For example to allow to add such features as look up the selected text against a spell checker. 回答1: This is technically impossible with C#. Lets imagine next situation. Suppose you have sucessfuly write your managed extention and it "extends" any

Edit with IDLE (Python GUI) context menu on Windows 7

倖福魔咒の 提交于 2019-12-08 15:11:58
问题 Under Windows XP I have a context menu entry "edit with IDLE" for Python source files. I tried to make this work under Windows 7 (32 bit) as well by setting the corresponding registry entries under HKEY_LOCAL_MACHINE\SOFTWARE\.py\shellex\ContextMenuHandlers\ However without success - the context menu entry does not appear. How do I set a context menu entry for a specific file type in Windows 7? 回答1: I spent some time trying to figure this out, and finally got it. I'm running Windows 7, but it

No context menu in Windows 7 for TortoiseSVN

南笙酒味 提交于 2019-12-08 15:04:40
问题 I'm using Windows 7 Ultimate 64-bit. I've installed the most recent 64-bit version of TortoiseSVN from the official site, restarted the PC and can't see a SVN context menu even when shift-right clicking. I've uninstalled this version and tried with 32 bit one, but still no luck. They say in the FAQ it happens when you install the 32-bit application on a 64-bit OS, but I've tried both and none works! There's a movie on YouTube showing installation process and many comments with the same

Silverlight Toolkit ContextMenu: Which control was right-clicked?

♀尐吖头ヾ 提交于 2019-12-08 14:15:39
The Silverlight Toolkit has a lovely ContextMenu, which can be shared among multiple instances of controls such as Textbox. Sharing can result from the ContextMenu being declared in a container which also hosts other controls. <StackPanel> <TextBox x:Name="box1" Text="{Binding str1}" /> <TextBox x:Name="box2" Text="{Binding str2}" /> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu Name="cm"> <toolkit:MenuItem Name="cmiCut" Header="Cut" /> <toolkit:MenuItem Name="cmiCopy" Header="Copy" /> <toolkit:Separator/> <toolkit:MenuItem Name="cmiPaste" Header="Paste" /> </toolkit

How do I update a dropdown menu when another dropdown menu option is selected?

放肆的年华 提交于 2019-12-08 14:10:31
问题 Basicly I want DROPDOWNMENU2 options to update when a option option from DROPDOWNMENU1 is selected. Heres some info: DROPDOWNMENU1 : Web Development Graphics Windows DROPDOWNMENU2 (for Web Development) : PHP HTML CSS DROPDOWNMENU2 (for Graphics) : PNG JPEG ICO PSD DROPDOWNMENU2 (for Windows) : Seven Vista XP Please help? EDIT: I'm trying to get this code to work $('#topic2').change(function() { $('#topic3').empty(); switch($(this).val()) { case 'Tutorials': $('#topic3') .append('<option>PHP<

Binding Context menu commands to ViewModel which is not in context Visuals tree

大兔子大兔子 提交于 2019-12-08 13:52:12
问题 I have a treeView whose itemsource is a collection of my Model class. I have added a context menu on the treeView. Since the commands of the contextMenu should be in the visual tree, so I had to place them in my Model class. Which is wrong (Binding directory to the Model). How can I Bind my context menu's Command to my ViewModel rather than Model? Thanks 回答1: You need not to place commands in model. Here you can access your commands in ViewModel like below: Here Tag will contain the Binding