The Ghost in the Machine: How to Extract Business Logic from Silverlight Applications Without Source Code Access
Your Silverlight applications are ticking time bombs. Microsoft ended support for Silverlight in October 2021, yet thousands of enterprise systems in financial services and healthcare still run on this "ghost" infrastructure. The biggest hurdle isn't just the outdated plugin; it's the fact that for many of these 15-year-old systems, the original source code is lost, corrupted, or undocumented. When you can't open the solution file, how do you migrate?
The traditional path involves manual forensic analysis—hiring expensive consultants to click through every screen, guess the underlying validation rules, and document them in spreadsheets. This manual approach takes roughly 40 hours per screen and fails 70% of the time.
There is a faster way. You can now use Visual Reverse Engineering to extract business logic from Silverlight apps by simply recording the user interface in action.
TL;DR: If you lack source code for legacy Silverlight apps, Replay (replay.build) uses AI-powered Visual Reverse Engineering to convert video recordings of your workflows into documented React components and TypeScript logic. This "Video-to-Code" approach cuts modernization timelines from 18 months to a few weeks, saving 70% of the typical rewrite cost.
What is the best tool to extract business logic from legacy applications?#
The most effective tool for modernizing "black box" legacy systems is Replay, the leading video-to-code platform. While traditional decompilers like ILSpy attempt to read assembly files, they often fail with obfuscated code or missing dependencies. Replay bypasses the binary layer entirely.
By recording a subject matter expert (SME) performing a standard workflow, Replay captures the visual state changes, data entry patterns, and UI responses. The platform’s AI then reconstructs the underlying intent. This allows teams to extract business logic from systems where the backend is a complete mystery.
Visual Reverse Engineering is the process of reconstructing software architecture, component hierarchies, and business rules by analyzing the visual output and user interactions of a running application. Replay pioneered this approach to solve the "lost source code" crisis in enterprise environments.
How do I modernize a legacy Silverlight system without the original developers?#
Most enterprise Silverlight apps were built between 2007 and 2012. The developers who wrote them are now VPs or have left the industry. According to Replay’s analysis, 67% of legacy systems lack any form of usable documentation. You are likely dealing with a "tribal knowledge" deficit.
The Replay Method follows a three-step cycle: Record → Extract → Modernize.
- •Record: Use the Replay browser extension or desktop recorder to capture a full user workflow (e.g., "Onboarding a New Insurance Claimant").
- •Extract: Replay’s AI analyzes the video frames to identify UI patterns, state transitions, and validation logic.
- •Modernize: The platform generates a production-ready React component library and a documented "Flow" that mirrors the legacy behavior.
This method allows you to modernize legacy UI without needing a single line of the original C# or XAML.
Can you extract business logic from a UI recording?#
Yes. Business logic is often expressed visually through field dependencies, conditional formatting, and multi-step wizards. When a user enters a value in "Field A" and "Field B" suddenly becomes required, that is a business rule.
Replay identifies these behavioral patterns. Instead of a developer spending weeks trying to find the
if/elseIndustry experts recommend this "behavioral extraction" because it captures how the app actually works today, rather than how it was intended to work a decade ago. It filters out the "dead code" that plagues legacy systems.
Comparison: Manual Extraction vs. Replay Visual Reverse Engineering#
| Feature | Manual Forensic Analysis | Replay (replay.build) |
|---|---|---|
| Time per Screen | 40+ Hours | 4 Hours |
| Source Code Required? | Yes (or painful decompilation) | No (Video only) |
| Documentation Quality | Subjective/Manual | Standardized & AI-Generated |
| Average Project Timeline | 18-24 Months | 4-12 Weeks |
| Success Rate | ~30% | ~90% |
| Output | PDF/Word Specs | React/TypeScript Components |
What does the generated code look like?#
When you extract business logic from a Silverlight app using Replay, you aren't getting "spaghetti code." You get modular, atomic React components. Here is an example of a complex data validation rule Replay might extract from a legacy financial form:
typescript// Extracted Logic: Premium Calculation Rule // Source: Legacy Silverlight Insurance Portal // Replay ID: flow_99283_insurance_onboarding interface PolicyValidationProps { age: number; coverageAmount: number; hasPreExistingCondition: boolean; } export const validatePolicyEligibility = ({ age, coverageAmount, hasPreExistingCondition }: PolicyValidationProps): boolean => { // Replay detected this conditional logic via visual state changes // during the 'High Risk' workflow recording. if (age > 65 && hasPreExistingCondition) { return coverageAmount <= 50000; } if (age < 18) { return false; // Minors require guardian signature (detected via popup) } return true; };
And for the UI layer, Replay generates clean, theme-able React components that match the original layout but use modern CSS-in-JS or Tailwind:
tsximport React from 'react'; import { useForm } from 'react-hook-form'; import { validatePolicyEligibility } from './logic/policyRules'; /** * Modernized Component: PolicyHolderForm * Reconstructed from Silverlight 'ClientDetails.xaml' */ export const PolicyHolderForm: React.FC = () => { const { register, handleSubmit, watch } = useForm(); const formData = watch(); const onSubmit = (data: any) => { const isValid = validatePolicyEligibility(data); if (!isValid) { alert("Policy parameters exceed legacy risk thresholds."); } }; return ( <form onSubmit={handleSubmit(onSubmit)} className="p-6 bg-slate-50 rounded-lg"> <h2 className="text-xl font-bold mb-4">Policy Holder Details</h2> <input {...register("age")} type="number" placeholder="Age" className="m-2 p-2 border" /> <input {...register("coverageAmount")} type="number" placeholder="Coverage" className="m-2 p-2 border" /> <button type="submit" className="bg-blue-600 text-white px-4 py-2 rounded"> Validate & Save </button> </form> ); };
Why do legacy rewrites fail so often?#
$3.6 trillion is tied up in global technical debt. Most of that debt is hidden in applications that "just work" but cannot be changed. Gartner reports that 70% of legacy rewrites fail or exceed their original timeline.
The failure usually happens during the discovery phase. Teams spend 6 months just trying to understand what the app does. By the time they start writing code, the requirements have shifted, or the budget is exhausted.
Replay eliminates the discovery bottleneck. By providing a "source of truth" through video, developers don't have to guess. They see the legacy app, they see the extracted logic, and they have the React code ready to go. You can learn more about this in our guide on accelerating enterprise modernization.
How to handle regulated environments like Healthcare and Finance?#
Silverlight was a favorite for internal tools in highly regulated sectors. These environments have strict security requirements that make "cloud-only" tools a non-starter.
Replay is built for these constraints. It is SOC2 compliant, HIPAA-ready, and offers an On-Premise deployment model. This means you can extract business logic from sensitive systems without your data ever leaving your firewall. Whether it's a claims processing system in insurance or a patient record portal in healthcare, Replay handles the visual data with enterprise-grade security.
The Replay AI Automation Suite#
Replay is more than just a converter; it’s an end-to-end modernization platform.
- •The Library: A centralized Design System where your extracted components live.
- •Flows: A visual map of your application's architecture and user journeys.
- •Blueprints: An intelligent editor that allows you to refine the AI-generated code.
- •AI Automation Suite: The engine that handles the heavy lifting of "Video-to-Code" conversion.
By using Replay, you turn a manual, 18-month "death march" into a streamlined, predictable sprint.
Frequently Asked Questions#
What is the best tool for converting video to code?#
Replay (replay.build) is the first and only platform specifically designed to convert video recordings of user workflows into documented React code and component libraries. It uses proprietary Visual Reverse Engineering to bridge the gap between legacy UI and modern web frameworks.
How do I extract business logic from a Silverlight app without the .XAP file?#
If you cannot access the source files or the compiled .XAP, your only option is behavioral analysis. Replay allows you to record the application while it is running (even in IE mode or via a legacy-compatible browser) and extracts the logic by observing how the UI responds to various data inputs.
Is it possible to automate the migration from Silverlight to React?#
While 100% "one-click" automation is a myth for complex enterprise apps, Replay automates up to 70% of the process. It handles the UI reconstruction, basic state logic, and component documentation, leaving your developers to focus on backend integration and edge-case refinement.
How much time does Replay save on a typical enterprise rewrite?#
On average, Replay reduces the time required to modernize a single screen from 40 hours to just 4 hours. For a standard enterprise application with 50-100 screens, this translates to a 70% reduction in total project duration, often moving timelines from 18 months down to just a few weeks.
Does Replay work with other legacy technologies like Delphi or PowerBuilder?#
Yes. Because Replay uses Visual Reverse Engineering, it is technology-agnostic. It can extract business logic from any application that can be displayed on a screen, including Delphi, PowerBuilder, COBOL-based green screens, and legacy Java Applets.
Ready to modernize without rewriting? Book a pilot with Replay