18 references to DependencyService
Microsoft.Maui.Controls (10)
Application\Application.cs (1)
45
var systemResources =
DependencyService
.Get<ISystemResourcesProvider>().GetSystemResources();
Device.cs (1)
147
DependencyService
.Get<IFontNamedSizeService>()?.GetNamedSize(size, targetElementType, useOldSizes) ??
Hosting\AppHostBuilderExtensions.cs (3)
176
DependencyService
.SetToInitialized();
179
DependencyService
.Register<ResourcesProvider>();
180
DependencyService
.Register<FontNamedSizeService>();
Interactivity\BindingCondition.cs (1)
75
static IValueConverterProvider s_valueConverter =
DependencyService
.Get<IValueConverterProvider>();
Interactivity\PropertyCondition.cs (1)
98
static IValueConverterProvider s_valueConverter =
DependencyService
.Get<IValueConverterProvider>();
OnPlatform.cs (1)
31
static readonly IValueConverterProvider s_valueConverter =
DependencyService
.Get<IValueConverterProvider>();
Registrar.cs (1)
510
DependencyService
.Initialize(assemblies);
Xaml\TypeConversionExtensions.cs (1)
227
var platformValueConverterService =
DependencyService
.Get<INativeValueConverterService>();
Microsoft.Maui.Controls.Compatibility (5)
AppHostBuilderExtensions.cs (3)
66
DependencyService
.SetToInitialized();
67
DependencyService
.Register<NativeBindingService>();
68
DependencyService
.Register<NativeValueConverterService>();
Tizen\StaticRegistrar.cs (2)
90
DependencyService
.Register<ISystemResourcesProvider, ResourcesProvider>();
92
DependencyService
.Register<INativeBindingService, NativeBindingService>();
Microsoft.Maui.Controls.Xaml (3)
ApplyPropertiesVisitor.cs (2)
551
var nativeBindingService =
DependencyService
.Get<INativeBindingService>();
579
var nativeBindingService =
DependencyService
.Get<INativeBindingService>();
Hosting\AppHostBuilderExtensions.cs (1)
44
DependencyService
.Register<Xaml.ValueConverterProvider>();