contextmenu

Add action on the Browser's context menu after an image long press?

断了今生、忘了曾经 提交于 2019-12-12 02:28:23
问题 Hope you can help me with the following: I need to add an action in the Context Menu that pops up after a Long Press of an image in the Browser (the one that has 'Save Image', 'Copy Image', 'View Image', 'Set as a wallpaper', etc. ) As a result of choosing my action it should call my service and etc.... I don't want my app to overwrite all the context menu of the browser but only add an action to it. I haven't found any information on how to do this. Is it possible? Thanks! 回答1: In short, you

PopMenus with icons

≯℡__Kan透↙ 提交于 2019-12-12 02:12:11
问题 I want to achieve exactly like PopupMenu with icons On layout click which is in Custom Toolbar . So , i have taken the help of an answer but issue i am facing is : Nothing is poping out on click . POPLayout.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/poplayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > <LinearLayout android:layout_width=

Can't find DataContext in ContextMenuOpening

主宰稳场 提交于 2019-12-12 01:37:45
问题 I am trying to add a context menu for my data grid that will display a certain menu item header depending on the selected row. For example if the row is not marked for deletion there will be a menu item "Mark for deletion". Otherwise it will say "Unmark for deletion". I don't think I am setting the DataContext for the ContextMenu correctly, so I am unable to get information from the selected row. <DataGrid Grid.Row="0" Name="OrdersGrid" ItemsSource="{Binding Path=Orders}"

Adding RadioButtons to ContextMenu

瘦欲@ 提交于 2019-12-12 01:35:11
问题 I would like to add radio buttons to my context menu, but I'm not sure how. This is how it is created: @Override public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); menu.setHeaderTitle("Selection Options"); menu.add(0, v.getId(), 0, "Remove"); } 回答1: from your code: menu.add(0, v.getId(), 0, "Remove"); v is a View that can be a RadioButton or any other type of Views. if you are not using xml to define RadioButton.

JQuery on('contextmenu') for body, but special one class

耗尽温柔 提交于 2019-12-12 00:23:46
问题 I have a big div (whole page) and inside of it I have smaller one: <div class="all"> <div class="tiny"></div> </div> div.all is like a board for me, div.tiny is a little rectangle on it. I want to show my special context menu any time anything (or nothing) in div.all will get RMB. But when I RMB on div.tiny , I don't want to execute that "default" procedure, but some (even more special) code. I have tried with: jQuery('body').on("contextmenu", ".all", function(){ /* special stuff */}); jQuery

IE Context Menu Item In Javascript

折月煮酒 提交于 2019-12-11 23:37:15
问题 I am trying to create an IE Context Menu Item that points to a Javascript html file as described here https://msdn.microsoft.com/en-us/library/bb735853(v=vs.85).aspx#IEAddOnsMenus_topic1 under the "Adding to a context menu" section. I have the Context menu entry listed in HKCU\Software\Microsoft\Internet Explorer\MenuExt and it points to an html file with javascript in it. Here is the Javascript code I am using. <script language="JavaScript"> function pausescript(ms) { ms += new Date()

inherit the proper app.config in a program started from context menu by SharpShell

回眸只為那壹抹淺笑 提交于 2019-12-11 20:36:04
问题 i'm trying to develop an c# app integrated with the windows shell, because of this i'm using the sharpshell library. i'm using the sharpshell library directly in the same project, creating a dedicated class for handle the context menu. originally i linked to the click event on the context menu the following command: System.Diagnostics.Process.Start(path, _command.ToString() + "|" + string.Join("|", SelectedItemPaths)); and the system was working. now i'm trying to start directly from the

How to Add ContextMenu to Button

限于喜欢 提交于 2019-12-11 19:43:04
问题 I have a StackPanel of a few buttons, which are themed to look like tiles. Each will have the ability to be pinned to the Start screen. I would like to add a ContextMenu to each to enable this functionality. How might I do this? Also, how do I determine the tapped item? MainPage.xaml <StackPanel HorizontalAlignment="Left" Orientation="Horizontal"> <Button x:Name="Tile1" Height="173" Width="173" Margin="12,0,0,0" Click="1_Click" Style="{StaticResource ButtonStyle1}" toolkit:TiltEffect

Why can I add context menus for some extensions but no others using Reg and Java

泪湿孤枕 提交于 2019-12-11 19:27:23
问题 I'm trying to modify Windows registry so that the context menu for certain audio file extensions so that is an option to start my application on the said files. The application is written Java but wrapped in an exe wrapper using Winrun4j. Ive been using this example How do I make context menus for my software? to try and do this. The frustrating thing is the demo adds a context menu for .txt files and that works, and if I hack the code and add it to my application for .txt file it also works.

Selected TreeViewItem is null

落花浮王杯 提交于 2019-12-11 19:22:20
问题 I wanted to create a ContextMenu for my TreeView. TreeView XAML: <helper:ExtendedTreeView Grid.Row="5" ItemsSource="{Binding OCFrage, Mode=TwoWay}" SelectedItem_="{Binding SelectedItem, Mode=TwoWay}" SelectedItemChanged="treeView1_SelectedItemChanged" x:Name="treeView1" Height="205" Width="215"> <helper:ExtendedTreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type model:T_Frage}" ItemsSource="{Binding Wertung, Mode=TwoWay}"> <TextBlock Text="{Binding Text}"/> <