SfNavigationDrawer causes unfocus on SearchBar

I am using following packages

XF: 2.5.0.19271-pre2 
Support Libraries: 2.5.4.0.2
SfNavigationDrawer: 15.3.0.33

If I have searchbar element within SfNavigationDrawer as below and it causes unfocus on searchbar. This is only happening because sfNavigationDrawer. thats why I reported here instad xamarin.

     <navigation:SfNavigationDrawer x:Name="navigationDrawer"  IsOpen="{Binding IsFilterOpen, Mode=TwoWay}" Position="Right" Transition="SlideOnTop" VerticalOptions="FillAndExpand"  DrawerHeaderHeight="70" DrawerFooterHeight="70">
            <navigation:SfNavigationDrawer.DrawerHeaderView>
             
            </navigation:SfNavigationDrawer.DrawerHeaderView>
            <navigation:SfNavigationDrawer.DrawerFooterView>
           
            </navigation:SfNavigationDrawer.DrawerFooterView>
            <navigation:SfNavigationDrawer.DrawerContentView>
               
            </navigation:SfNavigationDrawer.DrawerContentView>
            <navigation:SfNavigationDrawer.ContentView>
                <StackLayout Orientation="Vertical"  VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
              
                   
                    <SearchBar   x:Name="MyAutoComplete"  HorizontalOptions="FillAndExpand"   PlaceholderColor="Silver" Text="{Binding SearchText, Mode=OneWayToSource}" SearchCommand="{Binding FindCommand}"  />

                   
                </StackLayout>
            </navigation:SfNavigationDrawer.ContentView>
        </navigation:SfNavigationDrawer>


1 Reply

SK Selva Kumar  Veerakrishnan Syncfusion Team October 30, 2017 12:21 PM UTC

Hi Emil,

Thank you for contacting Syncfusion Support.

When the SearchBar is placed inside the StackLayout, we need to set height and width for the SearchBar to get it visible which has the same behavior when used in a simple content view also. We have modified the codes which you have given and prepared a sample from the same, please download it from the link given below.

Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/NavigationDrawer30OCt1611068457.zip  

Please let us know if you have any concern about this.

Regards,
Selva Kumar V.

Loader.
Up arrow icon