Have you used XamlListBox plugin?
it seems like a very useful wigdet but because Xaml tags are contained within double brackets, whatever is in there is read "as is" which leaves no room for variables. So everything is static text.
At least the example provided by the developer of plugin uses Xaml in that way.
Plugin can be found here:
Here is what Xaml tags look like:
I attach screencapture of how it looks when a loop is applied.
Obviously text is just repeated. But what about variable text?
I tried appending variable string but it does not work.
Thanks for any help.
David R.
it seems like a very useful wigdet but because Xaml tags are contained within double brackets, whatever is in there is read "as is" which leaves no room for variables. So everything is static text.
At least the example provided by the developer of plugin uses Xaml in that way.
Plugin can be found here:
Here is what Xaml tags look like:
Code:
strXamlSample1 = [[ <Border BorderThickness="0"> <Grid TextElement.FontSize="13" VerticalAlignment="Top" Margin="0"> <Grid.ColumnDefinitions > <ColumnDefinition Width="3*"/> <ColumnDefinition Width="2*"/> <ColumnDefinition Width="150"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition/> </Grid.RowDefinitions> <StackPanel Margin="0, 0, 0, 0" Grid.Column="0"> <TextBlock Background="#95BE00" Padding="2" FontSize="12" FontWeight="Bold"> Item Details </TextBlock> <Grid Margin="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="70"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <StackPanel> <TextBlock Foreground="Black" FontWeight="Bold" Text="Item"/> <TextBlock Foreground="Black" FontWeight="Bold" Text="Notes"/> </StackPanel> <StackPanel Grid.Column = "1"> <TextBlock Foreground="Black" TextAlignment="Left" Text="Holland Pavers"/> <TextBlock TextAlignment="Left" TextWrapping="Wrap" Text="This is a long description of this item. This is a long description of this item."/> </StackPanel> </Grid> </StackPanel> <StackPanel Margin="0, 0, 0, 0" Grid.Column="1"> <TextBlock Background="#95BE00" Padding="2" FontSize="12" FontWeight="Bold">Unit \ Quantity</TextBlock> <StackPanel Margin="2"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="80"/> <ColumnDefinition Width="2*"/> </Grid.ColumnDefinitions> <StackPanel> <TextBlock>Unit</TextBlock> <TextBlock>Quantity</TextBlock> <TextBlock>Supplier</TextBlock> </StackPanel> <StackPanel Grid.Column = "1"> <TextBlock TextAlignment="Left" Text="Square Feet"/> <TextBlock TextAlignment="Left" Text="2,500"/> <TextBlock TextAlignment="Left" TextWrapping="Wrap">ABC Landscape Supplies</TextBlock> </StackPanel> </Grid> </StackPanel> </StackPanel> <StackPanel Margin="0, 0, 0, 0" Grid.Column="2"> <TextBlock Background="#95BE00" Padding="2" FontSize="12" FontWeight="Bold">Cost \ Price</TextBlock> <StackPanel Margin="2"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <StackPanel> <TextBlock>Unit Cost</TextBlock> <TextBlock>Total Cost</TextBlock> <TextBlock>Unit Price</TextBlock> <TextBlock>Total Price</TextBlock> </StackPanel> <StackPanel Grid.Column = "1"> <TextBlock TextAlignment="Right" Text="24.75"/> <TextBlock TextAlignment="Right" Text="2,559.57"/> <TextBlock TextAlignment="Right" Text="35.50"/> <TextBlock TextAlignment="Right" Text="3,201.97"/> </StackPanel> </Grid> </StackPanel> </StackPanel> </Grid> </Border> ]]
I attach screencapture of how it looks when a loop is applied.
Code:
min = 1; max = 50; for count = min, max do XamlListBox.AddItem("SampleLB", strXamlSample1, "", ""); end
I tried appending variable string but it does not work.
Thanks for any help.
David R.
Comment