Left toolbar with icons and company logo on right

3 posts, 0 answers
  1. Prava kafle
    Prava kafle avatar
    212 posts
    Member since:
    Apr 2010

    Posted 03 Oct Link to this post

    Hi,
    I am trying to create a toolbar item and if I add an icon it crashes. Can someone guide me on this?. If possible I would like to position this on the left and application logo on right. Is there any sample or documentation on this?
      <ContentPage.ToolbarItems>
        <ToolbarItem Activated="OnToolbarButtonClick"  Text="Open SideDrawer" Icon="hamburgerbuttonicon.png"    >
          <ToolbarItem.Icon>
               <OnPlatform x:TypeArguments="FileImageSource"
                            iOS="hamburgerButtonIcon.png"
                            Android="hamburgerbuttonicon.png"
                            WinPhone="Assets/hamburgerButtonIcon.png" />
          </ToolbarItem.Icon>
        </ToolbarItem>
      </ContentPage.ToolbarItems>

    Thanks,
    Prava

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 05 Oct Link to this post

    Hello Prava,

    Please note that you have reached Telerik forums. The XamarinForms ContentPage is not part of our UI for XamarinFomrs suite this is why we cannot give you an answer of your question.

    However, you can take a look at the source code of our QSF application. In it we created our own navigation bar that serves our needs. And more importantly it looks identical throughout all platforms.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 05 Oct in reply to Prava kafle Link to this post

    This isn't supported at the moment in Forms.

    There's enhancements coming in Forms 2.3 & 2.4 which may make this possible. You'd have to explore custom renderers if you want to achieve this with Forms 2.3.2 or earlier.

    As Pavel says, this is the forum you want.

    https://forums.xamarin.com/categories/xamarin-forms

     

     

Back to Top