How to make the navigations like LinkedInApp with Tabbar in every screen.
If I clicked on profile image the Content in the middle changing with back button in the top navigation bar.I have to achieve this in both Android and iOS using Xamarin.Forms
Navigations like LinkedIn with Bottom Tabbar
i'm facing an error while trying to install 'SidebarNavigation 2.0.0'
Hi all
I'm new to xamarin i was try to install SidebarNavigation 2.0.0 from nuget.org and I got this error message 'Could not install package 'SidebarNavigation 2.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.'
What is mean, how I can fix it
Thanks in advance
How to change Toolbar Background and Text Color ?
Hey,
i want to change the color from the Toolbar and the color from the Text in Toolbar too, can someone help me to do this?
At the moment i have a black default Background, but want to change it to green. Where i can set the color for the ContentPage Toolbar?
Greez Dahl
Has anyone managed to hide the Title/Status bar in xamarin forms UWP?
I have no trouble hiding the toolbar, but I want to have a fullscreen windowless app in UWP when I hit the fullscreen button and then go back to a windowed app with a title bar when I hit it again. It was easy in windows forms but I can't seem to figure it out for Xamarin Forms. Any suggestions?
Method Stub Creation
I am using Visual Studio 2017 v15.6.4, in the XAML file when I add markup that includes events how do I get the system to create the method stub in the code behind. I have tried alt-enter, ctrl ., none of them seem to work. Maybe not the correct place to ask this question, but I am hoping someone out there can tell me how to do it.
visual studio popup a message "the application is in break mode"
Can't deploy my code into my android device, with out any break points it replies "The application is in break mode" am using VS2017.
Thank you for your cooperation.
Cross platform solution for reminders
Greetings,
is there any way to show a notification at a defined date and time? It should also work even when the app has been killed or the device has been rebooted.
Right now I'm considering to use a web service to send push notifications to the device at a specific device but I'd like to use a local option for that. Has anyone ever implemented this or knows a cool NuGet?
Kind regards
Mario
Tabbedpage in XAML code
How to construct the following code in code-behind page in XAML, where we check to see if it is Android or iOS? If Android, no navigationbar:
public class MainPage : TabbedPage
{
public MainPage()
{
Page itemsPage = null;
switch (Device.RuntimePlatform)
{
case Device.iOS:
itemsPage = new NavigationPage(new ItemsPage())
{
Title = "Items"
};
break;
default:
itemsPage = new ItemsPage()
{
Title = "Items"
};
break;
}
Children.Add(itemsPage);
Title = Children[0].Title;
}
}
Toolbar backbutton
I want to change the navigation of back button in toolbar. I have 3 pages main page, login page and profile page. After successful login it is navigated to profile page. Form profile page when back button is clicked it navigates back to login page, but i need to navigate to main page. Please do let me know how can I solve this.
Repair installation of Xamarin and dependencies
I've been struggling a complete morning with out of date and incompatible xamarin packages and version.
What do I need to do to recreate a stable environment?
The complete error log:
Attempting to gather dependency information for package 'Microsoft.Bcl.Build.1.0.14' with respect to project 'WeatherApp.Droid', targeting 'MonoAndroid,Version=v7.0'
Gathering dependency information took 1.58 sec
Attempting to resolve dependencies for package 'Microsoft.Bcl.Build.1.0.14' with DependencyBehavior 'Lowest'
One or more unresolved package dependency constraints detected in the existing packages.config file. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'Xamarin.Android.Support.v7.MediaRouter 24.2.1 constraint: Xamarin.Android.Support.v7.Palette (= 24.2.1)'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.Bcl.Build.1.0.14'
Resolved actions to install package 'Microsoft.Bcl.Build.1.0.14'
Attempting to gather dependency information for package 'Microsoft.Bcl.Build.1.0.14' with respect to project 'WeatherApp.iOS', targeting 'Xamarin.iOS,Version=v1.0'
Gathering dependency information took 127.22 ms
Attempting to resolve dependencies for package 'Microsoft.Bcl.Build.1.0.14' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.Bcl.Build.1.0.14'
Resolved actions to install package 'Microsoft.Bcl.Build.1.0.14'
Attempting to gather dependency information for package 'Microsoft.Bcl.Build.1.0.14' with respect to project 'WeatherApp.Windows', targeting 'Windows,Version=v8.1'
Gathering dependency information took 124.95 ms
Attempting to resolve dependencies for package 'Microsoft.Bcl.Build.1.0.14' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.Bcl.Build.1.0.14'
Resolved actions to install package 'Microsoft.Bcl.Build.1.0.14'
Found package 'Microsoft.Bcl.Build 1.0.14' in 'C:\Users\Johannes\documents\visual studio 2015\Projects\WeatherApp\packages'.
Install failed. Rolling back...
Package 'Microsoft.Bcl.Build.1.0.14' does not exist in project 'WeatherApp.Droid'
Executing nuget actions took 22.29 ms
Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v7.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
========== Finished ==========
Time Elapsed: 00:00:05.4649957
Question around using Xamarin.Forms with Paypal.Forms
Q1) In order to use Paypal.Forms, ... should I assume I should go ahead to create a new app in the 'REST API apps' in Paypal website first?
Q2) Accorrding to this website 'https://github.com/AlejandroRuiz/PayPal.Forms', It shows how we can make a request for a single or a list of buying items. But, how about 'Profile sharing' and 'Obtain a Client Metadata ID'? I am not quite sure when to use this? Or why we need profile sharing or client MetaData? and what is the sequent? How to start?
Q3) Do I need to use OAuth for paypal.forms implementation?
Q4)Do I need to write any server side script to validate and capture the payment, and host it on a web hosting server?
Q5) How about the return URL upon the completion of the payment? .... If I have no hosting a website, what should I put for the return Url?
How to set height and width of LoadingPlaceholder in CachedImage of FFImageLoading in Xamarin.Forms?
I want to set height and width of LoadingPlaceholder in CachedImage of FFImageLoading in Xamarin.Forms.
I have tried by following way but the GIF image use full size and shows big. I want to make it 64px as it's current size.
xaml file
Namespace: xmlns:ff="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
<ff:CachedImage Source="image.png" Aspect="AspectFill"
LoadingPlaceholder="Spinner64px.gif"
WidthRequest="375"
HeightRequest="375">
</ff:CachedImage>
Can you please suggest me how to show original size of gif image or set height and width of it?
Image:
Implemement the number of tap required on a image, label and button
Can you any one please help me on this? I want implement the number of taps required on image or label in mvvm xamarin.forms?
Thanks in advance.
Table is not created
Hi
I'm using SQLite as a local database for my mobile application (Android); by using a SQLiteAsyncConnection I'm trying to create a new table, but it it's not working. No exception is raised, the code seems to execute just right, but the table is not created.
A sample of the code:
How the connection is created:
public SQLiteAsyncConnection GetAsyncConnection()
{
try
{
var path = GetDatabaseFileLocation();
var conn = new SQLiteAsyncConnection(path, false);
return conn;
}
catch (Exception ex)
{
string message = ex.Message;
}
return null;
}
public string GetDatabaseFileLocation()
{
var sqliteFilename = "my_database.db3";
string documentsPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); // Documents folder
var path = Path.Combine(documentsPath, sqliteFilename);
return path;
}
The method to create the table:
public void CreateTable()
{
var asyncConnection = DependencyService.Get<ISQLite>().GetAsyncConnection();
// This does not work
asyncConnection.CreateTableAsync<MyModel>();
// This does not work either
//asyncConnection.GetConnection().CreateTable<MyModel>();
}
None of the above statements seem to work ...
Anyone know what is going on?
How Xamarin.Forms handle encrypted app images to prevent resource extracting?
Currently ListView etc with image cells, we just supply image location, and Xamarin.Forms takes over and even recycle(?) the list items to display.
If images are encrypted, simply supply the image location won't work, and load binary beforehand may work, but with a list of 100s of items, will be a big or even deadly problem for the app.
So, anyone has a better idea how to deal with encrypted images?
Thanks a lot.
Unable to find a version of 'Xamarin.Forms' that is compatible with 'Xamarin.Android.Support.v4 23.3
I just created a Xamarin Forms project on Windows 10 in Xamarin Studio (updated to latest stable version), and I did a NuGet update on solution:
Looking for updates for 'Xamarin.Android.Support.v4'...
Updating 'Xamarin.Android.Support.v4' from version '23.0.1.3' to '23.3.0' in project 'MyApp.Droid'.
Updating 'Xamarin.Android.Support.v4 23.0.1.3' to 'Xamarin.Android.Support.v4 23.3.0' failed. Unable to find a version of 'Xamarin.Forms' that is compatible with 'Xamarin.Android.Support.v4 23.3.0'.
The Android project has default settings, I didn't change anything.
I'm a bit surprised this didn't work right off the bat....
how to know version of Xamarin Forms
I just installed community edition of the latest Visual studio with Xamarin. When I click Help->About I can see in the installed products that Xamarin is 4.0.x version. How do I know which version of Xamarin Forms am I using? And are Xamarin Forms upgraded independently? I was assuming that everything is from one installer.
Xamarin.Forms Android 8 API
Hi,
How do I use SetJustificationMode(JUSTIFICATION_MODE_INTER_WORD) in custom renderer for Label in my Android Project? I am using Visual Studio 15.5, downloaded SDK for API 26 Level, Target Framework: Android 8.0 Oreo, Target Android Version: Use Compile using SDK Version.
Specifically, in my custom renderer, I set
if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.O)
{
TextView tv = (TextView)Control;
tv.SetJustificationMode(JUSTIFICATION_MODE_INTER_WORD);
}
but Control.SetJustificationMode gives the following error.
'TextView' does not contain a definition for 'SetJustificationMode' and no extension method 'SetJustificationMode' accepting a first argument of type 'TextView' could be found (are you missing a using directive or an assembly reference?)
What version of Xamarin.Forms should I use
Hi!
I want to create a Xamarin.Forms app that will target as many devices as possible, targeting UWP, Android and iOS.
I was wondering which Xamarin.Forms version I should use.
I'm willing to compromise and provide no support for OSs or API levels with a low market share, especially if the minimal XF version that targets them contains critical fixes & features.
Is there a list that compares all XF versions and the API levels and OS versions they can target?
How can we fetch photos on our app from instagram or facebook?
Is this possible in Xamarin.forms?