SiteTasks.xaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <timesheets:SitePage
  3. xmlns:timesheets="clr-namespace:comal.timesheets"
  4. xmlns="http://xamarin.com/schemas/2014/forms"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  6. xmlns:buttons="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms"
  7. xmlns:generic="clr-namespace:System.Collections.Generic;assembly=mscorlib"
  8. x:Class="comal.timesheets.SiteTasks">
  9. <timesheets:SitePage.PageContent>
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="Auto"/>
  14. </Grid.RowDefinitions>
  15. <timesheets:MobileGrid
  16. x:Name="Tasks"
  17. Grid.Row="0"
  18. SelectionMode="Multiple"
  19. PullToRefresh="True"
  20. RefreshRequested="Tasks_OnRefreshRequested"
  21. SelectionChanged="Tasks_OnSelectionChanged"
  22. />
  23. <buttons:SfSegmentedControl
  24. x:Name="TaskType"
  25. Margin="10,0"
  26. CornerRadius="15"
  27. SegmentHeight="50"
  28. BorderColor="Transparent"
  29. SelectedIndex="1"
  30. Color="#048EAC"
  31. FontSize="22"
  32. DisplayMode="Text"
  33. VisibleSegmentsCount="3"
  34. FontColor="#FFFFFF"
  35. SelectionTextColor="#048EAC"
  36. VerticalOptions="Center"
  37. HorizontalOptions="Center"
  38. SelectionChanged="TaskType_OnSelectionChanged">
  39. <generic:List x:TypeArguments="x:String">
  40. <x:String>New</x:String>
  41. <x:String>Current</x:String>
  42. <x:String>Waiting</x:String>
  43. <x:String>Completed</x:String>
  44. </generic:List>
  45. </buttons:SfSegmentedControl>
  46. </Grid>
  47. </timesheets:SitePage.PageContent>
  48. </timesheets:SitePage>