locked
UWP Development RRS feed

  • Question

  • Hey

    I always used vb.net and wanna migrate to UWP apps, got 2 questions:

    1. When installing vs.net which options I should check for UWP development in vb.net?

    2. Where to find a simple hello world UWP app to get strted?

    thanks :)

    Saturday, July 11, 2020 9:07 AM

All replies

    • Proposed as answer by valat Saturday, July 11, 2020 11:13 AM
    Saturday, July 11, 2020 9:12 AM
  • Create a "Hello, world" app (XAML)  

    Thanks, one question: is it possible to write those apps in vb.net?

    Since your 2nd link just have C# and C++ samples?


    Saturday, July 11, 2020 9:43 AM
  • Create a "Hello, world" app (XAML)  

    Thanks, one question: is it possible to write those apps in vb.net?

    Since your 2nd link just have C# and C++ samples?


    It is exactly the same thing in VB.NET, the main code being in XAML

    And the generated code for events for example is in VB.NET 

    A test with a button + click =>

    Public NotInheritable Class MainPage
        Inherits Page
    
        Private Async Sub button_Click(sender As Object, e As RoutedEventArgs) Handles button.Click
            Dim dlg = New Windows.UI.Popups.MessageDialog("Hello")
            Await dlg.ShowAsync()
        End Sub
    End Class


    Saturday, July 11, 2020 9:55 AM
  • Hello,

    There are plenty of code samples found on the following page

    https://github.com/microsoft/Windows-universal-samples/tree/master/Samples

    Not all of the samples have a VB.NET sample. I picked a random example

    https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/BasicInput

    Downside for VB.NET developers is that the language is still supported but code samples are C# first, C++ second, VB.NET a far third place and that is just going to get worst in the future.

    If you plan on coding now is the time to start learning C#. I knew this when Visual Studio first arrived as it's roots were in Borland Delphi which was based in Object Pascal which is C'is. 


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Saturday, July 11, 2020 10:48 AM
  • Before you get too far, be sure to review the limitations of UWP:

    https://stackoverflow.com/questions/36286806/uwp-limitations-in-desktop-apps#:~:text=UWP%20apps%20have%20less%20access,the%20system%20and%20user%20data.

    https://www.thurrott.com/dev/206351/microsoft-confirms-uwp-is-not-the-future-of-windows-apps

    Just because it's newer doesn't mean that it's the next logical step for your application.  If it's a desktop application, then you're going to have major challenges if you expect it to run as a UWP application.  For instance, you won't be able to read most of the user's file system.

    Remember that UWP was originally intended for mobile apps and has certain limitations built in from the ground up because of that. Also note that Microsoft has all but given up the mobile market - so UWP may be one of many technologies that Microsoft gives up after a few years since the its market which UWP was intended for has evaporated.

    Also, most UWP applications are sold through the Windows Store - say goodbye to a third of your revenue (the 'tiny' cut that Microsoft wants).


    Convert between VB, C#, C++, & Java (http://www.tangiblesoftwaresolutions.com)
    Instant C# - VB to C# Converter
    Instant VB - C# to VB Converter



    Saturday, July 11, 2020 2:22 PM