I am Learning Code’s cover photo
I am Learning Code

I am Learning Code

Software Development

Making business offline to online

About us

Making things simpler, creating an actionable and comprehensive guide to move offline business online. If you encounter any issues, feel free to ask for further assistance! 😊

Industry
Software Development
Company size
1 employee
Type
Partnership

Updates

  • I'm starting a new page with Blazor and Windows Authentication and identified the current user viewing the page/component. For a Razor Page, the current user name was accessed with Context.User.Identity.Name, but that doesn't seem to work in a Blazor component. I've tried injecting HttpContext into the component but the Context is null at runtime. As a bonus, I will eventually want to incorporate this into Startup.cs so I only need to get the username once and can leverage a corporate user class (with EF Core) for my applications. Answers tailored to that use case would also be appreciated.

  • Create MediaCapture and its settings. Attempt to get the back camera if one is available, but use any camera device if not. Register for a notification when video recording has reached the maximum time and when something goes wrong. Initialize MediaCapture. If initialization succeeded, start the preview. Figure out where the camera is located. No information on the location of the camera, assume it's an external camera, not integrated on the device. Camera is fixed on the device. Only mirror the preview if the camera is on the front panel. Initialized rotationHelper.

  • Rotate the buttons in the UI to match the rotation of the device. The RenderTransform is safe to use (i.e. it won't cause layout issues) in this case, because these buttons have a 1:1 aspect ratio. Prevent the device from sleeping while the preview is running. Set the preview source in the UI and mirror it if necessary. Start the preview. Initialize the preview to the current orientation. Only need to update the orientation if the camera is mounted on the device. Add rotation metadata to the preview stream to make sure the aspect ratio / dimensions match when rendering and getting preview frames. Stop the preview. Use the dispatcher because this method is sometimes called from non-UI threads. Cleanup the UI. Allow the device screen to sleep now that the preview is stopped.

  • This is a notification that recording has to stop, and the app is expected to finalize the recording. Useful to know when to initialize/clean up the camera. Handling of this event is included for completenes, as it will only fire when navigating between pages and this sample only includes one page

  • The main container with two rows. The first row had a height of “Auto” (adjusted to content), and the second row took up the remaining space. Positioned in the first row, with a background color set to a dynamic resource BigImageBackgroundColor and padding of 40 units at the top. It contained an image with a source coin.png and a height request of 85 units. Positioned in the second row of the grid, allowing vertical scrolling. Inside the ScrollView, with vertical orientation, padding of 16 units on the sides and 40 units at the top, and spacing of 10 units between elements. Displayed formatted text with three spans, each using the xct:Translate extension for localization. Displays text using the xct:Translate extension for localization. Three buttons with text and command parameters set using the xct:Translate extension and static resources from products:InAppProducts.

  • ̊The journey from app idea to launch is a dynamic and challenging process, but it can also be incredibly rewarding. By following these steps and staying dedicated to creating a valuable and user-friendly app, you can bring your vision to life and contribute to the ever-evolving world of mobile applications. Mastering the mobile app development process ensures that your app not only meets user needs but also stands out in the competitive app marketplace. ̊Thorough testing is critical to ensure your app functions flawlessly. Test on various devices and under different conditions, addressing any issues that arise. Common testing types include Functional TestingChecking if all features work as intended. Usability TestingEvaluating how easy it is for users to navigate and use your app Performance TestingMeasuring your app’s speed and responsiveness. Security Testing Identifying and mitigating potential security vulnerabilities.