Posts by rubStackOverflow • 7,372 points
226 posts
-
1
votes2
answers815
viewsA: Do you have a plugin for VS Code that shows the color on the side?
An alternative solution to break a branch: Color Highlight ( By Sergii Naumov) Vscode Flutter/Dart Settings used in the above example: "color-highlight.markerType": "dot-after",…
-
1
votes2
answers482
viewsQ: When is it recommended to Initialize a final property in the Class constructor?
The example below is a summary of the original (Bringing it all Together) found on the official Flutter page. On the first call, the class Cart is initialized by the constructor and in the second…
-
5
votes2
answers389
viewsQ: What is the function of the keys { } in this interpolation?
class MyStateFull extends StatefulWidget{ MyStateFull(this.nome); final String nome = 'Maria'; @override _ContadorClique createState() => _ContadorClique(); // @override //…
-
1
votes1
answer106
viewsA: Read XML with equal tag (nodes)
Using LINQ: var xDoc = XDocument.Load(@"C:\temp\xmlnfse.xml"); XNamespace ns3 = "http://ws.issweb.fiorilli.com.br/"; var result = xDoc.Descendants(ns3 + "substituirNfseResponse"); XNamespace ns2 =…
c#answered rubStackOverflow 7,372 -
3
votes1
answer73
viewsA: Receiving and handling data from a query
var resultList= GetInfo(1) foreach (var result in resultList) { Console.WriteLine(result.FirstName); Console.WriteLine(result.Date); }
-
1
votes1
answer82
viewsA: Breaking data divided by comma
If I understand correctly you want to take the data separated by comma: const str = "37.78825,-122.4324"; str = str.split(","); console.log('latidude', res[0]) console.log('longitude', res[1]); Test…
-
10
votes2
answers2752
viewsQ: What is the difference in the statements with [] and {} in Javascript?
var a=[] var b={} What is the difference in statements with [] and {} in Javascript? And in what context is best used each? Question in English: Soen…
javascriptasked rubStackOverflow 7,372 -
10
votes1
answer4428
viewsQ: What’s the difference in Kotlin between var and val?
Learning Kotlin I came across the following doubt, according to the documentation: Classes in Kotlin can have properties. These can be declared as mutable, using the var keyword or read-only using…
-
19
votes2
answers1336
viewsQ: What’s the difference between "Compile time" and "run time"?
Compile time and run time are common terms that we often hear in the programming area, what are the main differences or characteristics of these two terms?
runtimeasked rubStackOverflow 7,372 -
1
votes1
answer301
viewsA: Gradient Xamarin Forms
You can use a ready-made component: Git: Xfgloss: Xamarin.Forms UI Enhancements Nuget: Xfgloss for Xamarin.Forms <?xml version="1.0" encoding="UTF-8"?> <ContentPage…
-
3
votes1
answer227
viewsA: Login with facebook in Xamarin Forms with Azure Mobile Apps
It seems to me that you are participating in the Xamarin Marathon. To get the profile data I did as follows: public class AzureService { List<AppServiceIdentity> identities = null; public…
-
0
votes2
answers32
viewsA: Macagent Xamarin
According to the documentation (Link) : Mac OS X El Capitan (10.11) or higher Xamarin iOS SDK. Apple’s Xcode(7+) IDE and iOS SDK (latest recommended version). Not required according to requirements…
-
3
votes2
answers588
viewsA: How to open the Mainpage.axml of a Xamarin Project in Designer mode?
App.xaml ("design") e App.cs (code behind) is just a 'starting' file in projects Xamarin-Forms. The archive (App.xaml) does not contain (directly) anything related to UI, I say directly because it…
-
1
votes1
answer59
viewsA: Difference between Staticresource and Themeresource UWP uses?
According to the documentation of Microsoft: (Text taken from documentation) To Themeresource is a technique for obtaining values referring to a XAML attribute defined elsewhere in a XAML resource…
-
1
votes1
answer184
viewsA: Event item Combobox
Interpreting "visible datapick" as the selected item, one of the possibilities would be: XAML <ComboBox x:Name="ComboBoxOpcoes" SelectionChanged="ComboBoxOpcoes_OnSelectionChanged">…
-
1
votes1
answer136
viewsQ: Migration with Strange Characters?
The data is from a bank Firebird and even opening with official tools the characters do not come in the "format" br, for example: ÁGUA vem µGUA PÃO vem PÆO Find a website that provides a special…
-
10
votes3
answers956
viewsQ: What is Container in POO?
What does Container mean in object-oriented programming? In which scenario its use is best represented?
-
2
votes2
answers122
viewsA: listbox with database records
Exchange the if for while while (reader.Read()) { listBox.Items.Add(("Registro: " +reader.GetString("id"))); }
-
0
votes1
answer66
viewsA: Dispatchertimer C# error (Universal app win 10)
Try it this way: private readonly DispatcherTimer _mytimer = new DispatcherTimer(); public MainPage() { InitializeComponent(); _mytimer.Interval = new TimeSpan(0, 0, 0, 5, 0); _mytimer.Tick +=…
-
0
votes2
answers277
viewsA: Time execution in time
There are some possibilities: ThreadPoolTimer: public MainPage() { InitializeComponent(); ThreadPoolTimer timer = ThreadPoolTimer.CreatePeriodicTimer(async (t) => { // do some work not connected…
-
-1
votes1
answer54
viewsA: Connect with Mysql universal win 10
Although this method of connection has been discontinued I will post an answer if it is useful Download and install the following files (Win64):…
-
1
votes1
answer50
viewsA: Universal app win 10 alert
Could be a Dialog, Flyouts, Toast Notification or even as you proposed (although I haven’t seen this since the time of the Clipper/msdos). It depends on what or what you’re trying to get the user’s…
-
2
votes1
answer134
viewsA: Create a background server
It’s not that simple, according to documentation in addition to the use of deferrals when an asynchronous function is performed, it is also recommended: (Re-register your background tasks during app…
-
1
votes1
answer386
viewsQ: What do the terms CPU-time Wall-clock-time mean?
Some documentation (programming) refers to these terms when there is some sort of limitation as to the use of the CPU, for example: Background tasks are limited by the amount of time use of…
-
2
votes3
answers34005
viewsA: Is there an iOS emulator to test an application developed in Xamarin?
Good news, there is: Remoted iOS Simulator (for Windows) Bad news 1, unfortunately it doesn’t get you out of having one MAC or having to virtualize a. Bad news 2 Remoted iOS Simulator requires a…
-
1
votes1
answer89
viewsA: How to use Facebook login on the universal Windows platform?
In the question it was not clear which tool is using for communication with Facebook, so I will deduce that you are using facebook-csharp-sdk. Another interesting option is Facebook Service -…
-
13
votes1
answer14872
viewsQ: What is Hashcode and what is its purpose?
I have observed that the use of hashcode is used in comparisons, but what does the term mean? Its use in programming is specific in comparison?
-
14
votes3
answers8566
viewsQ: What is CQRS and how to implement?
CQRS (Command and Query Responsibility Segregation) is one of those acronyms that we come across and we can’t fully understand its meaning and use. What is CQRS and how to implement?…
-
0
votes2
answers304
viewsA: How to access an HTML page and return your HTML using Xamarin.Forms?
private async void GetHtml() using (var httpClient = new HttpClient()) { var html = await httpClient.GetStringAsync("http://xamarin.com"); } } Source:…
-
0
votes1
answer47
viewsA: UWP XAML Frame.Navigate to page with parameter
Would look like this: class MainPage { MainPage() { InitializaComponent(); } public void ok_buttonClicked(object sender, EventArgs e) { var param = "Valor"; Frame.Navigate(typeof(SecondPage),…
-
0
votes1
answer208
viewsA: Aggregations and the DDD
I’m no expert on the subject but I’ll try to shed some light I would need to create a Repository class and a Service class by each of my entities (Account, Agent and Agency) or create the…
-
2
votes1
answer84
viewsA: Alphabetical ordering in Listview equal to the People App
The bad thing about following ready-made examples is that you forget to consult the official documentation that would solve the problem faster. (I fall a lot into these traps) To create a list…
-
1
votes1
answer113
viewsA: Floating menu on a webview - UWP
To interact with Webview this way it is necessary to work with Invokescriptasync and Scriptnotify. Basically, an event is triggered when a given command of a script is running within the Webview…
-
6
votes1
answer112
viewsQ: Tables with unconventional names like ABC1234
I have seen some that some systems adopt a different way of naming tables with letters and numbers like ABC1234, XX_900, etc.. These days I’ve been working on creating some queries in a system that…
-
2
votes2
answers1860
viewsA: Problem with Hyper v virtual machine emulator
For some reason the hypervisor has been disabled, to bypass execute the code below (enable) on prompt de comando as administrator and restart the computer. To return to the original configuration…
-
10
votes3
answers703
viewsA: Can I remove all the using I’m not using?
There is no problem in removing them (those that are not being used usually get a less prominent tone), a good alternative to make this and other actions less laborious is the free tool Productivity…
-
0
votes2
answers1873
viewsQ: Can Sqlite be considered a relational database?
According to Wikipedia, A relational database is a database that models the data in a way that the user perceives them as tables, or more formally relations. In my mind SQLite fits this definition…
-
1
votes1
answer735
viewsQ: Migration with possible data loss
When generating an update of db which results in possible data loss efcore shows the alert: An Operation was scaffolded that may result in the Oss of data. Please review the Migration for Accuracy.…
-
2
votes1
answer204
viewsA: How to create a compound index in Sqlite via Microsoft.EntityFrameworkCore.Sqlite?
I use a procedure little different from yours but the result should be the same: entityBuilder.HasIndex(c => new { c.AutorNome, c.Nome}) .HasName("idx_Curso_Autor_Nome") .IsUnique(); Result in…
-
1
votes1
answer39
viewsA: System.Runtime.Remoting.Remotingexception no Designer XAML VS2015
In some searches I did seems to be bug in VS When glue the full code locks: Then, adding in small parts, the XAML worked: Add empty tags and small parts <Grid>, etc., Hail, make reload in the…
-
2
votes2
answers79
viewsA: Color Visualization and New Creation
An alternative (paid) Resharper (obviously using this tool only to view and create new colors is not feasible) MeuBotao.Background = new SolidColorBrush(Color.FromArgb(255,0,0,255));…
-
3
votes2
answers802
viewsA: Command button does not work within Listview Xamarin Forms MVVM
In fact, if the configuration MVVM is correct, is working yes. But in behavior is fired not in vm and yes in the class being listed. Ex: If your listviewis being filled by List<Endereco> the…
-
1
votes0
answers21
viewsQ: Item Toolbar to select Standard Project
Applications Xamarin-Forms have option to select the project I want to start Startup Projects by the tool bar as shown below: Have to enable this option for other projects, example, I have a…
visual-studio-2015asked rubStackOverflow 7,372 -
2
votes1
answer93
viewsA: Repeat Stacklayouts according to Xamarin Forms list
Working with ListView <ContentPage.BindingContext> <viewModels:MeusEnderecosViewModel/> </ContentPage.BindingContext> <ListView ItemsSource="{Binding…
-
2
votes2
answers403
viewsA: How to include a new right icon in an Activity Xamarin Forms
A way would be like this: <ContentPage.ToolbarItems> <ToolbarItem Text="Usuario" Order="Primary" Priority="0"> <ToolbarItem.Icon> <OnPlatform x:TypeArguments="FileImageSource"…
-
7
votes1
answer168
viewsA: Is it normal for APK made in Xamarin Forms, even empty, to be 60mb?
This size is not normal, check the settings (release mode) of its application Android and compare with the following images:…
-
1
votes1
answer4261
viewsQ: Current time of the states of Brazil C#
I’m trying to get the current time of the states/DF Brazil with different time. I found the code below but it didn’t help much. Does anyone know any way to do it without webservice? public static…
-
0
votes1
answer316
viewsA: Visual Studio project losing references via git
One solution would be to let the VS automatically fix the packages with problem, for this, enable the option Restore Nuget Packages, right click on the project, then just recompile the project.…
-
2
votes1
answer50
viewsQ: Alert Resharper Access to modified closure
Implicitly captured closures or Access to modified closure It is a kind of warning that the Resharper shows in the code below, I would like to better understand this type of alert and what kind of…
-
1
votes2
answers144
viewsQ: Redudancia interface with Disposable
I saw an example of implementing a interface with Disposable which I think is redundant and I would like to know whether I am right. Following example to illustrate: public interface…