During my process of loading the project from VS 2017 to 2019 i have encountered this error where i went to check if it has been added in the first place and i can assure you that it has.
This is the error
And here is the assembly being referenced.
Type 'XElement' is defined in an assembly that is not referenced.
How can i get the row data on item tapped of syncfusion data grid in xamarin forms.
Hi,
How can i get the row data on item tapped of syncfusion data grid when autogeneratedcolumns is true, i am not using model in my code in xamarin forms.
Note: Getting data from database directly using datatable
Thanks
is not Working!
Here, <controls:CarouselViewControl.GestureRecognizers> is not working when it tap,
<controls:CarouselViewControl.GestureRecognizers>
<TapGestureRecognizer NumberOfTapsRequired="1" Tapped="ItemTappedEvent">
</TapGestureRecognizer>
</controls:CarouselViewControl.GestureRecognizers>
Hot Reload does nothing
Hey!
So I save changes to a XAML file whilst running on the Android Emulator and the UI does not update.
I have enabled the check box in Settings. I am running Forms 4.2. What else do I need to do ??
I have done everything as listed here:
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/hot-reload
Best book as a reference to develop xamarin forms apps
Hi people! I'm a newbie developer on xamarin.forms...Can you suggest to me a book as a reference to improve my technical skills?
Thank you very much in advance
App Bundle as a Check Box
When can we expect the Android App Bundle be make available as a check box setting in Android App properties settings page ? Thank you.
After creating the app package (UWP) - impossible to install dependency packages on many machines.
Hello,
Used Microsoft.NETCore.UniversalWindowsPlatform v 6.2.8
Those packages in install time gives "Catastrophic Failure (Error 0x8000FFFF)".
Install machine OS - WIndows 10 1803 17134.1069
It is blocker for us now.
Please help.
Regards, Jevgeni
15.6.2 needs rebuild every time
I have upgraded to this version and every time i make a change in xaml of forms project and start debugging in Android, my VS2017 doesnt take the changes, I still see the old xaml before change. If I clean obj folder and rebuild in Android, I am seeing changes. I didnt have this problem before this update. It started after 15.6.1 update and 15.6.2 has it also.
Can't change App Shell Tab to Navigation Page
Does anyone know how I can make a Tab
a NavigationPage
? Basically the problem I have is that I have a view I navigate to from one of the Xamarin Shell tabs.
I am using Prism Mvvm so I have OnNavigatedTo()
in the view I navigate to passing an object so I can populate the view. This method is never called because the Xamarin Shell Tab
is not wrapped in a NavigationPage. As these tabs are created in AppShell.xaml
I do not know how to do this.
Any help is much appreciated, thanks!
AppShell.xaml Tab page sample
<Tab x:Name="TestView" Title="Home" Icon="test.png">
<ShellContent ContentTemplate="{DataTemplate local:TestView}" Style="{StaticResource BaseStyle}"/>
</Tab>
I have tried:
AppShell.xaml with NavigationPage
<Tab x:Name="TestView" Title="Home" Icon="test.png">
<ShellContent>
<NavigationPage>
<x:Arguments>
<local:HomeView/>
</x:Arguments>
</NavigationPage>
</ShellContent>
</Tab>
Text & Icons are blurry and not obvious in iOS when using arabic language [Xamarin Forms]
Load data from API once and use it throught multiple pages, where to store List with data
When users opens app, FirstPage is loaded, where there is a list of news and some other non-related data is loaded. Then I have a separated page (NewsPage) where same news are loaded (I get data for both pages from one URL).
I want to optimize this, so app doesn't go out to get the same data twice, and when news are loaded on FirstPage, I want to store them somewhere and then access it from NewsPage.
From pageVM I call NewsService, which returns List. Do I set public List here?
What's the best approach to do this? Where do I store List so both Pages can access, read and modify this list (I'm using MVVM pattern with no frameworks).
AppStore submissions crashing after upgrade.. how to downgrade Xamarin.Mac / Mono?
My latest AppStore submissions are getting rejected due to crashes at startup and I need to downgrade to isolate what is causing the crash.
My distribution build is working just fine but each AppStore submission is getting rejected due to a crash at startup. I can't see any obvious app code changes which could cause any crashes but I've just reverted all code changes to the last successful submission and resubmitted to eliminate any app code changes as a cause.
My next test will be to downgrade the framework versions to the last successfully submitted version and resubmit to see if it's something in there that is now causing the crash.
My latest successful submission was on 3rd October 2019 so I need to downgrade to Xamarin.Mac 6.2.0.42
However, I'm struggling to find how to downgrade....
1) Where can I find the Xamarin.Mac 6.2.0.42 package?
2) It doesn't look like the Mono Framework MDK was updated since 3rd October, is that right?
3) It also looks like I need to downgrade Xcode from 11.1 to 11.0 is that necessary if I'm downgrading Xamarin.Mac?
service does not work when I close the program.
this service is running.
ScreenShoot:
Questions : service does not work when I kill the program. How to run service even if the program is dead ?
How to implement ShimmerLayout in Xamarin Forms ?
Hi,
https://components.xamarin.com/view/shimmerlayout
Do we have this control in Xamarin Forms. Is there any way that we can achieve this in Xamarin Forms ?
ListView items not completely loaded using xamarin.forms
My List View controller doesn't load all the elements, just it loads 1 element in this case, in other cases it loads like 4 but the others don't
As I have test where the problem occurs i have known that the problem is over the Frame controller, thanks to the frame most of my items on my List View dont load
image of the current problem:
App Store Connect (Application Loader) publishing failed - Failed to parse altool output.
I'm getting an error when trying to publish an update to my app using the Application Loader on VS. I tried researching on the error but the error itself isn't really clear. It originally worked earlier, but I got a "missing Info.plist value. CFBundleIconName is missing in the bundle" so I simply migrated to asset catalog (didn't use asset catalog for icons before) and now I'm getting this error. I cannot copy and paste the error but a picture of the error can be found below.
Listview, scrolling position.
Good Afternoon, Morning, Evening
I have a 3 list views in three columns, I have it set up this way for spacing issues.
Essentially, the 3 lists are the same list just different parts of the same class.
I want the three lists to scroll synchronously
Is there any way to bind the "scrolled percentage" to the other 2 listviews?
Custom font getting cut off at bottom => UIFont????
Having an issue where a custom font (FontAwesome) is not rendering properly. The bottom is getting cut off, so for example you can't see the loop in a lowercase "g" and looks like a backwards "p".
From what it seems I can correct this with the ascender/descender ?
Anyone know how to use it???
Thanks!
How to access collection view childs
I have a collectionView and DataTemplate inside. And I don't understand how to access my NewsViewModel to rotate it.
My XAML file:
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="JustEat.news"
xmlns:local="clr-namespace:JustEat"
Icon="news1.png"
x:Name="News">
<CollectionView SelectionMode="Single" x:Name="NVIEW" ItemsSource="{Binding ResepiesItems}" HorizontalOptions="Center" Margin="10"
SelectionChanged="NVIEW_SelectionChanged">
<CollectionView.ItemsLayout>
<GridItemsLayout Orientation="Vertical"
Span="1"
HorizontalItemSpacing="20"
VerticalItemSpacing="30"/>
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate>
<local:NewsViewModel>
</local:NewsViewModel>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentPage>
And my NewsViewModel.XAML:
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:local="clr-namespace:JustEat"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="JustEat.NewsViewModel">
<ContentView.Content>
<Frame CornerRadius="15" BackgroundColor="#d5dce3" Padding="0" IsClippedToBounds = "True" HasShadow="True">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="570"/>
<RowDefinition Height="200"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<local:AspectRatioConteiner AspectRatio="1">
<Image Source="{Binding ImageSrc}"
Aspect="AspectFill"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
HeightRequest="120"
WidthRequest="120"
Margin="0,0,0,0"
BackgroundColor="Red"/>
</local:AspectRatioConteiner>
<Label Grid.Column="0"
Grid.Row="1"
Text="{Binding Name, Mode=TwoWay}"
FontAttributes="Bold"
HorizontalOptions="CenterAndExpand"
VerticalOptions="Start"
x:Name="LabelInItm"/>
</Grid>
</Frame>
</ContentView.Content>
</ContentView>
Plagued by "Could not find file [cache file path]" errors
It seems I always run into some kind of error when attempting to build one of my Xamarin.iOS projects. This time, it's the "could not find file" one:
System.IO.FileNotFoundException: Could not find file "/Users/paulaldrich/Library/Caches/Xamarin/mtbs/builds/Archerisms.iOS.Stickers/e924fafed92fde1093edcef4a61f8248/obj/iPhone/Release/actool/bundle/iMessage App Icon60x45@2x.png"
File name: '/Users/paulaldrich/Library/Caches/Xamarin/mtbs/builds/Archerisms.iOS.Stickers/e924fafed92fde1093edcef4a61f8248/obj/iPhone/Release/actool/bundle/iMessage App Icon60x45@2x.png'
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00259] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:274
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:106
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x00025] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:54
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74
at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <2ef81566f3634b72b10e6ec47e856fbc>:0
at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x000b6] in <2ef81566f3634b72b10e6ec47e856fbc>:0 Archerisms.iOS.Stickers
The file referenced does not exist in my project anywhere, it only exists in the obj
folder under my iOS extension app (Archerisms.iOS.Stickers). I've deleted this folder multiple times, so one thing I'd like to know is, where is this file coming from? Even AgentRansack found no other references of this filename anywhere in my project.
I've seen this error before, and usually deleting the guid-named folder (e924fafed92fde1093edcef4a61f8248) fixes it, but not anymore. If I delete this folder, close VS, delete the bin and obj folders for both my main iOS app AND my iOS extension app, then re-open VS and build the main app again (in RELEASE mode), I get the same error. I've tried restarting my computer, restarting VS multiple times, reloading the iOS projects multiple times, nothing fixes it. This is why I'm starting to hate Xamarin.