public void SetBackButtonTheme(IImageButtonTheme themeName) { (Context as Activity)?.RunOnUiThread(() => { _holder.BackImageButton.SetTheme(themeName); }); }
public void SetBackButtonTheme(IImageButtonTheme theme) { InvokeOnMainThread(() => { _backButton.SetTheme((IImageViewTheme)theme); }); }
public void MoreOptionsButtonTheme(IImageButtonTheme theme) { InvokeOnMainThread(() => { _optionButton.SetTheme((IImageViewTheme)theme); }); }
public void MoreOptionsButtonTheme(IImageButtonTheme theme) { Application.SynchronizationContext.Post(_ => { _holder.OptionsImageButton.SetTheme(theme); }, null); }
public void SetFavoriteState(bool state, IImageButtonTheme theme) { InvokeOnMainThread(() => { _favoriteButton.SetTheme((IButtonTheme)theme); }); isFavorite = state; }
public void SetFavoriteState(bool state, IImageButtonTheme theme) { Application.SynchronizationContext.Post(_ => { _holder.FavoriteImageButton.SetTheme(theme); }, null); isFavorite = state; }
public PostHeaderStylesHolderIOS(ThemeParser <T> themeParser) { MoreOptionsButtonTheme = themeParser.GetThemeByName <IImageButtonTheme>(_moreOptionsButtonTheme); FirstLastNameTheme = themeParser.GetThemeByName <ITextViewTheme>(_firstLastNameTheme); DateTheme = themeParser.GetThemeByName <ITextViewTheme>(_dateTheme); QuoteTheme = themeParser.GetThemeByName <ITextViewTheme>(_quoteTheme); BuySellTheme = themeParser.GetThemeByName <ITextViewTheme>(_buySellTheme); BuySellValueTheme = themeParser.GetThemeByName <ITextViewTheme>(_buySellValueTheme); ForecastTheme = themeParser.GetThemeByName <ITextViewTheme>(_forecastTheme); CurrentPriceTheme = themeParser.GetThemeByName <ITextViewTheme>(_currentPriceTheme); DiffTheme = themeParser.GetThemeByName <ITextViewTheme>(_diffTheme); DiffValueTheme = themeParser.GetThemeByName <ITextViewTheme>(_diffValueTheme); DefaultAvatar = themeParser.GetThemeByName <IImageViewTheme>(_defaultAvatar); FavoriteStateActive = themeParser.GetThemeByName <IImageButtonTheme>(_favoriteStateActive); FavoriteStateNone = themeParser.GetThemeByName <IImageButtonTheme>(_favoriteStateNone); RecommendSellImage = themeParser.GetThemeByName <IImageViewTheme>(_recommendSellImage); RecommendBuyImage = themeParser.GetThemeByName <IImageViewTheme>(_recommendBuyImage); DifferenceValuePositive = themeParser.GetThemeByName <ITextViewTheme>(_differenceValuePositive); DifferenceValueNegative = themeParser.GetThemeByName <ITextViewTheme>(_differenceValueNegative); CurrentPriceImgUp = themeParser.GetThemeByName <IImageViewTheme>(_currentPriceImgUp); CurrentPriceImgDown = themeParser.GetThemeByName <IImageViewTheme>(_currentPriceImgDown); StateOnline = themeParser.GetThemeByName <IImageButtonTheme>(_stateOnline); StateOffline = themeParser.GetThemeByName <IImageButtonTheme>(_stateOffline); }
public void SetBackButtonTheme(IImageButtonTheme themeName) { _backImageButton.SetTheme((IImageViewTheme)themeName); }
public void SetFavoriteState(bool state, IImageButtonTheme theme) { }
public void SetBackButtonTheme(IImageButtonTheme theme) { _backButton.Image = (UIImage)theme.Image; _navigationBar.TintColor = (UIColor)theme.TintColor; }
public void SetBackButtonTheme(IImageButtonTheme theme) { _holder.ImageButton.SetTheme(theme); }
public static void SetTheme(this ImageButton imageButton, IImageButtonTheme theme) { SetTheme((ImageView)imageButton, (IImageViewTheme)theme); }