Export to XAML
Exporting Presentations to XAML
About XAML
XAML is a descriptive programming language that allows you to build or write user interfaces for apps, especially those that use WPF (Windows Presentation Foundation), UWP (Universal Windows Platform), and Xamarin forms.
XAML, which is an XML-based language, is Microsoft’s variant for describing a GUI. You are likely to use a designer to work on XAML files most of the time, but you can still write and edit your GUI.
Exporting Presentations to XAML With Default Options
This PHP code shows you how to export a presentation to XAML with default settings:
$pres = new Presentation("pres.pptx");
try {
$pres->save(new XamlOptions());
} finally {
if (!java_is_null($pres)) {
$pres->dispose();
}
}
Exporting Presentations to XAML With Custom Options
You get to select options from the IXamlOptions interface that control the export process and determine how Aspose.Slides exports your presentation to XAML.
For example, if you want Aspose.Slides to add hidden slides from your presentation when exporting it to XAML, you can set the ExportHiddenSlides property to true. See this sample PHP code:
$pres = new Presentation("pres.pptx");
try {
$xamlOptions = new XamlOptions();
$xamlOptions->setExportHiddenSlides(true);
$pres->save($xamlOptions);
} finally {
if (!java_is_null($pres)) {
$pres->dispose();
}
}