z-order

Absolute z-order (across several DataTemplates)

允我心安 提交于 2019-12-18 09:49:33
问题 Ive a ListBox with a Canvas ItemsPanel that displays 2 different types of objects: NodeVMs and LinkLineVMs (using a CompositeCollection). Each VM object has a DataTemplate: NodeVMs DataTemplate has a TextBlock (A) LinkLineVMs DataTemplate has a Line (B) and a TextBlock (C) How get the following absolute z-order: A (top), C, B (bottom). <ListBox> <ListBox.Resources> <DataTemplate DataType="{x:Type p:NodeVM}"> <StackPanel> <TextBlock ... /> ... </StackPanel> </DataTemplate> <DataTemplate

How to bring view on front of everything?

点点圈 提交于 2019-12-17 10:33:18
问题 I have activity and a lot of widgets on it, some of them have animations and because of the animations some of the widgets are moving (translating) one over another. For example the text view is moving over some buttons . . . Now the thing is I want the buttons to be always on the front. And when the textview is moving I want to move behind the buttons. I can not achieve this I tried everything I know, and "bringToFront()" definitelly doesn't work. note I do not want to control the z-order by

What is the best way to determine if a window is actually visible in WPF

这一生的挚爱 提交于 2019-12-14 03:43:28
问题 I'm trying to toggle the display of a small window based on the click of a notify icon in a system tray app. This is simple enough to implement, however when the small window is displayed and another application takes focus and therefore moves in front of it (z-order) I want the toggle to assume that the small window is now hidden, even though it's visibility is still set to visible. Otherwise, clicking the icon would set the windows visiblity to hidden even though it is already hidden behind

Why is my form going to background on DragDrop?

拥有回忆 提交于 2019-12-14 03:19:30
问题 At the end of a drag&drop operation, I'm showing a form using ShowDialog . Problem: When the form is closed, my main form is pushed behind any other application windows. Code: private void ctrl_DragDrop(object sender, DragEventArgs e) { // ... if (e.Effect == DragDropEffects.Move) { string name = e.Data.GetData(DataFormats.Text).ToString(); viewHelperForm.ShowDialog(view.TopLevelControl); // ... } Question: What can I do that the main form stays on top? 回答1: Your ShowDialog() call is blocking

Overlap navigation bar on ios 6 with other view

谁说胖子不能爱 提交于 2019-12-11 06:24:18
问题 For an iphone project with an "unique" design (with which i am not happy at all) I need to draw a custom view which partially overlaps the navigation bar of a controller in a UINavigationController. Target is iphone/ios 6 with a fixed device orientation (portrait). My currents solution is to disable the navigation bar programatically via self.navigationController.navigationBar.hidden = YES; in viewDidLoad of my controller and to draw a "fake" navigation bar and paint over this. This leads to

Android bringToFront() View API <= 16

你离开我真会死。 提交于 2019-12-11 01:11:33
问题 When I was testing my app, I realized that if I use a device with API <= 16 the method bringToFront() does not work! How can I do this for APIs less than 16? When I touch a view, I need to bring it to the front! With API 17 or greater, bringToFront() works. Thanks 回答1: Just by using the documentation you can read there (http://developer.android.com/reference/android/view/View.html) that: Change the view's z order in the tree, so it's on top of other sibling views. This ordering change may

New WPF window only shows underneath originating window

不羁岁月 提交于 2019-12-10 14:08:42
问题 In my WPF application, I have a ListView on the main form that displays bound data from a DataSet. When a user double-clicks a row in the ListView, it opens a detail window. In my XAML, I used a style to create a double click handler on the listview: <Style x:Key="ListViewDoubleClick" TargetType="{x:Type ListViewItem}"> <EventSetter Event="MouseDoubleClick" Handler="HandleDoubleClick" /> </Style> ... <ListView Name="searchResults" ItemContainerStyle="{StaticResource ListViewDoubleClick}> In

Shared Element Transition (Foreground/Background) Issue

左心房为你撑大大i 提交于 2019-12-10 02:48:43
问题 I would like to know whether it is possible to change the z-order of a shared element transition? Look: I have a layout with an image, that fills the whole screen. In front of the image is a textbox which shows the title of the image. If I klick on the textbox, the transition to the detail activity starts. Therefore I implemented a shared element transition, in which the fullscreen image animates to a smaller version of itself in the detail view. The picture below illustrates this behaviour.

WPF Popup ZOrder

时间秒杀一切 提交于 2019-12-09 22:58:26
问题 I am using a WPF Popup, but it popups up above every single window on my desktop, even when my application is minimized. How can I make it stay only on the window it originated? The same thing happens when my window is behind other windows: the popup displays above them all. "There must be something can be done!" Thanks. 回答1: I've tried to solve this issue as well, and have found no good solution. This seems to be the way it is supposed to work, and you can't override that. The only solution

Delphi application window z order and MainFormOnTaskBar property

旧时模样 提交于 2019-12-08 16:51:19
问题 I'm maintaining an application originally written in Delphi 7 and ported to Delphi XE. Using Windows 7, we have experienced some problems like modal windows appearing under the main window and the eventual inability to interact with the program because the user is expected to interact with the modal form and that's impossible since it's under the main window. To avoid this problem I changed the MainFormOnTaskBar property of the project to True (older projects don't have this property) and now