Dark Mode Theme Problem: Unable to Change a color in OpenRPA

I am designing a dark mode template for OpenRPA, but I’m having trouble changing a specific white border color. When I inspected it using the Live Property Explorer in Visual Studio, I found that the border is associated with ‘[VirtualizedContainerService+VirtualizingContainer]’. Changing the background color of this element in the explorer successfully alters the appearance, but I haven’t found a way to change this item’s color within my application. Any help is appreciated!

1 Like

I have never tried styling my own or embedded controls. I know it’s doable, since UiPath did it, but i don’t know how it’s done, so i will not be much help here.

I managed to find some hacky ways to manipulate that. But now I have a problem with getting the reflection of the Sequence in order to change its background color. Somehow, I couldn’t find the part where the application injects the Sequence.

Activity wf = new Sequence { };

var ab = new ActivityBuilder
{
    Name = Workflow.name.Replace(" ", "_"),
    Implementation = wf
};

I tried to manipulate the Background or BorderBrush property of Sequence using VisualTreeHelper with or without assembly reflection. I’ve read tons of reference sources, but the problem is that when I open/create the workflow, it doesn’t really load the Sequence. It just renders the XAML and doesn’t really inject the Sequence or SequenceDesigner class. (Or, as I said, I couldn’t figure out where it loads the Sequence. Note: I am a junior developer.)

I’ve tried to create a Custom Sequence class using reference source. However, due to the framework’s behavior, when I add two different activities, the built-in Sequence class immediately pops up. While this might be straightforward for someone more experienced. I haven’t found a good way to address this issue.

I’ve been stuck on this issue for two days.

Any idea is welcome

I don’t quite understand any of that, but maybe this will help.
Workflow Foundation is designed to allow having the UI in a different DLL/namespace than the actual activity. If the activity does not contain the UI, the framework will look for a DLL with the same name but with Design.dll as the name.
(mentioned here)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.