Hello John,
About your first question, we can use the Image variable of the NavBar control. You can choose an 30px image in order to be used at the left of the NavBar, in which they called "NavBar's brand".
About your second question, certainly, apparently we can apply some gradient style to a NabVar, for example, by using the below code in the "Inline CSS" option of the app, suposing we have a "NavBar1" control in the app.
Hello John,
Yes; please, use the app's File manager to add an specific image or a directory: then you can use the app's image's path into the Image variable of the "NavBar", even in designtime, that is, using the "NavBar" object inspector.
Hello John,
Yes; the image of the "NavBar" control must be 30px... maybe a bit greater, but then the browser must scale it. It's the designed size for the control, not something that we can change... if we don't want to "break" the control in some way.
About your second question, please, take a look at the "NavBar" sample. Open that sample and see in the Menu -> App -> App's files manager. As you can see in the Images tab, we include certain image that is also included by the sample (see the sample's folder).
Then take a look at the NavBar control's Image variable: you can see that we specify the image's local path in that variable.
Hello John,
Maybe you can match the "brand image" using Javascript or CSS, and then yes, change their size. But maybe it's not a good idea, because, when change the image size, also the control's size change, and, this can cause some posible issues.
I think the point here is to consider that image like for what is designed: it's a "brand image"... not a "logo", nor another kind of image... that is, maybe it's a better idea to prepare a "brand image" (maybe specific for the NavBar) based in the other image or logo.
Please, post here if you have any further question about this! The above is my opinion... and certainly we can try to change the image size using Javascript and / or CSS, so, we can do try it if you wanted... but consider the above, which is my honest opinion.
Hello John,
Look at the below CSS code, which we can place in the Inline CSS option of the app:
If you want to apply other rules to the NavBar's brand image... that's can be the place.
Hello John,
Take a look at the Navbar.Image value. You will be able to change the image programatically after having checked if the the menu has some content.
About the Navbar's position, it is the .Placement value (take a look at the Navbar example or the Help file.
Good luck :)Hello John,
To hide the menu toggler we can use some CSS like the below:
However, if we don't want a menu... maybe we no need a NavBar at all, but a HTML Content or Container control... or a combination of these...
About to place a NavBar at the bottom, is possible, even we can have two NavBars, one at the top and one at the bottom, take a look at the NavBar's Placement variable and set to "fixed-bottom", for example.
Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.