Manage Custom Assets


XamlFiddle offers a convenient feature that allows users to integrate images and videos into their projects. Follow the steps below to access, upload, and manage these assets.

Accessing the Custom Assets Feature

To open the custom assets manager, navigate to the menu: Manage > All Custom Assets
Manage Custom Assets Menu

Once selected, the Custom Assets Manager dialog will appear:
Custom Assets Manager


Uploading a New Image or Video

To upload an image or video:

  1. Right-click on the Custom folder:
    Context Menu Custom Assets

  2. Choose Upload from the context menu:
    Upload Image

  3. A file dialog will appear. Select the image or video you wish to upload (for example, an image):
    Choose Image

  4. Once uploaded, expand the Custom folder and click on the image (e.g., profile.jpg):
    Image Loaded

The process for uploading a video is the same as uploading an image.


Integrating an Image into a XAML Item

To integrate an image into a XAML item:

  1. First, copy the image code from the previous section:
    Copy Code

  2. Go to the selected XAML item. Close the Custom Assets Manager dialog to view the selected XAML item:
    XamlFiddle Program

  3. Update the XAML item by pasting the code to display the image:
    Show Image

This converter is used to convert the image or video URL into a BitmapSource.

<Page.Resources>
    <converters:RelativePathToImageVideoConverter x:Key="RelativePathToImageVideoConverter" />
</Page.Resources>

This XAML code is used for rendering an image.

<Image Source="{Binding Source='Assets/Custom/profile.jpg', Converter={StaticResource RelativePathToImageVideoConverter}}" />

Press Ctrl+S to save the image.


Deleting an Image

To delete an image:

  1. Open the Custom Assets Manager menu:
    Custom Assets Manager

  2. Expand the Custom folder by clicking on it:
    Expand Tree Folder

  3. Right-click on the image (e.g., profile.jpg) and select Delete:
    Delete Image

  4. A deletion confirmation dialog will appear. Click Yes to confirm:
    Deletion Image Confirmation

  5. After confirming, the image will be deleted:
    Image Deleted


Opening the Containing Folder

To open the folder containing your custom assets:

  1. Open the Custom Assets Manager menu:
    Custom Assets Manager

  2. Right-click on the Custom folder and select Open Containing Folder:
    Open Containing Folder Image Menu

  3. You will be taken to the folder where the custom assets are stored:
    Open Containing Folder