<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" >
<image:SfImageEditor x:Name="imageEditor" ImageSource="floordiagram.png"></image:SfImageEditor>
</Grid> |
public MainPage()
{
this.InitializeComponent();
FooterToolbarItem toolbarItem = new FooterToolbarItem();
toolbarItem.Text = "New";
imageEditor.ToolbarSettings.ToolbarItems.Add(toolbarItem);
imageEditor.ToolbarSettings.ToolbarItemSelected += ToolbarSettings_ToolbarItemSelected;
}
private void ToolbarSettings_ToolbarItemSelected(object sender, ToolbarItemSelectedEventArgs e)
{
if (e.ToolbarItem.Text == "New")
imageEditor.ImageSource = null;
} |