I'm using the DevExpress library to load a bunch of shapes from a SQL server WKT datatable. As far as I am aware they get loaded directly from XAML, so the only thing that I can influence is the ConnectionString path in .CS.
    <dxm:VectorLayer x:Name="WKT_Layer">
    <dxm:SqlGeometryDataAdapter x:Name="WKT_Adapter"
                                SqlText = "SELECT [WKT], [SID],[FILL],[STROKE] FROM [TLORIS]"
                                SpatialDataMember = "WKT"
                                ConnectionString="{Binding WKTConnection}"/>
    </dxm:VectorLayer>
Is there a way to force parts of XAML to load asynchronously, because the program can take up to 8 seconds to start while it loads all 10,000+ shapes? I'm also fine with using a loading spinner, for example WPF loading spinner, but I don't even know how to initialise it, as the UI is essentially frozen while the shapes are loading. I know how to solve this if I could approach it programmatically from .CS, but XAML is for me, for the most part, magic.
