MobileSearchBar.xaml 1.2 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:timesheets="clr-namespace:comal.timesheets"
  5. x:Class="comal.timesheets.MobileSearchBar"
  6. BackgroundColor="Transparent">
  7. <ContentView.ControlTemplate>
  8. <ControlTemplate x:DataType="timesheets:MobileSearchBar">
  9. <Frame BorderColor="Transparent" BackgroundColor="Transparent" Padding="5" Margin="0">
  10. <Frame CornerRadius="5" Padding="0,0,0,2" Margin="2,2,2,0" BackgroundColor="{Binding TextBackgroundColor}">
  11. <SearchBar
  12. x:Name="_search"
  13. IsVisible="true"
  14. Placeholder="{Binding PlaceHolder}"
  15. TextChanged="_search_OnTextChanged"
  16. FontSize="{Binding TextSize}"
  17. TextColor="{Binding TextColor}"
  18. BackgroundColor="{Binding TextBackgroundColor}"
  19. PlaceholderColor="{Binding TextBackgroundColor}"/>
  20. </Frame>
  21. </Frame>
  22. </ControlTemplate>
  23. </ContentView.ControlTemplate>
  24. </ContentView>