@@ -190,10 +190,10 @@ public class PopupStyle : Element, IThemeElement
190
190
BindableProperty . Create ( nameof ( CloseButtonIcon ) , typeof ( ImageSource ) , typeof ( PopupStyle ) , null ) ;
191
191
192
192
/// <summary>
193
- /// Identifies the <see cref="CloseButtonIconStroke "/> <see cref="BindableProperty"/>.
193
+ /// Identifies the <see cref="CloseIconColor "/> <see cref="BindableProperty"/>.
194
194
/// </summary>
195
- internal static BindableProperty CloseButtonIconStrokeProperty =
196
- BindableProperty . Create ( nameof ( CloseButtonIconStroke ) , typeof ( Color ) , typeof ( PopupStyle ) , defaultValue : Color . FromArgb ( "#49454F" ) ) ;
195
+ public static BindableProperty CloseIconColorProperty =
196
+ BindableProperty . Create ( nameof ( CloseIconColor ) , typeof ( Color ) , typeof ( PopupStyle ) , defaultValue : Color . FromArgb ( "#49454F" ) ) ;
197
197
198
198
/// <summary>
199
199
/// Identifies the <see cref="CloseButtonIconStrokeThickness"/> <see cref="BindableProperty"/>.
@@ -924,19 +924,32 @@ public ImageSource CloseButtonIcon
924
924
set => SetValue ( CloseButtonIconProperty , value ) ;
925
925
}
926
926
927
- #endregion
928
-
929
- #region Internal Properties
930
-
931
927
/// <summary>
932
- /// Gets or sets the icon color for close button .
928
+ /// Gets or sets the color of the close icon displayed in the <see cref="SfPopup"/> .
933
929
/// </summary>
934
- internal Color CloseButtonIconStroke
930
+ /// <example>
931
+ /// <para>The following code example demonstrates how to set <see cref="CloseIconColor"/> for the <see cref="SfPopup"/> control.</para>
932
+ /// <code lang="XAML">
933
+ /// <![CDATA[
934
+ /// <popup:SfPopup x:Name="popup">
935
+ /// <popup:SfPopup.PopupStyle>
936
+ /// <popup:PopupStyle CloseIconColor="Red" />
937
+ /// </popup:SfPopup.PopupStyle>
938
+ /// </popup:SfPopup>
939
+ /// ]]>
940
+ /// </code>
941
+ /// </example>
942
+ /// <seealso cref="SfPopup.ShowCloseButton"/>
943
+ public Color CloseIconColor
935
944
{
936
- get => ( Color ) GetValue ( CloseButtonIconStrokeProperty ) ;
937
- set => SetValue ( CloseButtonIconStrokeProperty , value ) ;
945
+ get => ( Color ) GetValue ( CloseIconColorProperty ) ;
946
+ set => SetValue ( CloseIconColorProperty , value ) ;
938
947
}
939
948
949
+ #endregion
950
+
951
+ #region Internal Properties
952
+
940
953
/// <summary>
941
954
/// Gets or sets the icon stroke thickness for close button.
942
955
/// </summary>
@@ -1113,7 +1126,7 @@ void IThemeElement.OnCommonThemeChanged(string oldTheme, string newTheme)
1113
1126
/// Gets the icon color for close button.
1114
1127
/// </summary>
1115
1128
/// <returns> icon color for close button.</returns>
1116
- internal Color GetCloseButtonIconStroke ( ) => CloseButtonIconStroke ;
1129
+ internal Color GetCloseIconColor ( ) => CloseIconColor ;
1117
1130
1118
1131
/// <summary>
1119
1132
/// Gets the icon stroke thickness for close button.
@@ -1160,7 +1173,7 @@ internal void SetThemeProperties(SfPopup popup)
1160
1173
ApplyDynamicResource ( HeaderFontSizeProperty , "SfPopupNormalHeaderFontSize" ) ;
1161
1174
ApplyDynamicResource ( MessageFontSizeProperty , "SfPopupNormalMessageFontSize" ) ;
1162
1175
ApplyDynamicResource ( FooterFontSizeProperty , "SfPopupNormalFooterFontSize" ) ;
1163
- ApplyDynamicResource ( CloseButtonIconStrokeProperty , "SfPopupNormalCloseButtonIconStroke" ) ;
1176
+ ApplyDynamicResource ( CloseIconColorProperty , "SfPopupNormalCloseButtonIconStroke" ) ;
1164
1177
ApplyDynamicResource ( CloseButtonIconStrokeThicknessProperty , "SfPopupNormalCloseButtonIconStrokeThickness" ) ;
1165
1178
ApplyDynamicResource ( HoveredCloseButtonIconBackgroundProperty , "SfPopupHoverCloseButtonIconBackground" ) ;
1166
1179
ApplyDynamicResource ( PressedCloseButtonIconBackgroundProperty , "SfPopupPressedCloseButtonIconBackground" ) ;
0 commit comments