| 123456789101112131415161718192021222324252627282930313233343536 |
- <Window Name="editorWindow" Title="Editor Window" Height="400" Width="850">
- <StackLayout Orientation="Horizontal" >
- <TreeView Name="twCrwLibrary" Width="200" BindingContext="{Bind CrwObjectModel}" Items="{Bind Root}" OnSelectionChanged="{Action UpdateCrwFilePreview}">
- <TreeView.ItemTemplate Items="{Bind Children}" ItemTemplate="{Bind ItemTemplate,Source=LogicalParent}">
- <StackLayout Orientation="Horizontal">
- <ImageWidget DesiredSize="16,16" Margins="2,2,2,2" ImageSource="{Bind Type,Converter=CrwIconConverter}" />
- <Label Text="{Bind Name}" Height="18"/>
- </StackLayout>
- </TreeView.ItemTemplate>
- </TreeView>
-
- <StackLayout Width="200" BindingContext="{Bind twCrwLibrary.SelectedItem,Source=Widget}" FitToChildren="Vertically" Margins="2,2,2,-1">
- <StackLayout Orientation="Horizontal">
- <Label Text="ID: " DesiredSize="{Bind MinimumSize,Source=Self}" />
- <Label Text="{Bind ID}" HorizontalTextAlign="Left" />
- </StackLayout>
- <StackLayout Orientation="Horizontal">
- <Label Text="Name: " DesiredSize="{Bind MinimumSize,Source=Self}" />
- <Label Text="{Bind Name}" />
- </StackLayout>
- <StackLayout Orientation="Horizontal">
- <Label Text="Type: " DesiredSize="{Bind MinimumSize,Source=Self}" />
- <Label Text="{Bind Type}" HorizontalTextAlign="Left" />
- </StackLayout>
- <StackLayout Orientation="Horizontal">
- <Label Text="Offset: " DesiredSize="{Bind MinimumSize,Source=Self}" />
- <Label Text="{Bind ContentOffset}" HorizontalTextAlign="Left" />
- </StackLayout>
- <StackLayout Orientation="Horizontal">
- <Label Text="Size: " DesiredSize="{Bind MinimumSize,Source=Self}" />
- <Label Text="{Bind ContentSize}" HorizontalTextAlign="Left" />
- </StackLayout>
- <ImageWidget DesiredSize="100, 100" ImageSource="{Bind BindingContext,Source=Self,Converter=CrwDescriptorToFullPathConverter}" />
- </StackLayout>
- </StackLayout>
- </Window>
|