popup

Custom design of a popup in wpf using c# (telerik )

一世执手 提交于 2019-12-06 03:56:45
I am showing an pop up in a button click event> I have kept a custom user control inside that popup and so whenever the pop is being shown taht custom usercontrol will be displayed.But now i need to modify the custom control . Current custom control inside popup looks like below but i need the corner to be look like the below image.. How to do it.? I need that sharp corner in my control and i need that sharp corner point whenever the popup been shown bolow the code of the button and its popup <telerik:RadButton Name="btnH" Grid.Column="1" HorizontalAlignment="Left" Margin="444,56,0,0" Grid.Row

Is it possible to get the Hwnd of a WPF Popup control?

99封情书 提交于 2019-12-06 03:30:40
问题 I need to apply an Aero background blur to only part of a custom-shaped WPF window. The problem is that to apply the blur with DWM, I need to provide a window handle to the DwmEnableBlurBehindWindow function. I have been told that the WPF popup control is actually a separate window. That is good. Can I get a popup's handle to apply blur to it? If so, how? 回答1: Try this HwndSource source = (HwndSource)HwndSource.FromVisual(myPopup) or this but this one only works for actual Windows, but might

show pop up when is mouse over image control

旧街凉风 提交于 2019-12-06 03:17:15
问题 I would like show pop up when is mouse over the image control. So I create control template, it look like this: <ControlTemplate x:Key="AvatarImageTemplate" TargetType="{x:Type Image}"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <HERE I WANT IMAGE SOURCE Grid.Row="0"/> <Popup IsOpen="False" Name="OponentImagePopUp" AllowsTransparency

Android - Can not use popup in Fragment

此生再无相见时 提交于 2019-12-06 02:12:26
问题 I am new to android. Now I am trying to create a slider bar. Now I have created a slider bar. Now I want to show popup when I click the icon in Action bar. When I extents activity the popup is working fine. But when I change into extents Fragment I can not use the popup. Please let me know any idea or any example for popup in Fragment page. public void popup_window() { View menuItemView = findViewById(R.id.menu_popup); PopupMenu popupMenu = new PopupMenu(this, menuItemView); popupMenu

Popup detection before user logs in

痴心易碎 提交于 2019-12-06 00:17:03
问题 Is there a good way to determine if a person has a popup blocker enabled? I need to maintain a web application that unfortunately has tons of popups throughout it and I need to check if the user has popup blockers enabled. The only way I've found to do this is to open a window from javascript, check to see if it's open to determine if a blocker is enabled and then close it right away. This is slightly annoying since users who do not have it enabled see a small flash on the screen as the

How to display HTML Content using window.showModalDialog()

蓝咒 提交于 2019-12-06 00:07:33
Will I be able to display a HTML content (not a file) in a pop up window using JS? I am trying to open a pop up window and display an user defined HTML inside this. I am trying the below, but it doesn't work. window.showModalDialog("<p>Pop up window text</p>","resizable: yes"); Can some one suggest me how to do this? Thanks in advance. Contrary to window.open() , the first (URL) argument of showModalDialog() is required. Thus, you can't pass it an HTML string. You can either use window.open : var newWindow = window.open("", "newWindow", "resizable=yes"); newWindow.document.write('<p>Pop up

How do I make this popup box disappear when I click outside?

梦想与她 提交于 2019-12-05 21:21:27
http://jsfiddle.net/mnbayazit/by3zy/2/ I want the popup to disappear when I click somewhere on the background. Problem is, it disappears when I click an [X] or the popup itself. Imagine it being a calendar-picker if that makes my intentions more clear. How can I get it to do that? Set a click handler for the body to remove your popup. Set a click handler for the popup itself that calls stopPropagation() on the event, to prevent it from bubbling up to the body. Roughly: function showMyPopup(){ ... $(myPopupDiv).click(function(e){ e.stopPropagation(); }); } function closeMyPopup(){ ... } $

Allow mouse events to pass through semitransparent Popup

家住魔仙堡 提交于 2019-12-05 20:07:08
I'm trying to do a drag-n-drop operation from a control inside a Popup . The content being dragged will be placed at the position of the drop so when the drag starts I want to make the Popup semitransparent to allow placement under it. But so far I fail to make mouse events pass through my semitransparent Popup . The following xaml works fine, the Button is still clickable when hovering the Rectangle with the mouse <Grid> <Rectangle Panel.ZIndex="2" Width="200" Height="200" Fill="Green" IsHitTestVisible="False" Opacity="0.5"/> <Button Content="Click Me" FontSize="22" FontWeight="Bold"/> </Grid

changing text size of popup menu item

白昼怎懂夜的黑 提交于 2019-12-05 20:05:59
I want to change the text size of popup menu item. I have written this code to create a popup menu. But my problem is I couldnot access the textView of popupmenu ie"EXIT" so that i could use exitItem.setTextSize(40); //my code popupmenu = new PopupMenu(MainActivity.this, findViewById(R.id.actionbar_item)); popupmenu.getMenu().add(Menu.NONE, 0, Menu.NONE, "Exit"); popupmenu.setOnMenuItemClickListener(this); I have not created any seperate xml file to inflate these items. I want to do it programatically as these popupitems are dynamically generated. Thanks in advance. Dmide Unfortunately, it's

webview don't display javascript windows.open()

和自甴很熟 提交于 2019-12-05 18:47:17
I have a WebView in which i display web content which i have no control over. The content displays fine, but have links which spawn a popup window. The javascript function that does that looks like this: function getEntry(id) { var win = window.open('', 'Booking', 'resizable=yes,scrollbars=yes,status=no,width=500,height=400'); win.document.location = '/some/url/1-' + id ; } I can't easily change this, and if the people responsible for the page i download would change it, i guess my app would fail miserably... My WebView setup in the activity looks like this: _webview = new WebView(this);