WPF element host is crashing every second time
问题 I have a WPF user control inside windows form project and I have a problem. Every second time my app crashes as element host can't load data in user control. Same thing happens when I put this in WPF project. Every second time my app starts normally. Any idea what could be the problem? This is my user control code: <UserControl x:Class="Fleet_management.Info" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http