How can override .xml file?

I want to override this class

vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml

Actually I want to make customize the Grand Total Column in sales order grid

<column name="base_grand_total" class="Magento\Sales\Ui\Component\Listing\Column\Price">             <settings>                 <filter>textRange</filter>                 <label translate="true">Grand Total (Base)</label>             </settings>         </column> 

I want to give a custom class for this column value

which directory can I make to override this class?

Can anyone help me?

Como ler um arquivo .XML com JSON

Meu professor está passando as seguintes matérias (ao mesmo tempo):
ASP.net
JSON
C#

Ele criou via Visual studio 3 projetos, cada um para uma das linguagens. Ele criou o servidor via ASP.net, rodou o JSON dentro do Servidor e através do JSON, abriu um arquivo XML e o executou dentro da página (uma gambiarra confusa, eu sei). Gostaria de saber se alguém poderia me explicar como ele fez isso.

Error: Building UI from XML. > onNavigatedFrom is not defined. Surely is, I deleted it!

I’m new to nativescript and I’m trying to build an app. The situation is that I’m getting an error from a function that I had used and now I deleted because it wasn’t needed anymore. It was a page event navigatingFrom=”onNavigatedFrom”, but as I said it’s already deleted. I hope you can help me, because I’m not getting why am I having an error related to something that isn’t on my code anymore…

Edit: This happened when I built the app through tns run android on a real mobile device, tried to uninstall the app, rebuild and the error persists.

Here’s my stacktrace:

System.err: com.tns.NativeScriptException: System.err: Calling js method onItemClick failed System.err: System.err: Error: Building UI from XML. @file:///app/home.1/home-items-page.xml:19:13 System.err: > onNavigatedFrom is not defined System.err: File: “file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 244, column: 20 System.err: System.err: StackTrace: System.err: Frame: function:’ScopeError’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/utils/debug.js’, line: 63, column: 24 System.err: Frame: function:’SourceError’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/utils/debug.js’, line: 74, column: 23 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 263, column: 17 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 244, column: 33 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/xml/xml.js’, line: 148, column: 13 System.err: Frame: function:’EasySAXParser.parse’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/js-libs/easysax/easysax.js’, line: 751, column: 23 System.err: Frame: function:’XmlParser.parse’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/xml/xml.js’, line: 195, column: 22 System.err: Frame: function:’XmlStringParser.parse’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 250, column: 27 System.err: Frame: function:’parseInternal’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 212, column: 11 System.err: Frame: function:’loadInternal’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 117, column: 27 System.err: Frame: function:’loadPage’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 53, column: 27 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 72, column: 12 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 86, column: 20 System.err: Frame: function:’FrameBase.navigate’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js’, line: 119, column: 30 System.err: Frame: function:’onItemTap’, file:’file:///data/data/org.nativescript.Airflow/files/app/pairing/pairing-list-page.js’, line: 18, column: 16 System.err: Frame: function:’Observable.notify’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/data/observable/observable.js’, line: 110, column: 23 System.err: Frame: function:’ItemClickListenerImpl.onItemClick’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/list-view/list-view.js’, line: 29, column: 19 System.err: System.err: at com.tns.Runtime.callJSMethodNative(Native Method) System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120) System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1000) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:987) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:967) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:959) System.err: at com.tns.gen.java.lang.Object_view_22_32_ItemClickListenerImpl.onItemClick(Object_view_22_32_ItemClickListenerImpl.java:20) System.err: at android.widget.AdapterView.performItemClick(AdapterView.java:339) System.err: at android.widget.AbsListView.performItemClick(AbsListView.java:1705) System.err: at android.widget.AbsListView$ PerformClick.run(AbsListView.java:4171) System.err: at android.widget.AbsListView$ 13.run(AbsListView.java:6734) System.err: at android.os.Handler.handleCallback(Handler.java:751) System.err: at android.os.Handler.dispatchMessage(Handler.java:95) System.err: at android.os.Looper.loop(Looper.java:154) System.err: at android.app.ActivityThread.main(ActivityThread.java:6682) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run(ZygoteInit.java:1520) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

home-items-page.js –>

 var application = require('application').android; function statusBar(action){     var activity = application.startActivity;     //activity.runOnUiThread(function(){     var win = activity.getWindow();     if(action === 'hide'){         win.addFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);     } else if(action === 'show'){         win.clearFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);     } }  function onPageLoaded(args) {      const page = args.object;     statusBar('hide');  }  exports.onPageLoaded = onPageLoaded; 

home-items-page.xml –>

<Page actionBarHidden="true" loaded="onPageLoaded">     <TabView id="tabViewContainer" androidTabsPosition="bottom">         <TabViewItem title="Fan" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="hvt/hvt-page"></Frame>         </TabViewItem>         <TabViewItem title="HvT" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="hvt/hvt-page"></Frame>         </TabViewItem>         <TabViewItem title="Usage" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="search/search-page"></Frame>         </TabViewItem>         <TabViewItem title="Settings" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="settings/settings-page"></Frame>         </TabViewItem>     </TabView> </Page> 

Thanks!

iOS и Windows читают .xml файлы по-разному C#

Есть проект Xamarin.Forms, внутри есть три приложения (iOS, Android, UWP), один общий проект с общим кодом Portable Class Library. Внутри этого проекта есть общий файл data.xml.

Считываю его таким образом:

var assembly = IntrospectionExtensions.GetTypeInfo(typeof(Facility)).Assembly; Stream stream = assembly.GetManifestResourceStream("MobilaApp.SharedFiles.data.xml");  GameLoader loader = new GameLoader(stream);  items = loader.GetFacilities(); 

И GameLoader.cs:

public GameLoader(Stream stream) {     BaseDocument = XDocument.Load(stream); }     public List<Facility> GetFacilities()     {         List<Facility> res = new List<Facility>();          var elements = BaseDocument.Element("Facilities").Elements();         foreach(var facility in elements)         {             string name = facility.Attribute("Name").Value;             string description = facility.Attribute("Description").Value;             string type = facility.Attribute("Type").Value;             var boundariesElements = facility.Element("Boundaries").Elements(); //Key Value pairs             Dictionary<double, double> boundaries = new Dictionary<double, double>();              double key, value;             foreach(var element in boundariesElements)             {                 string sKey = element.Attribute("Key").Value;                 string sValue = element.Attribute("Value").Value;                  if (double.TryParse(sKey, out key))                 {                     if (double.TryParse(sValue, out value))                     {                         boundaries.Add(key, value);                     }                 }             }              res.Add(new Facility(name, description, boundaries));         }          return res;     } 

Наконец, data.xml

<?xml version="1.0" encoding="utf-8"?> <Facilities>   <Facility Name="Google" Description="This is a standard description." Type="1">     <Boundaries>       <KeyValuePair Key="0" Value="100" />     </Boundaries>   </Facility>   <Facility Name="Facebook" Description="This description was created using my command line helper. I hope it works!" Type="0">     <Boundaries>       <KeyValuePair Key="0" Value="1.5" />       <KeyValuePair Key="10" Value="2.5" />     </Boundaries>   </Facility> </Facilities> 

Обе программы (Windows и iOS) считывают этот файл, затем обрабытавают его и выводят результат на экран. Проблема в том, что результаты получаются разные:

iOS 12.1, Iphone 7 plus введите сюда описание изображения

Windows 10 введите сюда описание изображения