Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jingliancui opened this issue Apr 11, 2024 · 2 comments
Labels
control-buttonview question❔ Further information is requested

Comments

@jingliancui
Copy link

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
Copy link
Owner

enisn commented Apr 16, 2024

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

@enisn enisn added question❔ Further information is requested control-buttonview labels Apr 16, 2024
@jingliancui
Copy link
Author

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control-buttonview question❔ Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants