Manage Custom Converters


XamlFiddle offers a useful feature that allows users to integrate custom converters into their projects. Below is a step-by-step guide to using this feature.

Accessing the Custom Converters Feature

To access the custom converters feature, click on the menu: Manage > All Custom Converters
Manage Custom Converters

This will open a dialog window as shown below:
Custom Converters Dialog


Viewing Built-In Converters

To view the list of built-in converters, expand the CustomConverters folder by clicking on it:
Expand Custom Converters

Next, click on system.dll to view the built-in converters:
Choose Built-In Custom Converters

Finally, you'll see a list of the available built-in converters:
List Built-In Custom Converters


Uploading New Custom Converters

If you'd like to use your own custom converters, XamlFiddle allows you to upload them. To do this:

  1. Right-click on the CustomConverters folder and select Upload:
    Upload Custom Converters Menu

  2. A dialog will appear for you to choose your converter file:
    Custom Converters Chooser Dialog

  3. Choose the desired file, such as XamlFiddle.CustomCoolConverters.dll:
    Choose Custom Converters

  4. Once the converter is loaded, you'll see it listed:
    Loaded Custom Converters

  5. Click on XamlFiddle.CustomCoolConverters.dll to view its built-in converters:
    Chosen Custom Converters


Integrating Custom Converters into a XAML Item

To integrate a custom converter into a XAML item:

  1. Copy the namespace of the BooleanToVisibilityConverter by clicking the Copy Namespace button:
    Copy Namespace

  2. Close the Custom Converters Manager dialog and return to your XamlFiddle program:
    XamlFiddle Program

  3. Paste the namespace code into the current XAML item, then adjust it as shown:
    Paste Namespace Code

  4. Add the following code to your current XAML item:

<coolConverters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"></coolConverters:BooleanToVisibilityConverter>

Add BooleanToVisibilityConverter

  1. Adjust the button visibility in the XAML item as follows:
<Button Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}" Style="{StaticResource CustomButtonStyle}" Content="Test"></Button>

Adjust Button Visibility

  1. In the Data Source section, add the following code to the JSON:
{
    "IsVisible": false
}
  1. Your button will now be hidden as shown:
    Is Visible

  2. Finally, press Ctrl+S to save the current XAML item.


Deleting Custom Converters

XamlFiddle allows the deletion of custom converters uploaded by users, but system.dll converters cannot be deleted.

To delete a custom converter:

  1. Right-click on the converter and select Delete:
    Delete Custom Converters Menu

  2. A confirmation dialog will appear:
    Deletion Confirmation Dialog

  3. Click Yes to confirm the deletion:
    Yes Deletion Confirmation Dialog

  4. After deletion, you will no longer see the converter in the list:
    Deletion Success


Opening the Containing Folder

To open the folder containing your custom converters:

  1. Right-click on the CustomConverters folder in the Custom Converters Manager and select Open Containing Folder:
    Open Containing Folder Menu

  2. You will be taken to the folder location where your converters are stored:
    Open Containing Folder