enisn / UraniumUI

Uranium is a Free & Open-Source UI Kit for MAUI.
Apache License 2.0
1.17k stars 142 forks source link

Button of UraniumUI open new windows which cannot be brought to foreground #648

Open jingliancui opened 7 months ago

jingliancui commented 7 months ago

Reproduce:

  1. Open the sln using VS
  2. F5 to start the app
  3. Click button "open using uranium"

Actual Result: The new window place in back of MainPage Window

Expect Result1: The new window should be brought to foreground which in front of MainPage

Expect Result2: Effect like you click the button "open using native"

SampleApp.zip

enisn commented 7 months ago

PressedCommand is executed when you start pressing the button, you can use TappedCommand to execute command then you completed clicking. (Same logic with TapGestureRecognizer)

jingliancui commented 7 months ago

Hi @enisn , no, it still can not bring the new windows to foreground, this is the code I try:

<material:ButtonView 
    BackgroundColor="Blue"
    FlexLayout.AlignSelf="Center"
    TappedCommand="{x:Binding NewWinCmd}">
    <Label Text="open using uranium" />
</material:ButtonView>
jingliancui commented 2 months ago

hi @enisn , may I know is any update plan or workaround for this issue please? thanks.