Thanks for the psuedocode Skydiver, it's really helpful.
The DataTable is the data source for a datagrid on my UI, that's why I'm using a DataTable, I'm not using a database. Maybe I'm using the wrong thing for the wrong reason?
I'm trying to do this but my data is in a datatable not an array. I've been trying for ages to figure how to copy the whole thing into a 2d array so that my situation more closely matches your code. Could you tell or show me how to copy it into an array?
I could send you the titles of the threads that can be marked solved if you want since I can't do it myself. I'm trying to follow the rules but I'm not being told off by mods for leaving my threads hanging so I'm wondering if anyone actually cares or not.
Wow, thank you very much for taking the time to do that, this is gonna give me something to chew on for a while.
If anyone has an answer there's one small thing that leaves me scratching my head, why use a scrollviewer? It seems unnecessary, is there a reason it's there?
I tried to do that but I didn't get anywhere with it :/
I still am incapable of doing this so, any help would be nice, thanks. Take your time though, there's no rush.
I dread to think what wouldn't be straightfoward to you. But yes, it's the binding route I want. The textblock will mirror...
I do try to do that, I think I have been? Sometimes it can seem like I've left a thread hanging but that's only because I plan on coming back to it at some point. Sometimes I get an answer I can't do much with but I know that I'll be able to grasp it much better if I come back to it after...
I don't know if it resolved the problem, I have to solve the other problem first before I can tell.
I didn't realize I could mark threads as solved, I'll go through my posts and do that to all that are resolved, I haven't done that even once yet. Could you tell me how to do it?
Here is an image to help clarify my question.
Three TextBoxes and a TextBlock. I want the TextBlock to be bound to one TextBox and mirror it's contents, but, if I mouse over another TextBox the binding will change so the TextBlock mirrors the Text of that TextBox instead. Mousing over a...
At first I didn't understand what you meant, but for some reason after seeing that "Hello, World!" image again I had a moment of inspiration and am quite certain I solved the problem. Unfortunately I ran into another problem before I could confirm it, but that's a question for another post...
Forget my last question, what about this. How do I add one extra "element" (I don't know the correct terminology).
If you look at the image above, how do I add one extra "square" on the end that will take up both "rows". Its content will be a simple binding, I don't need any help with that...
OK, I modified them like so:
get => _banner.Text;
set
{
_banner.Text = value;
NotifyPropertyChanged();
NotifyPropertyChanged("Chars");
UpdateNextChars();
NotifyPropertyChanged("NextChars");
}
for (int i = 0; i < Chars.Count; i++)
{
NextChars.Add(Chars[i]);
}
Visually...
My idea hasn't worked. Here is how the code looks:
<Window x:Class="BannerApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"...
Oh, I didn't think of putting a second label in the border, I feel a bit stupid for that. I'm gonna play around with this and see if I can make it happen.
OK great.
I'm trying to modify/play around with your example. What I want to do is make another banner right below the first one, the same in every way except it will show the next letter of the alphabet, so if I type A I'll see two "boxes", one on top of the other, A on top and B on the...
I have another question about this line:
TextBlock Text="{Binding}"
If the banner class contained more then just one property would you need to explicity bind to that property instead of just using the binding keyword alone?
I just realized why I couldn't see .net core. I'm very stupid yes, but I've been making .net framework wpf apps without realizing it. From now on, I'll choose .net core instead. Such a simple thing but I didn't know it.
I don't know how to use .net core 3, my target frameworks are all versions of .net framework, not .net core.
I can no longer show any implementation, it doesn't exist. When this thread didn't get any replies for a while I figured no one could/would answer and so I removed the combobox. This...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.