editor_editorwindow.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <Window Name="editorWindow" Title="Editor Window" Height="400" Width="850">
  2. <StackLayout Orientation="Horizontal" >
  3. <TreeView Name="twCrwLibrary" Width="200" BindingContext="{Bind CrwObjectModel}" Items="{Bind Root}" OnSelectionChanged="{Action UpdateCrwFilePreview}">
  4. <TreeView.ItemTemplate Items="{Bind Children}" ItemTemplate="{Bind ItemTemplate,Source=LogicalParent}">
  5. <StackLayout Orientation="Horizontal">
  6. <ImageWidget DesiredSize="16,16" Margins="2,2,2,2" ImageSource="{Bind Type,Converter=CrwIconConverter}" />
  7. <Label Text="{Bind Name}" Height="18"/>
  8. </StackLayout>
  9. </TreeView.ItemTemplate>
  10. </TreeView>
  11. <StackLayout Width="200" BindingContext="{Bind twCrwLibrary.SelectedItem,Source=Widget}" FitToChildren="Vertically" Margins="2,2,2,-1">
  12. <StackLayout Orientation="Horizontal">
  13. <Label Text="ID: " DesiredSize="{Bind MinimumSize,Source=Self}" />
  14. <Label Text="{Bind ID}" HorizontalTextAlign="Left" />
  15. </StackLayout>
  16. <StackLayout Orientation="Horizontal">
  17. <Label Text="Name: " DesiredSize="{Bind MinimumSize,Source=Self}" />
  18. <Label Text="{Bind Name}" />
  19. </StackLayout>
  20. <StackLayout Orientation="Horizontal">
  21. <Label Text="Type: " DesiredSize="{Bind MinimumSize,Source=Self}" />
  22. <Label Text="{Bind Type}" HorizontalTextAlign="Left" />
  23. </StackLayout>
  24. <StackLayout Orientation="Horizontal">
  25. <Label Text="Offset: " DesiredSize="{Bind MinimumSize,Source=Self}" />
  26. <Label Text="{Bind ContentOffset}" HorizontalTextAlign="Left" />
  27. </StackLayout>
  28. <StackLayout Orientation="Horizontal">
  29. <Label Text="Size: " DesiredSize="{Bind MinimumSize,Source=Self}" />
  30. <Label Text="{Bind ContentSize}" HorizontalTextAlign="Left" />
  31. </StackLayout>
  32. <ImageWidget DesiredSize="100, 100" ImageSource="{Bind BindingContext,Source=Self,Converter=CrwDescriptorToFullPathConverter}" />
  33. </StackLayout>
  34. </StackLayout>
  35. </Window>