XAML to C# Markup #2331
-
I'm really struggling to convert XAML to C# Markup. Please could someone help me by converting the following to C# Markup (from the PeopleApp sample)
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @rvwilliams88 Here is an example of a FeedView with ListView using C# Markup for the TubePlayer sample app: https://github.com/unoplatform/Uno.Samples/blob/318e4215d9694fc4e10e952ac24d539c2d33ad43/reference/TubePlayer/src/TubePlayer/Presentation/MainPage.cs#L80 Let us know if with that you have a better idea of the C# Markup syntax or if you need additional support. Note: Some of the samples in our documentation were created using XAML markup before we added support for C# Markup. We are continually improving our documentation to include more samples and examples for both XAML and C# Markup for comparison. (cc @dansiegel, @eriklimakc) |
Beta Was this translation helpful? Give feedback.
-
Thank you that was really useful. I now have the c# version running. My next challenges are to change the list source to a database and then to replace the list view with a combo box. Finally I want to use the selected item to retrieve and display related info from the database.
Regards
Richard
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Agnès ZITTE ***@***.***>
Sent: Saturday, June 8, 2024 2:22:07 AM
To: unoplatform/uno ***@***.***>
Cc: rvwilliams88 ***@***.***>; Mention ***@***.***>
Subject: Re: [unoplatform/uno] XAML to C# Markup (Discussion unoplatform/uno#17036)
Hi @rvwilliams88<https://github.com/rvwilliams88> Here is an example of a FeedView with ListView using C# Markup for the TubePlayer sample app<https://github.com/unoplatform/Uno.Samples/tree/master/reference/TubePlayer>:
https://github.com/unoplatform/Uno.Samples/blob/318e4215d9694fc4e10e952ac24d539c2d33ad43/reference/TubePlayer/src/TubePlayer/Presentation/MainPage.cs#L80
Let us know if with that you have a better idea or if you need additional support.
Note: Some of the samples in our documentation were created using XAML markup before we added support for C# Markup. We are continually improving our documentation to include more samples and examples for both XAML and C# Markup.
Thank you for the feedback; it helps us identify and address these gaps.
—
Reply to this email directly, view it on GitHub<https://github.com/unoplatform/uno/discussions/17036#discussioncomment-9709049>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2YPRSRNDWCTQ6FCNBYTE7DZGJMD7AVCNFSM6AAAAABI6VX5N2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOMBZGA2DS>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Agnès
Yes, I've hit a problem introducing a database for the source of 'people'. See discussion 17072.
Regards
Richard.
****************************************************
Richard Williams
email: ***@***.******@***.***>
mobile: 07981 734697
****************************************************
From: Agnès ZITTE ***@***.***>
Sent: Monday, June 10, 2024 8:28 PM
To: unoplatform/uno.extensions ***@***.***>
Cc: rvwilliams88 ***@***.***>; Mention ***@***.***>
Subject: Re: [unoplatform/uno.extensions] XAML to C# Markup (Discussion #2331)
@rvwilliams88<https://github.com/rvwilliams88> let us know if you need additional info or support for the other changes
-
Reply to this email directly, view it on GitHub<#2331 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2YPRSTZBHVRUTKDZTTYDJLZGX44PAVCNFSM6AAAAABJC5HVD2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOMZRGA2TS>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
Hi @rvwilliams88 Here is an example of a FeedView with ListView using C# Markup for the TubePlayer sample app:
https://github.com/unoplatform/Uno.Samples/blob/318e4215d9694fc4e10e952ac24d539c2d33ad43/reference/TubePlayer/src/TubePlayer/Presentation/MainPage.cs#L80
Here is the full related tutorial for this sample: https://platform.uno/docs/articles/external/workshops/tube-player/README.html
Let us know if with that you have a better idea of the C# Markup syntax or if you need additional support.
Note: Some of the samples in our documentation were created using XAML markup before we added support for C# Markup. We are continually improving our documentation to include more samples and exam…