diff --git a/libs/FmgLib.MauiMarkup/Extensions/CarouselViewExtension.cs b/libs/FmgLib.MauiMarkup/Extensions/CarouselViewExtension.cs index 0d611fa..4e91d15 100644 --- a/libs/FmgLib.MauiMarkup/Extensions/CarouselViewExtension.cs +++ b/libs/FmgLib.MauiMarkup/Extensions/CarouselViewExtension.cs @@ -605,6 +605,12 @@ public static SettersContext VisibleViews(this SettersContext self, Fun return self; } + public static T IndicatorView(this T self, Microsoft.Maui.Controls.IndicatorView indicatorView) where T : Microsoft.Maui.Controls.CarouselView + { + self.IndicatorView = indicatorView; + return self; + } + public static T OnCurrentItemChanged(this T self, System.EventHandler handler) where T : Microsoft.Maui.Controls.CarouselView { diff --git a/libs/FmgLib.MauiMarkup/FmgLib.MauiMarkup.csproj b/libs/FmgLib.MauiMarkup/FmgLib.MauiMarkup.csproj index 4a6af7f..5e53ce7 100644 --- a/libs/FmgLib.MauiMarkup/FmgLib.MauiMarkup.csproj +++ b/libs/FmgLib.MauiMarkup/FmgLib.MauiMarkup.csproj @@ -11,7 +11,7 @@ FmgLib.MauiMarkup FmgLib.MauiMarkup with C# Markup classes and fluent helper methods FmgLib.MauiMarkup - 8.6.6 + 8.6.7 FmgYazılım Fmg Yazılım ©2024 diff --git a/libs/FmgLib.MauiMarkup/Pages/ContentPage.cs b/libs/FmgLib.MauiMarkup/Pages/ContentPage.cs index ee32930..040da7b 100644 --- a/libs/FmgLib.MauiMarkup/Pages/ContentPage.cs +++ b/libs/FmgLib.MauiMarkup/Pages/ContentPage.cs @@ -1,10 +1,16 @@ -namespace FmgLib.MauiMarkup; +using System.Diagnostics; + +namespace FmgLib.MauiMarkup; public abstract class FmgLibContentPage : ContentPage, IFmgLibHotReload { protected FmgLibContentPage() { - FmgLibHotReloadHandler.UpdateApplicationEvent += ReloadUI; + if (Debugger.IsAttached) + { + FmgLibHotReloadHandler.UpdateApplicationEvent += ReloadUI; + } + Build(); } @@ -26,7 +32,12 @@ public abstract class FmgLibContentPage : FmgLibContentPage, IFmgLib protected FmgLibContentPage(TViewModel viewModel) { base.BindingContext = viewModel; - FmgLibHotReloadHandler.UpdateApplicationEvent += ReloadUI; + + if (Debugger.IsAttached) + { + FmgLibHotReloadHandler.UpdateApplicationEvent += ReloadUI; + } + Build(); } }