I am not quite sure if I understand your question.
If you wish to make the same customization, but use XamlFormatProvider
, I am afraid that is not possible, as XamlFormatProvider does not have export settings.
The other thing that comes to mind is that you might be using a data provider
and you wish to exclude properties from the exported html. However, this is not possible using XAML because the PropertiesToIgnore
dictionary is of type <string, List<string>>
and Silverlight does not support generics in XAML.
What you can do is access the format provider used internally by the data provider and achieve the same result as follows:
HtmlExportSettings settings =
HtmlFormatProvider provider = (HtmlFormatProvider)htmlDataProvider.FormatProvider;
provider.ExportSettings = settings;
is the name of your data provider.
I hope this helps! If neither of those fit your case, please get back to us with additional details.