remi.nz
✅ Help with Tooltip content binding
I have created a UserControl with dependency Property to accept the string for the TextBlock within my ToolTip
XAML:
Code-Behind:
Adding it to another UserControl:
The ToolTipVisibility works just fine but the CaptionText isn't
8 replies
✅ Help with XAML
I have a problem while designing my UI, I'm creating a panel (the app has dynamic UI so that it can fit any resolution) for the sake of simplicity let's say I have a bunch of buttons (quite big in size) inside a wrap panel so that the content is adjusted when the app is resized, but the problem is if the app is resized and there is not enough space to hold a button on the same row of the wrap panel it leaves a blank space until there is enough room to fit that button, so my question is, is there any way I can somehow extend the buttons to fill out that gap and then return to their original width once there is enough room to hold one more button in the wrap panel?
12 replies
✅ Help with Data Bindings
So, now I'm trying to create a Task Manager clone, just the graphs part for now. So, I have a UserControl called Graph.xaml which is basically a graph and a text box. Then I have a Home.xaml which is my View and then HomeVM which is obviously my ViewModel. Now, I have an issue. In my Graph.xaml I've created a Binding called GraphData and then through Home.xaml I'm trying to define that GraphData so that my User Control remains re-usable and I use it for other graphs too.
Home.xaml
and in my Graph.xaml, I've put it like this
but when I debug the program, it says that Graph.xaml is looking for "GraphData" in HomeVM and it's unable to find it, but instead it should look for "GraphDataCPU" as defined in Home.xaml, why is it not working?
48 replies
✅ Help needed with WPF GUI
Hello, Good Day!
Overview
I just started with WPF a few weeks ago so I'm still quite new to all this, for now I've been trying to create a dashboard UI for my project which has been going good so far, in my dashboard UI I have a grid divided into 3 rows (1 header, 1 footer and 1 for content) and 2 columns (1 for sidebar and one for content). I've created an interactive sidebar, so when you hover over to it, it'll auto expand and show you the button names and everything, when it's collapsed it'll show only the icons of those buttons.
Problem
So, as the sidebar is interactive, it auto expands when mouse over, but if the main window is resized it and the column 1 (the one with sidebar) has enough space to hold the expanded form of the sidebar, it will expand the sidebar to it's expanded state and will remove the mouse over animations. But if the sidebar's column's width is greater than the collapsed width but still lesser than the expanded width, it leaves a space between the sidebar and the content column, which gives a very inconsistent look to my app. So is there any way to overcome this issue? I'm attaching my xaml and code behind for your better understanding.
177 replies