Questions tagged xaml

Explore the latest questions and answers asked by our top developers.

Xamarin iPhone simulator doesn’t show live code changes

When I’m trying to make code changes while using the iPhone simulator it doesn’t show the changes .. I tried to reset the iPhone simulator, reconnect to the mac, running the simulator on Xcode and then with Windows Visual Studio. Nothing helped .. Source: Xamarin.ios Questions

By TalGav
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin iOS disable navigation swipe effect

I’m new to mobile development and I wanted to ask about a way to switch pages without the navigation swipe effect, just press the button and the required page will appear instead of the old one. I thought about the TabbedPage but it won’t work with my UI. Thanks Source: Xamarin.ios Questions

By TalGav
Published
Categorised as Uncategorised Tagged , , , ,

ffimageloading:CachedImage image not fitting grid

enter image description here Any suggestion on how I can get my image fit in the grid? Below is my code. <Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <ffimageloading:CachedImage x:Name="mainImage" Source="{Binding Image1}" LoadingPlaceholder= "LoaderImage" ErrorPlaceholder= "{Binding Image2}" CacheDuration= "50" RetryCount= "3" RetryDelay= "600" DownsampleToViewSize = "true" Grid.Column="0" WidthRequest="380" HeightRequest="380" […]

By Jay
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin forms CollectionView data in two columns does not align in lines on iOs

I have a problem on iOs. On android CollectionView items aligns perfect, but on iOS not. Screenshots: Android screenshot: https://i.stack.imgur.com/7v2lK.png iOs screenshot: https://i.stack.imgur.com/YCwsa.jpg My code: <CollectionView x:Name=”FlowersList” VerticalOptions=”EndAndExpand” BackgroundColor=”Transparent” > <CollectionView.ItemsLayout> <GridItemsLayout Orientation=”Vertical” x:Name=”grid_layout” Span=”2″ /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate > <Grid> <Grid.RowDefinitions> <RowDefinition x:Name=”nuline_row” Height=”Auto”/> <RowDefinition x:Name=”pirma_row” Height=”Auto”/> <RowDefinition x:Name=”antra_row” Height=”*”/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition x:Name=”nulinis_stulpelis”/> […]

Xamarin Forms – Multiple views on one page

So i need to achieve Multiple Views on a page, Something like this, but i cant seem to find a way that makes this possible cross-platform. I can see that on IOS you can achieve this by adding multiple viewcontrollers to a page, but is this achievable in xamarin forms? Please let me know if […]

By Perfechte
Published
Categorised as Uncategorised Tagged , , ,

Xamarin forms IOS Buttons looking distorted

I have the following XAML code below : <StackLayout Grid.Row="2" Orientation="Horizontal" VerticalOptions="End" Margin="0,0,0,20" Spacing="28"> <Button x:Name="SignInButton" Visual="Material" Padding="5" Margin="10,0,0,0" Style="{DynamicResource ButtonSecondary}" HorizontalOptions="FillAndExpand" Text="Sign In" Clicked="SignInButton_Clicked"/> <Button x:Name="JoinUsButton" Visual="Material" Padding="5" Margin="0,0,10,0" Style="{DynamicResource ButtonPrimary}" HorizontalOptions="FillAndExpand" VerticalOptions="End" Text="Join Us" Clicked="JoinUsButton_Clicked"/> </StackLayout> The dynamic resources currently stored in the App.xaml file are as follows : <Style x:Name="ButtonSecondary" x:Key="ButtonSecondary" TargetType="Button" […]

By George
Published
Categorised as Uncategorised Tagged , ,

Static Resource not found for Key: ( Xamarin.Forms.Xaml.XamlParseException has been thrown)

It’s like Xamarin keeps on having these weird issues. I’m trying to use DataTemplateSelector as the Datatemplate for a collection view. I’ve done all the pre steps correctly Created a class that inherits from the DataSelector Class. I overrode the OnSelectTemplate method and use the necessary properties ”’ using PGallery.Models; using Xamarin.Forms; namespace PGallery.DataTemplates { […]

By Sentry COD
Published
Categorised as Uncategorised Tagged , , , ,

Segmented control Xamarin Forms customisation

I would like to create the segmented control in the image below. What i currently have or attempted using is the library in the following link : https://github.com/1iveowl/Plugin.SegmentedControl How ever as you can see the final result ends up being a horizontal segmented UI, which is what I do not want. I have checked the […]

By George
Published
Categorised as Uncategorised Tagged , , , ,

Stack layout wont fit elements when large text is On

I’m trying to make my app more compatible with accessibility features, and when a large text is enabled I cant fit two elements in a horizontally oriented stack. Any idea how I can fix this? StackLayout horisontalContainer = new StackLayout { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.FillAndExpand, }; List<string> dataList = this.registerCountries(); List<string> numberList = […]

By Spire
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin.forms iOS label rendering issue inside collection view

i am using text binding of label inside a collection view and text type is Html,but Html couldn’t be rendered successfully .. colors inside Html as example don’t appear. any solution or workaround for this ? Note : In android, works fine. this issue in iOS Source: Xamarin.ios Questions

By ahmed roshdy
Published
Categorised as Uncategorised Tagged , , , ,
1 2

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq