Questions tagged xaml

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

Bindings not updating despite PropertyChanged events successfully and properly thrown

I have a page called SubjectsPage, the binding context of which is set to the SubjectsPageViewModel. Within that SubjectsPage is an SfListView control (Syncfusion) where its ItemsSource has been set to the Subjects ObservableCollection property, which is using the INotifyPropertyChanged pattern as follows: private ObservableCollection<Subject> _subjects; public ObservableCollection<Subject> Subjects { get => _subjects; set => […]

By DaddyProphet
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin Style IndicatorView to look like TabbedPage

I have a problem. I recently had this problem: Xamarin forms Add button in TabbedPage, but that is fixed using the accepted anwser. In short, I am using a CarouselView and an IndicatorView, so I can have an overlay over multiple screens. Both the views replace my TabbedPage, but the IndicatorView needs to look like […]

By A Vreeswijk
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin forms Add button in root TabbedPage

I have a question. I created the following TabbedPage: <?xml version="1.0" encoding="utf-8" ?> <TabbedPage 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" xmlns:views="clr-namespace:MyApp.Views" mc:Ignorable="d" x:Class="MyApp.Views.MainPage" xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core" android:TabbedPage.ToolbarPlacement="Bottom" BarBackgroundColor="White" BarTextColor="Black" android:TabbedPage.BarItemColor="#B2B2B2" android:TabbedPage.BarSelectedItemColor="#56D7A5" android:TabbedPage.IsSwipePagingEnabled="False"> <TabbedPage.Children> <NavigationPage Title="page1" IconImageSource="navbar_page1"> <x:Arguments> <views:page1 NavigationPage.HasNavigationBar="False" /> </x:Arguments> </NavigationPage> <NavigationPage Title="page2" IconImageSource="navbar_page2"> <x:Arguments> <views:page2 NavigationPage.HasNavigationBar="False" /> </x:Arguments> </NavigationPage> <NavigationPage Title="page3" IconImageSource="navbar_page3"> <x:Arguments> <views:page3 NavigationPage.HasNavigationBar="False" /> </x:Arguments> […]

By A Vreeswijk
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin forms Add button in TabbedPage

I have a question. I created the following TabbedPage: <?xml version="1.0" encoding="utf-8" ?> <TabbedPage 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" xmlns:views="clr-namespace:MyApp.Views" mc:Ignorable="d" x:Class="MyApp.Views.MainPage" xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core" android:TabbedPage.ToolbarPlacement="Bottom" BarBackgroundColor="White" BarTextColor="Black" android:TabbedPage.BarItemColor="#B2B2B2" android:TabbedPage.BarSelectedItemColor="#56D7A5" android:TabbedPage.IsSwipePagingEnabled="False"> <TabbedPage.Children> <NavigationPage Title="page1" IconImageSource="navbar_page1"> <x:Arguments> <views:page1 NavigationPage.HasNavigationBar="False" /> </x:Arguments> </NavigationPage> <NavigationPage Title="page2" IconImageSource="navbar_page2"> <x:Arguments> <views:page2 NavigationPage.HasNavigationBar="False" /> </x:Arguments> </NavigationPage> <NavigationPage Title="page3" IconImageSource="navbar_page3"> <x:Arguments> <views:page3 NavigationPage.HasNavigationBar="False" /> </x:Arguments> […]

By A Vreeswijk
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin forms Center NavigationPage title

I have a problem. I used Navigation.PushAsync(), so now on my second page I have a back arrow in the NavigationBar. Now I want to add a titleview as well, in the middle of the NavigationBar, but it doesn’t get centered in exactly the middle, but more to the right, because of the back button. […]

By A Vreeswijk
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin Click only works on 1 view in AbsoluteLayout

I have a problem. I used the following code to create a Floating Action Button Menu: https://github.com/Polarts/CrossFAB Now, I added it to my code like this: <ContentPage.Content> <AbsoluteLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <ScrollView Orientation="Vertical" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All"> <StackLayout Orientation="Vertical"> <Label Text="Undone" TextColor="Black" FontSize="26" FontAttributes="Bold" Margin="10" /> </StackLayout> </ScrollView> <c:FloatingMenu Margin="0, 0, 10, 10" BGColor="Gray" OpenIcon="Share.png" CloseIcon="X.png" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All"> […]

By A Vreeswijk
Published
Categorised as Uncategorised Tagged , , , ,

UI looks cropped in initial load for ios using xamarin.forms

<ListView> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ContentView Padding="6,2,6,2"> <Frame BackgroundColor="White" CornerRadius="5" Margin="10,5" HasShadow="False" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> </Frame><Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" > <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Label Grid.Row="0" Text="Item1" /> <Label Grid.Row="1" Text="Item2" /> <Label Grid.Row="2" Text="Item3" /> </Grid> </ContentView> </ViewCell> </DataTemplate> </ListView.ItemTemplate> While with the initial load of the page UI looks […]

By Dev
Published
Categorised as Uncategorised Tagged , , , ,

The .cs files are not under the .xaml file

I am Newbie self learning Xamarin, I was making small projects Until I encountered this problem. every time I start new project, I get an Error: “Could not restore Packages”. App.xaml.cs used to be under App.xaml and main.xaml.cs used to be under main.xaml. Now they 2 independent files. 1) How can I restore packages? 2) […]

By Triple A
Published
Categorised as Uncategorised Tagged , , , ,

Display label text in uppercase using xaml in Xamarin.Forms

I have an username label and need to view this as uppercase but this should only relate to the UI. The data (string) should be saved in the db as actual case whatever it is. Could anyone tell me if there is anyway to convert it to uppercase without doing so through the code behind? […]

By Riyas
Published
Categorised as Uncategorised Tagged , , , ,

Is there a way to disable Auto Capitalisation on Xamarin Forms ‘Entry’ XAML

I have just started working in Xamarin and am writing an App targeting iOS and Android. I’m trying to keep pretty much all of my UI design in the common library between them and am starting to find the lines a bit blurred. My current requirement is to disable the auto-capitalisation on the ‘Entry’ tag […]

By The Senator
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