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

Popup TopMost. #70

Open
FoxTes opened this issue Nov 24, 2021 · 4 comments
Open

Popup TopMost. #70

FoxTes opened this issue Nov 24, 2021 · 4 comments

Comments

@FoxTes
Copy link

FoxTes commented Nov 24, 2021

Hello. Tell me please. Can I forcefully prevent the window to be closed (popup). I need an analogue of TopMost.

It appears as there is another application that knocks the focus of this window.

Thanks for the support.

@Lakritzator
Copy link
Collaborator

I'm a bit lost what you like from this repository.
What popup are you talking about, can you be more specific?

@FoxTes
Copy link
Author

FoxTes commented Nov 25, 2021

I'm talking about TaskbarIcon. I'm sorry I misled you.

Is it possible to prohibit its closure? I need TrayPopup to always be open.

@Lakritzator
Copy link
Collaborator

I know that you talk about the Taskbar Icon 😉
But I do not know how you use it, you might want to describe your issue with more details.

So far you are describing the default behavior of a Popop.
If you show a custom balloon, the "StaysOpen" is set to true, so I am not sure what you actually did.

Can you supply a code snippet?

@FoxTes
Copy link
Author

FoxTes commented Nov 30, 2021

Good. Let's start from the beginning. Here is my code:

<tb:TaskbarIcon
     IconSource="/Resources/trayIcon.ico"
     MenuActivation="RightClick"
     PopupActivation="LeftClick"
     x:Name="TaskbarIcon">

     <tb:TaskbarIcon.TrayPopup>
         <reactiveUi:ViewModelViewHost x:Name="ViewModelViewHost" />
     </tb:TaskbarIcon.TrayPopup>
</tb:TaskbarIcon>

In the view model, I have a button that starts the application installation. The installer of the program is not hidden, so the activated Popup is closed. I want to prevent this. Now I am forcibly opening Popup again manually.

PS. It's not about balloon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants