<t:NTTabPage xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:t="clr-namespace:NinjaTrader.Gui.Tools;assembly=NinjaTrad er.Gui"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:TradePerformance="clr-namespace:NinjaTrader.Gui.TradePerformance;assembl y=NinjaTrader.Gui"
xmlns:AccountData="clr-namespace:NinjaTrader.Gui.AccountData;assembly=Nin jaTrader.Gui"
xmlns:AtmStrategy="clr-namespace:NinjaTrader.Gui.NinjaScript.AtmStrategy; assembly=NinjaTrader.Gui"
xmlns:webview2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Micr osoft.Web.WebView2.Wpf"
x:Class="NinjaTraderAddOnProject.AddOnPage" >
Then I add a webview2 node before accountSelector
<webview2:WebView2 Width="1024" Height="768" Source="https://www.google.com" />
<!-- ACCOUNT SECTION -->
<t:AccountSelector x:Name="accountSelector" Grid.Row="1">
<t:AccountSelector.Margin>
<Thickness Left="{StaticResource MarginBase}" Top="{StaticResource PaddingColumn}" Bottom="0" Right="{StaticResource MarginBase}" />
</t:AccountSelector.Margin>
</t:AccountSelector>
Finally build the project and generate NinjaTraderAddOnProject.dll, then put it with webview2 dlls into NinjaTrader custom directory. And reboot NinjaTrader.
However when I launch the addon, the webview instance just occupy the position (1024x768), but not to display the google website.
So how to do it collectly?
Comment