question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: `PipsPager.LosingFocus`

See original GitHub issue

I am trying to port PipsPager to Uno Platform and I am confused about the LosingFocus method in there:

https://github.com/microsoft/microsoft-ui-xaml/blob/f0f9256072d03d06d08344b0edcf990c70d30884/dev/PipsPager/PipsPager.cpp#L567

How is it attached to the LosingFocus event? I can’t find any reference to it. Is it some kind of C++ magic 🙂 ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
beervoleycommented, Sep 30, 2021

@beervoley I know that this event exists, but how is this method hooked up to that event? For example for the Loaded event there is usually something like this in the constructor:

Loaded({ this, &NavigationViewItemBase::OnLoaded });

But in this case there is nothing similar for LosingFocus 🤔

@MartinZikmund @ranjeshj yes, you’re correct. It’s not getting hit. But (in my head) I remember the event hitting when I added it, I can’t get my ahead around why did I push it back then if it’s not getting called… Anyway, it’s dead code and can be safely deleted. @MartinZikmund if you have time and desire, could you please delete the dead code, remove m_ifNextFocusElementInside variable as well as adjust the logic of OnLostFocus with removal of the former variable?

0reactions
msftbot[bot]commented, Jan 3, 2023

🎉This issue was addressed in #6026, which has now been successfully released as Microsoft.UI.Xaml v2.8.2.🎉

Handy links:

Read more comments on GitHub >

github_iconTop Results From Across the Web

PipsPager Class (Microsoft.UI.Xaml.Controls)
Occurs when a FrameworkElement begins to load. (Inherited from FrameworkElement). LosingFocus. Occurs before a UIElement loses focus. This event is raised ...
Read more >
PipsPager - Windows apps
A PipsPager is a control to let the user navigate through a paginated collection when the page numbers do not need to be...
Read more >
PipsPager: when number of pages is infinite, it doesn't ...
Describe the bug Unless the number of pages was set to infinite during the compile time the size of set will not be...
Read more >
Releases · unoplatform/uno
NET developers can now reuse MediaPlayerElement across all supported platforms – iOS, Android, Web, Mac and Linux, in addition to, of course, Windows...
Read more >
Textbox not losing focus when tapping anywhere inside ...
The problem is that Grid is not "focusable" because it does not derive from Control . One way is that you place your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found