Set property of FirstViewModel.cs in MvvmCross - mvvmcross

I am creating a PCL using MvvmCross in Visual Studio 2013. In my FirstViewModel.cs file there is one property of type string named Name. I want to set its value through my Android app's View.cs file upon clicking a specific button. How can I achieve this?

Related

Adding a razor page in Blazor Project creates a .cshtml file

I'm following a tutorial trying to create a blazor project.
It says to add a razor page. When I right click on Pages folder ->Add->Razor Page, I get this prompt.
No matter what options I pick, the new file is a .cshtml file, not a .razor file.
I see other .razor files in the same folder by default.
Target Framework: .NET Core 3.1
Am I missing something?
I'm using Microsoft Visual Studio Professional 2019, Version 16.4.3.
Instead of creating a new "Blazor Page", go to the dialog to add a "New Item". From ASP.NET Core, Select "Blazor Component". This will create a new file called YourComponent.razor.
Bonus Fact: To create a code-behind file for the component, add a new class and specify the name YourComponent.razor.cs. Declare the class partial (because the .razor file itself makes a partial class declaration).
I am also new to Blazor and this has been a source of confusion for me. I hope that they make it more straight-forward in the next version of Visual Studio.

Missing some components in SSIS toolbox in Visual Studio 2017

I am using Visual Studio Community 2017 for developing SSIS packages and I use SQL Server 2016.
Some of components are not in SSIS Toolbox.
This is that I have now:
and this is my colleges have(They don't have the same version of Visual Studio that I have):
For example: I need to add a XML Source component to one of my Data Flow but there is not anymore in Other Sources sector in SSIS Toolbox.
I tried to add the missing components (Tools -> Choose Toolbox Items ->) but I don't have the tab for SSIS component.
How can I add those components (For example XML Source) to my Toolbox?
I have found the cause of this problem.
By changing the TargetServerVersion to SQL Server 2016 in Project properties. My project has been converted and now i have this component in my ToolBox.
Now, I have XML Source component in my SSIS ToolBox.
I can confirm the answer given by Ardalan Shahgoli resolved my missing component. I have captured a screenshot demonstrating the problem and the resolution. In my example, I was missing a component 'Excel Source Plus' from the 'CozyRoc' addin
PROBLEM:
Missing some components. The data flow has the component on the canvas, but there are of error messages in the Error List window, and you are unable to edit the component. For example, you might see an error message such as this:
Severity Code Description Project File Line Suppression State
Error Validation error. Alt Data Flow_Merge Data Task: Alt Data
Flow_Merge Data Task: The component metadata for "Lookup Plus, clsid
{8DC69D45-2AD5-40C6-AAEC-25722F92D6FC}" could not be upgraded to the
newer version of the component. The PerformUpgrade method
failed. SSASUsageStats.dtsx 0
RESOLUTION:
Changing the TargetServerVersion will effect which components are available in the 'SSIS Toolbox'. As seen in the screenshot, there are tons more components after changing the project property TargetServerVersion. For example, 'Excel Source Plus' is found. The Data Flow canvas now has an image by the icon. And the component now has an 'EDIT' option.

How to change app name in windows phone 8.1?

I am published one app in store in windows phone.now I want to change my published app name.how to change app name,please help me.how to change app name.
my app name is xyz.in
Actually My package name is xyz.in.xyz.in
my package display name is xyz.in
now i am changed package display name is abc.in.
but what happend is whenever I am creating package,after successfully created package the abc.in is changed again xyz.in.what should I do.
In your Package.appxmanifest file under the Packaging tab, change the field Package display name.
You can also have a localized app name by specifying ms-resource:AppDisplayName as the package display name, but then your .resw files need to have a string with the key AppDisplayName and of course you need to reserve the localized app names in your development dashboard on dev.windows.com.
You need to reserve a new name for your app in windows store. Check this link Changing your published app display name. It shows step by step.
Step One:
Reserve your app name in the Windows Store (like #Rohit said). Instructions here.
Step Two:
In Visual Studio (2015) go to Solution Explorer, select your solution, expand Properties, open WMAppManifest.xml, select the Application UI tab, enter the new name in the Display Name field.
Instructions here.

How can I access Gtk# widgets in code in MonoDevelop?

First, I am new to Monodevelop and Gtk# (but have experience with Visual Studio, C# and Winforms).
In Monodevelop I designed a form by dragging widgets onto it. I entered a value for the Name and (the same or a different value) for the MemberName. However I can't access the widgets in code.
In Visual Studio there is a form.Designer.cs which contains the code that creates the controls. What is the equivalent in MonoDevelop? I would like to examine the code so I can learn from it, and to find out how I can access a widget in code.
I am using MonoDevelop 5.5, Mono 3.10.0 on Linux Mint 17.1 64-bit.
(This question has been asked before, but that answer doesn't help me).
The GTK# generated code will be in a .cs file inside a gtk-gui directory inside your project. The .cs file will have a similar name to your widget class name but will have the full namespace of the class as part of its name.
MyWidget.cs
gtk-gui/MyGtkApp.MyWidget.cs
Also you will need to compile your project before the code is generated. The new member names should be available from within the widget's class.

How to set Image Source to a picture from .dll or .winmd in windows phone 8.1?

I am new to windows phone 8.1 developping and focus on library dev.
In the wp 8.0 era,I know if I want to create a Image instance.
I just write
amapLogo.Source = new BitmapImage(new Uri("/Com.AMap.Api.Maps" + ";component/Resources/ap2.data", UriKind.Relative));
need to point here is that "/Com.AMap.Api.Maps" is my library output dll
It works fine.
If I keep the same code in wp8.1 developping
exception appears
An exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: The given System.Uri cannot be converted into a Windows.Foundation.Uri. Please see http://go.microsoft.com/fwlink/?LinkID=215849 for details.
I browse http://go.microsoft.com/fwlink/?LinkID=215849
and find that two ways to set the ImageSource correctly.
the ms-appx or ms-appx-web scheme to create an absolute URI.
but it is used for getting a resource in the app package
what I want is getting a resource from my dll
so
What can I do to create a Image instance using way of setting
ImageSource.
Or is there anther way to do what i want?
Thanks!
Just Solve it!
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965322.aspx
To access files stored inside the same package, but from a class library, use the class library name:
<Image Source="/ClassLibraryName/images/logo.png" />