wpf - Panel.ZIndex is not working on the two different Grids -


Objective: When the mouse over a button is over, the height of the button should be doubled and the button is displayed at the top Control in the 'N' number of the screen can be present in other control panels.

I am VS 2010, I have a main grid with 2 rows. Each row has 2 grids, each grid has buttons, for example grid 1 has yellow color buttons, grid 2 has blue buttons, I have written the following style for the button.

  style target type = "{x: type button}" & gt; & Lt; Style.Triggers & gt; & Lt; Trigger Property = "Ismouth Over" Value = "True" & gt; & Lt; Setter Property = "RenderTransform" & gt; & Lt; Setter.Value & gt; & Lt; ScaleTransform ScaleX = "1" scale Y = "2" /> & Lt; /Setter.Value> & Lt; / Setter & gt; & Lt; Setter Property = "Render TransformAgren" value = "0.5.0.5" /> & Lt; Setter property = "Panel.ZIndex" value = "99999" /> & Lt; / Catalyst & gt; & Lt; /Style.Triggers> & Lt; / Style & gt;  

Problem: When the mouse over a yellow color button in grid 1 is over. But the yellow button is not above the blue button on the grid. Panel. ZIndex is not working on two different grids

Please tell me how to solve this problem.

It seems that the problem is that the grid is behind 1 grid 2. If they are children of the same main grid then you can use the same trick you are using for the button and set a grid of ZIndex to 99999 when the mouse is on it:

  style target type = "grid" & gt; & Lt; Style.Triggers & gt; & Lt; Trigger Property = "Ismouth Over" Value = "True" & gt; & Lt; Setter property = "Panel.ZIndex" value = "99999" /> & Lt; / Catalyst & gt; & Lt; /Style.Triggers> & Lt; / Style & gt;  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -