Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 77050 articles
Browse latest View live

Pre-release: Xamarin.Forms 4.5


Can't debug my libraries with XF - symbols not loaded for my own project code

$
0
0

I cannot step through my own project libraries referenced by my Xamarin Forms app. All my Nuget packages are showing symbols loaded - I can step through any library code except for my own! I have tried including these projects in my Xamarin forms solution; I have tried removing them from the solution also. (My modules always show "symbols not loaded" in the Modules window during debugging.) I have tried deleting bin folders, specifying the folder where the pdb file is in my debug options, changing my debug settings in every different way imaginable. I can step through these libraries (my code/projects) with no problems when running my WPF application, but can't from my Xamarin forms app. These are my own libraries (.NET Standard 2.0 - same as my Xamarin forms project.) Any suggestions are appreciated. I have spent hours on this and can't get past it.

Xamarin App crashes on Reopen NullReference

$
0
0

I have an app on Xamarin, it works fine, if I press back button, to move to main menu it hides in app stack, so when I open it back from app stack it suddenly crashes with NullReference

06-10 15:59:57.363 I/MonoDroid(14891): UNHANDLED EXCEPTION: 06-10 15:59:57.363 I/MonoDroid(14891): System.NullReferenceException: Object reference not set to an instance of an object 06-10 15:59:57.363 I/MonoDroid(14891): at Xamarin.Forms.Platform.Android.FormsApplicationActivity.OnPrepareOptionsMenu (Android.Views.IMenu) <IL 0x00007, 0x00050> 06-10 15:59:57.363 I/MonoDroid(14891): at Android.App.Activity.n_OnPrepareOptionsMenu_Landroid_view_Menu_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mavericks-monodroid-5.1-series/d419c934/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:4151 06-10 15:59:57.363 I/MonoDroid(14891): at (wrapper dynamic-method) object.87f976f0-8c0f-4463-92f4-c8ed92b6336d (intptr,intptr,intptr) <IL 0x00017, 0x0004b> 06-10 15:59:57.383 D/AndroidRuntime(14891): Shutting down VM 06-10 15:59:57.383 W/dalvikvm(14891): threadid=1: thread exiting with uncaught exception (group=0x41b66c08) An unhandled exception occured.

Any ideas will be helpful, stuck with it for too long

How do I define tab bar colors with a in place?

$
0
0

I was able to style the TabBar Tabs and page title, etc. fine until I converted to a FlyoutItem as shown in the attachment. Note that this is the default AppShell project as created by VS2019, with the ItemPage background color set to Yellow.

As you can see, none of the style settings supplied seem to "apply". Do I need a different TargetType? It's not immediately obvious from the list available.

Disable Shell Edit Option in iOS(Xamarin.Forms)

$
0
0

Hi,
I want to disable edit option in more(when clicked on more in shell ,it will appear on right side top corner of the screen),in android more option is working correctly .

Thanks,
Subbu

Shell Flyout Right to Left

$
0
0

Hi ,

How to create Right to Left Flyout menu in xamarin Forms with hamburger icon on right....?

Thanks,
Subbu

how can i move the burger menu to the right side in the navigation bar

$
0
0

I would like to move the hamburger menu to the right in the navigation bar, so that I can put the button to go back to the left side (for ios).
Does anyone know how to do? thank you.

Background color of items inside ViewCell in Listview in iOS background color problem

$
0
0

I have a Listview, with a custom ViewCell that has a bunch of Frames and Labels, everything is working fine except that the BackgroundColor of all controls inside the ViewCell get changed if the parent row is selected. This only happens in iOS. A screenshot is attached.

How can I solve this?


How to use the Android Playback Capture Api?

$
0
0

What would be the basic example of the Playback Capture Api, to record any sound currently playing as a byte array? Would it be possible to record the bytes and send them, while reading another batch?

Create an input field from within the form

$
0
0

Hi, I want to make a tournament app. for this, I need to create as many input fields as I want from within the form. How can I do that ?

PopUp page - Send data to mainpage ( mvvm )

$
0
0

Hello friends, i have main and popup pages.

my architecture is MVVM and i want to call back a string from popup page.

i tried EventHandler . Normally it works but for MVVM i couldnt make it work.

Any ideas?
Thanks in Advance;

DIsablet Entry text color?

$
0
0

Hi.

Is there any way to change a disabled entry text color? Whatever I do it's automatically changed to gray (at least under Android, I still haven't tried on iOS).

The reason for this is I want an entry to show some data and on some actions this data must be editable.

Or is there any other property like ReadOnly to achieve this?

Cheers.

Is there any way to bind to ConverterParameter?

$
0
0

I want to bind to ConverterParameter. Is it bindable? if so what is the way?

convert html to xaml

$
0
0

hi
Is it a program or tool for conversion

Example

ListView click Event

$
0
0

I have a listview with multiple elements, in code # how do I see which one was clicked?

C#:

public HomePage()
{
InitializeComponent();
ListViewCategory.ItemsSource = CategoryList;

    }

private async void ClickCategoryDetail(object sender, EventArgs e)
{
await Navigation.PushAsync(new ricercaArticolo());
}

XAML:


<customControl:RepeaterView.ItemTemplate>



<pancakeView:PancakeView

                                        Margin="5"
                                        Padding="0"
                                        BackgroundColor="White"
                                        CornerRadius="30"
                                        Elevation="1"
                                        HasShadow="False"
                                        HeightRequest="60"
                                        WidthRequest="60">

                                        <pancakeView:PancakeView.GestureRecognizers>
                                            <TapGestureRecognizer Tapped="ClickCategoryDetail"></TapGestureRecognizer>
                                        </pancakeView:PancakeView.GestureRecognizers>
                                        <customControl:IconView
                                            Margin="10"
                                            BackgroundColor="White"
                                            Foreground="{StaticResource MainColor}"
                                            HeightRequest="35"
                                            HorizontalOptions="FillAndExpand"
                                            Source="{Binding Image}"
                                            WidthRequest="35" />
                                    </pancakeView:PancakeView>
                                    <Label
                                        x:Name="lblCategory"
                                        FontSize="12"
                                        HorizontalOptions="CenterAndExpand"
                                        HorizontalTextAlignment="Center"
                                        Style="{StaticResource LabelStyle}"
                                        Text="{Binding CategoryName}"
                                        TextColor="#2E2E2E"
                                        VerticalTextAlignment="Center"/> 

FlyoutHeader doesnot display a ContentView page

$
0
0

i am new to xamarin forms, i'm learning about Shell. i try to display a content view inside a shell flyout header but it doesnot display.
This is the shell page

<?xml version="1.0" encoding="utf-8" ?>
<Shell
    x:Class="XamarinShell.AppShell"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:controls="clr-namespace:XamarinShell.Controls"
    xmlns:d="http://xamarin.com/schemas/2014/forms/design"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:views="clr-namespace:XamarinShell.Views"
    HeightRequest="200"
    mc:Ignorable="d">
    <Shell.FlyoutHeader>
        <controls:FlyoutHeader/>
    </Shell.FlyoutHeader>
    <FlyoutItem Title="Phone Call" Icon="icons_phone.png">
        <ShellContent ContentTemplate="{DataTemplate views:PhoneCallPage}" />
    </FlyoutItem>
    <FlyoutItem Title="Settings" Icon="icons_settings.png">
        <ShellContent ContentTemplate="{DataTemplate views:SettingsPage}" />
    </FlyoutItem>
</Shell>

This is the header view

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
    x:Class="XamarinShell.Controls.FlyoutHeader"
    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">
    <ContentPage.Content>
        <Grid BackgroundColor="Black" HeightRequest="200">
            <Image
                Aspect="AspectFill"
                Opacity="0.6"
                Source="xamarinstore.jpg" />
            <Label
                FontAttributes="Bold"
                HorizontalTextAlignment="Center"
                Text="Animals"
                TextColor="White"
                VerticalTextAlignment="Center" />
        </Grid>
    </ContentPage.Content>
</ContentPage>

is there any Framework or Library for Photo editing ?

$
0
0

Hey , im looking for a framework or library support PCL for photo editing , i want to develop an app for image editing like drag text and drag photos and icons to the main photo ,
if there is an framework or library please share it , or what is the best practices to do this

xamarin build error

$
0
0

I have open 2017 project from 2019. Now i am getting this error. my Xamarin.Android.Support.Core.Utils version is 27.0.2 and Xamarin.Android.Support.v4 is 23.4.0.1

The type 'FileProvider' exists in both 'Xamarin.Android.Support.Core.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Need help and guidance for control design

$
0
0

Hi Everyone,

I am trying to design some controls but not sure how to design it.It will be helpful if i can achieve without any paid third party control.Any help and guidance will be highly appreciated.

The below control can scroll horizontally

The below control is listview but I want to draw those line in between the cells horizontally

Third control any similar graph control(Opensource)

Thanks in advance :smile:

PDF library compatible with Xamarin?

$
0
0

I have been looking/researching different kinds of PDF libraries which are compatible with Xamarin but apart from PDFTron and PSPDFKit which are ridiculously expensive, I haven't been able to find one. Ideally, the library would be compatible with Xamarin.Forms but I would definitely consider others which are Xamarin.IOS and Xamarin.Android compatible.

The library should have the abilities to: 1. Render the PDF to the screen 2. Decrypt a PDF 3. Add and keep track of annotations 4. Bookmark 5. Text search

Please feel free to suggest any libraries that meet these requirements.

Viewing all 77050 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>