Jdizzle
Jdizzle
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
Check out my app. It's on my profile here.
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
this ensures that all your textblocks are going to be the same size, I added wrapping, and have mutliple lines especially good for a message. The last thing is to have to user not being able to read messages.
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
No description
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
Hold on I do something...
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
MinHeight i believe
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
Then you do a MaxHeight on the Text Blocks
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <ListView ItemsSource="{x:Bind Items, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> <ListView.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding Name}" /> <TextBlock Grid.Column="1" Text="{Binding Message}" /> </Grid> </DataTemplate> </ListView.ItemTemplate> </ListView> </Grid>
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
No description
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
Another way list View
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
You TextBlocks are only going to occupy space enough for the text. That's why I added width to each.
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
public class MessageEntry { public string Name { get; set; } public string Message { get; set; } } public ObservableCollection<MessageEntry> Items { get; set; } = new();
public MainWindow() { this.InitializeComponent(); // add some items to the list using lori upsium Items.Add(new MessageEntry { Name = "Alice", Message = "Hi, nice to meet you!" }); Items.Add(new MessageEntry { Name = "Bob", Message = "Good morning, everyone!" }); Items.Add(new MessageEntry { Name = "Charlie", Message = "How's it going?" }); Items.Add(new MessageEntry { Name = "Diana", Message = "Looking forward to the weekend!" }); Items.Add(new MessageEntry { Name = "Eve", Message = "Let's catch up soon!" }); }
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
how does this look. ?
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
No description
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
you can add to the StackPanel Spacing="n" too
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
put Itemscontrol add proptery for HorizontialAlignment= Strech
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
Bindings will update to the number of data items you provide.
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
Additional I would control the follow of your information using linq on any list just do a .take(n)
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
To fill any space alignment is stretched
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
On your grid
34 replies
CC#
Created by jim.jam.1 on 5/20/2025 in #help
TextBlocks Not Filling Available Space
Horizontal Alignment and vertical centered too .
34 replies