I have developed an IOS App using Xamarin.Form From Visual Studio 2017 on Windows 10 and a mac book is connected in same network.
I have also purchase an Apple Developer Program Account. my ios app is running perfectly in IOS Simulator.
now i want to publish ios app to AppStore. i don't have Iphone Device. Is Iphone Required for publishing IOS App to App Store or MacBook is sufficient.
Please tell me how can i Publish Directly or indirectly from Visual studio Or What is standard procedure to publish App to App Store.
public class Zicker : INotifyPropertyChanged
{
public class MyClass
{
public string HeyName { get; set; }
public string HeySurname { get; set; }
public int HeyAge { get; set; }
}
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged([CallerMemberName] string name = null)
{
if (PropertyChanged != null)
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs(name));
}
}
private ObservableCollection<MyClass> _yourList = new ObservableCollection<MyClass>();
public ObservableCollection<MyClass> YourList
{
get
{
return _yourList;
}
set
{
_yourList = value;
RaisePropertyChanged("YourList");
RaisePropertyChanged("BindMeLabel");
}
}
public int BindMeLabel
{
get { return _yourList.Sum(a => a.HeyAge); }
}
public void WonCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
RaisePropertyChanged("BindMeLabel");
}
public List<string> heresamplenames = new List<string> { "Mohamed", "Zaran", "Ivan" };
public List<string> heresamplesurnames = new List<string> { "Pakou", "Simmone", "Zagoev" };
public List<int> heresampleages = new List<int> { 17,33,50 };
public Zicker()
{
ObservableCollection<MyClass> vs = new ObservableCollection<MyClass>();
for (int i = 0; i < 3; i++)
{ vs.Add(new MyClass { HeyName = heresamplenames[i], HeySurname = heresamplesurnames[i], HeyAge = heresampleages[i] }); }
YourList = vs; YourList.CollectionChanged += WonCollectionChanged;
}
}
My XAML.CS
public MainPage()
{
InitializeComponent();
BindingContext = new Zicker();
}
My XAML:
<ContentPage.Content>
<ListView.ItemTemplate>
<ViewCell.View>
<Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
</ContentPage.Content>
My Problem:
In List, there are three names, surnames, and ages. At the bottom, there is also a label which should be shown as the sum of Ages collection.
When the UI is starting, Label is working well. But, if I try to change any Ages entries, there is a big problem with the binding label.
With a GridControl, how can I trigger an event when the last row of the list becomes visible?
I'm using a GridControl to display a list of data and check boxes, and I want to trigger an event when the user scrolls down far enough for the last row of data to become visible, but I'm having trouble figuring out how to do it. Can someone please point me in the right direction? This is how I'm declaring my list:
I have a form like below with picker control. Its source is in MVVM's observableCollection. Depending if it's existent Process or new one, _this object is created from scratch or set to object passed in constructor.
All works good, meaning picker get populated and _this contains appropriate object. The thing is, though, if _this is existent object with specified Type property, appropriate item in picker won't get selected automatically when form is loaded. I mean I see picker's title instead of item that's supposed to be selected. I'm wondering what might be wrong. Any ideas?
I am using a MasterDetail template and I also have a login page. In my app when I am logged out I have set:
MainPage = new LoginPage();
When I will successfully log in I am just changing MainPage to MasterDetailNavigation like this:
MainPage = new MasterDetailNavigation();
However, there is no animation (page transition) when I am changing MainPage. How can I add it? It would be great to have i.e. the same animation which is when we are doing:
Not sure what changed, but now when I build I get this error on every XAML file in my project. Has anyone ran into this issue before? Tried all of the usual fixes - del bin/obj, restart, clean rebuild, downgrade Forms...
We are using Xamarin forms version 2.5.1, In our app, we are using list view for displaying tabular data for that I am using view cells inside data template.
My view cell consists of grid layout that contains 40-45 columns and to display data on the UI I am using 40-45 labels per row.
The issue that I am facing currently is that when I have large data say 2000 records, so when the user scrolls it takes time to render new records to UI that is first black screen comes and then slowly data gets populated to different rows of list view.
Also, memory consumption increases on scrolling up and down the list view. I have also used the Listview Cached strategy to Recycle element but still no improvement. On profiling, I found that new instances of labels keep on getting created which leads to more rendering time and high memory consumption. So how can we optimize the performance of list view so that it works well with large data. Our target platform is Windows 10 UWP and IOS
It works to some extent, but there are a few problems:
-When monitoring location exit, iOS users experience numerous false exit notifications, especially when moving around inside the location perimeters. Also if moving outside the location, when phone wakes up after being inactive, one can get 3-4 notifications about exiting the location, even if the user is far away
-All proper exit notifications (not the fake ones) are displayed twice on iOS
-On Android, some users don't get notifications at all, especially if the app is in background or closed
1.Does anyone else have experience with either of these plugins in production?
2.Anyone else have experience with same problems that I am facing?
It's weird that nobody else seems to have problems. I was a newbie to Xamarin when writing the app, I am thinking of creating a small sample. Maybe I have made mistakes, although I have been going through my code several times without finding any. Maybe nobody is actually using the geofence plugin for other than playing around....
i have discovered a very strange problem or behavior of xamarin.forms for me. The problem is navigation only works in debug or release mode, as soon as I create an APK (archive) navigation doesn't work anymore. I cut my code down to a minimun (only looks big by the CommandCanExecute part) I have no idea why this run fine in debug and release mode but if its packed up it wont, i don't even get an exception thrown
`
// App
public App () {
InitializeComponent();
MainPage = new NavigationPage(new Views.MainPage());
}
// MainPage
public partial class MainPage : ContentPage {
MainPageViewModel viewModel;
public MainPage() {
InitializeComponent();
viewModel = new MainPageViewModel(this, Navigation, ScrollViewLog);
BindingContext = viewModel;
}
}
// MainPageViewModel
public class MainPageViewModel : INotifyPropertyChanged {
// property
private bool openOptionsPasswordCheckCommandCanExecute = true;
public bool OpenOptionsPasswordCheckCommandCanExecute {
get { return openOptionsPasswordCheckCommandCanExecute; }
set {
openOptionsPasswordCheckCommandCanExecute = value;
((Command)OpenOptionsPasswordCheckCommand).ChangeCanExecute();
}
}
// command
public ICommand OpenOptionsPasswordCheckCommand { get; private set; }
// fields
private INavigation navigation;
// construct
public MainPageViewModel(INavigation navigation) {
this.navigation = navigation;
OpenOptionsPasswordCheckCommand = new Command(async () => await OpenOptionsPasswordCheckCommandAction(), () => OpenOptionsPasswordCheckCommandCanExecute);
}
// the navigation
private async Task OpenOptionsPasswordCheckCommandAction() => await NavigateToOptionsCheckPassword();
public async Task NavigateToOptionsCheckPassword() => await navigation.PushAsync(new OptionsPasswordCheck());
// even if I not use the passed Navigation object it won't work -->
// Application.Current.MainPage.Navigation.PushAsync(new OptionsPasswordCheck()); // navigation.PushAsync(new OptionsPasswordCheck()
Hi folks,
My Xamarin.Forms app crashes when trying to display a map on Android. Here's my code:
var map = new Map(
MapSpan.FromCenterAndRadius(
new Position(0,0), Distance.FromMiles(0.3)))
{
IsShowingUser = true,
HeightRequest = 100,
WidthRequest = 960,
VerticalOptions = LayoutOptions.FillAndExpand
};
var stack = new StackLayout { Spacing = 0 };
stack.Children.Add(map);
Content = stack;
I can't figure out what the issue is because it functions fine on iOS. It's not an API key issue, as I'm not even getting a grey box (I'd love for it to even reach that point) - it just crashes whenever I open the page.
Any help would be greatly appreciated, I've been tearing my head out with it for a couple of days now.
The bold attribute worked but no luck with fontsize.
I've tryed different solutions :
<OnPlatform.iOS>
18</x :Double>
</OnPlatform.iOS>
Even this line doesn't work : <Setter Property="FontSize" Value="30"/>
I can declare style for everything except fontsize. What am i doing wrong ?
(please Xamarin Team, do something for the code we paste here : there are always some text hidden, some lines missing etc. I don't know how the hell you came up with such a weird behavior but i d rather prefer simple text without formating that half the code i paste. We are not here to edit our message 10 times. I spend more time editing my code than writing the entire message. Thank you guys)
Exemple : my code OnPlatform.iOS x double 18 shows half the code in my browser. So people will think i don't care about this post because there are code missing but no. The text is just hidden for no reason.
I wrote a custom renderer to handle gestures (long press in particular). Debugging the code, the custom renderer is not hitting the breakpoints when used inside a datatemplate/viewcell (as shown in the following snippet)...the Label with a background color of Orange does appear, but the local.LabelExt does not appear (not the text or the background color). The background colors are only there to assist in my troubleshoot efforts.
I haven't dealt with the iOS asset catalog stuff before.
All new XF3 solution. I've added all the images wanted by the Assets.xcassets/AppIcon pane (and what a pain that is).
So I no longer get an error for image120.png not found, etc.
Now I get an error for Images.imageset/Contents.json not found. ANd I agree. When I look on the build mac there is no such directory or file.
So... Now what? What is it looking for to create that Images.imageset? Do I have to add images to an image set whether I have any or not? Does it just not work if you don't have at least a set defined?
Well... Let's try that.
Now it complains there is no Images blah blah. I'm thinking that at one time there was an Images catalog that got deleted... but not fully deleted... so some file someplace thinks its still there. Each new Images catalog is the next number up. So I'm always missing one.
Does anyone know where the list of these catalogs lives so I can manually edit it?
I just updated my App to XF 3.0 in Xamarin Forms (PCL) and strangely suddenly a page where there is a Full Screen WebView is loaded shows a white screen ONLY for Android Devices (iOS does work -> Screenshot 3).
Loading the YouTube video on the Webview works fine (Screenshot 1), after clicking the Play button in the Center a WHITE screen shows up and the video will not be displayed (Screenshot 2).
Is there a bug for Android?
I did not show the source code because it is just a simple YouTube link loaded in the WebView.
Why there is always problem with Xamarin? Fresh project and:
1. No intelisense for XAML
2. Controls are inaccesible from code (I had to add [XamlCompilation(XamlCompilationOptions.Compile)] and BindingContext = new MainPage();
to get this work)
3. After project creation you have to build it to restore nuget packages
4. Xamarin Live Preview crashes without any error with only Label control. I removed device and added again, still same problem
5. Sometimes it looks for latest ver. of Android SDK even if simulators are for installed ver. of SDK. You have to change a target API or install latest
How you guys are able to work with Xamarin? Maybe it's only me. I'm not interesed in Java. Can someone help me?
PS.
This project is a start project with label control in center. What would happen if I wanna do something more than showing a text in center of screen... -.-'