enisn / UraniumUI

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

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

Open jingliancui opened 1 month ago

jingliancui commented 1 month 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 3 weeks 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 3 weeks 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>