Comments (4)
We don't encourage AppBuilder.With
/TryGetService
to be used as a public service locator.
from avalonia.
public object? TryGetFeature(Type featureType) => AvaloniaLocator.Current.GetRequiredService(featureType);
It shouldn't call GetRequiredService on any type. Instead, it should check only for known interfaces, like IClipboard.
from avalonia.
We should probably provide a stub clipboard implementation for fbdev, yes.
However we shoudn't fallback to locator.
from avalonia.
As far as I am concerned, just having a clipboard is fine.
Though, by curiosity, I'd like to know what is wrong with calling locator on any required type in this scenario since AppBuilder.With
binds the options into the locator with no type filtering? The absence of symmetry does not feel intuitive to me.
from avalonia.
Related Issues (20)
- The modal dialog flashes on macOS when clicking on the parent window HOT 2
- Avalonia menu export DBus interop crashes plasma 5.27 HOT 1
- The TextBox input using the PasswordChar property has incorrect behavior on Android HOT 9
- Cannot add datagrid control HOT 22
- Textblock shows nothing with timespan string format HOT 1
- Update Popup.OverlayDismissEventPassThrough default based on form factor
- ILauncher launch events and intercept
- [Linux] Better integration with the desktop environment HOT 1
- 11.1.0 regression: FontFamily="Monospace" doesn't do anything
- The INotifyDataErrorInfo validates the data and vertically arranges the prompt content on the interface. HOT 5
- Consider reviewing IAvaloniaList.TrackItemPropertyChanged-extension
- Custom font family is not working in WebAssembly HOT 2
- Converters for resources HOT 2
- MenuFlyout ItemsSource item binding command always disabled HOT 1
- AVLN3000: Can't use resource for Foreground property of TextPresenter HOT 1
- Arabic diacritics rendered incorrectly
- Visibility of Text selection handles on empty TextBoxes on Android HOT 1
- Soft Keyboard Reappearance Issue for an already focused TextBox HOT 1
- PointerMovedEvent and PointerReleasedEvent do not trigger after mouse leaves the title bar with pressed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.