First, This is literally my first time using Xamarin and I'm finding this particular issue quite frustrating. If I miss out any basic info, please bear with me, I have done my best.
I am trying to create a cross-platform app using a blank app template.
When I load up the .xaml files the designer view is not there. Most guides suggest this will be in the bottom right of the screen. I have checked in Tools > Options > XAML designer and the option to use this is ticked.
I have tried just creating an Android app instead of cross-platform but with the same results. I noticed there were no emulators in my android emulator manager so created a basic Nexus 5, still no difference.
I'm really stuck with this now and it's frustrating to fall at the first hurdle like this, am I doing something really simple wrong here?
I'm using VS 2017 V.15.3.3 and installed Xamarin yesterday
Thanks.
In order to use the 'designer' which I call Previewer, your XAML files need to be compiled.
Please note that the previewer is really buggy and there is yet to drag-n-drop tool for designing XAML files.
However, you can use packages such as LiveXAML (paid) or free alternatives so that you can hot-reload your XAML designs.
Related
I have a Xamarin Forms application that is currently only targeting the Android platform. For this application, I need to store some application settings. For this, I have looked at the preferences capability of the Xamarin Essentials library.
After reading the documentation (here), there are a couple of things that I do not understand.
First, the section titled "Platform Implementation Specifics" (for Android) states the following:
All data is stored into Shared Preferences. If no sharedName is
specified the default shared preferences are used, else the name is
used to get a private shared preferences with the specified name.
Following the link in this section, it seems that there are couple of different ways to get preferences (shared or not?). However, looking at the API for the Xamarin Essentials library, I do not see how this is done / understand the concept. Can someone elaborate on this?
Second, from reading the section titled "Integrate with System Settings", it sounds like you have the option to tie preferences into system settings. To me, this sounds like I can change a preference setting without actually being inside of the application (from the Settings widget). Is this correct? If so, how can I set this up from Xamarin Forms? Following the link it appears that I would need to define a settings screen. I am not sure what is required / where to place everything. Can someone elaborate on this? Can someone point me to a code sample?
I have searched the internet for 2 days having found no answer to the below requirement. What i found most were GeckoFX and CefSharp which are external packages and not installed libraries. How can this be done?
I have been asked to do the following:
Use a suitable library function out of the set of libraries installed with the .NET platform. You must not use the C# WebBrowser class but perform the required HTTP-level communication directly from within your code. The code must clearly identify the HTTP-level client-server communication and must explicitly manage Home page, Favourite, History Lists and Tabs.
Optionally, you may add functionality to render a web page, but there must be an option to disable this functionality and to show only the raw HTML that has been retrieved.
Thanks
What have you attempted so far and what problem are you encountering?
Maybe read this first :)
Currently it sounds like you have been given an interview or homework task that you dont know how to solve. If so, then you should have some idea on where to start or you are in the wrong course or job interview. If you want help, then try to solve the question yourself and ask for help when you are stuck. Tell us what you have tried, show the code you currently have and let us know where you are stuck or what doesnt work as expected.
Where are you stuck? Fetching the webpage? Building the user interface?
I need to work on Action Script project. I need to generate a swiff file by creating an action script project using flex sdk . I dont know how to start this thing. I have installed flex 4.5.1 and I know how to create flex project. Can u please suggest me some tutorials for working with action script project using flex sdk.
Thanks.....
well, there are lots of free tutorials in the internet, for example on youtube. you wouldn't be able to really learn actionscript but you will understand basics, so learning will be much easier. here, take a look. also, i can strongly recommend lynda's training courses -- yes, you have to pay for them, but they've got free trial membership. also, take a look at google, you know... you don't expect someone actually to teach you personally, don't you?...
I plan to build a database management system using Grails as the main framework. On the client side, I'm thinking whether to use dojo or flex to make a nice front end.
Could some experts here enlighten me on the pros and cons of choosing either, or both?
or any other options?
thanks!
I tried using Dojo in a project and even brought a few books. And while Dojo Looks good I found that JQuery and JQuery-UI was a lot lighter and worked faster.
This is just my opinion and it may help you.
From the description of the flex plugin at http://www.grails.org/Flex+Plugin
"This plugin was created as an experiment to prove that it's possible to communicate from Flex to Grails services without any configuration in Flex. There
is no plan to add functionality or whatsoever. It's not sure if the plugin works in production mode as it is only tested in development mode. This plugin
can be seen as an example on how to integrate Flex and Grails with Convention over Configuration in mind."
There is no scaffolding generation for flex, see this bug
Another disadvantage of Flex is its lack of accessibility for screen reader users with the default configuration. There is some work being done to address this but it isn't publically available yet.
I don't have experience with DOJO but according to this link if you use the standard Grails Ajax tags you should be able to switch libraries with out to much trouble and won't be tied to Dojo. For fancy UI stuff such as tabbed interfaces and data tables I've found GrailsUI works well for me. A demo project showing its features can be found at http://code.google.com/p/guidemo/ although you'll have to check the code out to run it.
I am developing an information-management application with Dojo 1.9.2 and Grails 2.3.9 (lots of simle/complex forms, listing screens...etc). The application has a single-page interface as well (a workspace) which was the primary reason for a heavy JavaScript library.
Overall, Dojo is fairly suitable for this kind of workload and I haven't bumped into any show-stoppers yet.
I needed to do a lot of work on integrating the Dojox DataGrid into the application (extending QueryReadStore to fit with Grails better...etc) and a set of custom widget extensions (e.g. a real, working AutoComplete).
After this larger, initial integration work is done, you can expect a fairly smooth ride.
I'm creating a little special purpose view engine for asp.net mvc. That goes well enough. But i've been looking around to find information on how to somehow add intellisense for the C# code embedded in my view.
I can see Spark does that, but going through the sources, I still can't see how. And WebForms view engine does it - not surprisingly - to perfection. Does anyone have any suggestions or links or anything related on how to do that?
Update: Just to let readers know, I'm still looking for a solution! So keep the answers coming :) ... I will post back here too, whenever I find out more.
/Asger
Looking at the Spark source, it appears that he is hosting his editor within the Visual Studio 2008 IDE, in a way that he is getting the C# intellisense for free.
You might want to check out the Visual Studio 2008 SDK 1.1, and see if there's something in there that will help you.
http://www.microsoft.com/downloads/details.aspx?familyid=59EC6EC3-4273-48A3-BA25-DC925A45584D&displaylang=en
You might find some clues here:
How do I add intellisense to my application?
Googling this is maddeningly difficult, as you get all kinds of hits on enabling intellisense, how wonderful intellisense is, how bad intellisense is, etc.