WPF Layout (I suck still)
Trying to make a window look like the one in the attachment I did in Adobe XD.
Added is what I get.
I'm so close! Removed the stack panels as @leowest said to.
Thank you ❤️


95 Replies

Discord won't let me go post big code blocks w/o Nitro
$paste
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
good point, this app i wont put public on github because its not meant to be open
BlazeBin - vieagyxnfkpn
A tool for sharing your source code with the world!
I could remove the background on grid, was experimenting heh
I could drag/drop stuff but that's not how WPF is designed even the tools exist
so what is your question?
updated this


trying to get it to be more like this from my Adobe XD mockup
but added the 2 buttons as an after thought
so they would still be next to the input box
that is 5 rows in a grid
and u would have to add some click events to input I suppose for it to open the browser dialog or something
and if u dont specify a width in your inputbox it will take the size of the row
to modify the window u would use windowchrome
you can make rounded corners etc
yep im aware of the commands, didnt do them yet 🙂
even though I have fluent theme?
I mean if ur happy with it
or is Fluent a mess?
It was recommended by a vtuber
I mean it certainly misses certain things from the orignal but but wouldnt really say its a mess
and it was added to .net 9 for a reason
ah
I'm afraid im mixing and mashing themes/schemes now :/

getting closer 😄
thoughts
just removed everything that was annoying me
Why 6 rows?
oh, one per control
well i figured you still wanna be able to resize the window
well no, not really
maybe, haven't decided yet
there's basically 2 "unoccupied" rows which the text boxes span into
the idea was that text boxes may expand downwards but can never get smaller than the buttons?
but who knows if my wpf knowledge is still good enough
I am as bad don't worry, it took me 15 years to be pulled from WinForms
had to be dragged kicking and screaming 😂

progress
im playing with the example you did
the input box is spanning 1 column too much
ok fixed
ah yeah i guess you can just remove the span

i did
the rest is because you use margins for whatever reason

yeah but w/o margins
things get squished together
w/o margins:

what i personally did in the past (idk if others do it differently) is just add another column in between there
you have to adjust all the column numbers on the other controls of course
is that even common?
i dont wanna get fired if i get a job 😦
for example
but yeah you can work with margins
i mean it's logicial ^
just make sure you only use left and/or right
i think either
5,0
or 0,5
will apply to only the sidesok, good point
forgot, shorthand

well its closer
cuz you made it
i suck at this 😦
if i had $ id hire a designer, im a backend guy in C#
idk what's with the generate button, but you removed some spans that i'd probably keep. namely rowspan 2 on both textboxes and columnspan 2 on the output textbox
other than that :idk:

yeah i need to re-add span to output, 1 sec
input is fine because i need those buttons
rowspan on the input textbox. not columnspan
on which control?
this is where winforms is king tbh
guess you're in good hands
HashInput
TextBox
and HashOutput
TextBox
you drag/drop, resize
they're doing ok i think
ok
and lose the ability to resize the window :p
:harold:
ffs
i give up
i want the window to be fluid
not everyone has a 4K monitor
reactive?
or what do you mean by fluid
i dont know
i want it to be whatever 2025 standards are in C#
as mentioned before, i am not a designer

2025 standards is probably not to use c# for desktop dev
if i could take this and export to WPF id do it
but idk i'm not one either
i did it in XD
wtf is C# for now then?
beans?
this entire server IS C#
i dont want a damn web app that people get high off of today
there's a lot more you can code other than desktop apps lol
its so juvenile and boring
this is why every app looks like every other app
if i wanted a world of grays and blacks, i would remove my eyeballs
and put in a camera
we need colors, style etc
bad enough i gotta follow 'trends' or be out of the loop
sorry, i've been given so many ways to do stuff and nothing seems to be standard and its confusing to a adhd person like me
there's no one correct answer
otherwise there wouldn't be this many frameworks to do everything in


now it's ass :/
yeah i just copy pasted this into a new wpf project and it worked without changes (though missing the margins of course)

yeah im sure it works fine
i dont need a giant box like that
its a 1 line input and output on both
i appreciate your help
it looks way bette than before if anything 🙂
i personally just envision the
<Grid>
as a, well, literal grid, in my head. i put controls into the individual cells, make some controls span over multiple cells if i need, and that's already 90% of your layout
everything else is fine tuning
is it passable?
not sure why i have a gap between output and the output textbox
well, that's all for you to decide, you said no one else will use the app :p
people will but its not gonna be a corporate/sold app, its game modding
like 2k games 😄
competiting with other big modders so i can become more than infamous
bit of a lofty goal
also Adobe XD is discontinued apparently
so wtf do i use for layout for clients etc
they flopped on buying Figma
i was gonna say figma
but that's more of a prototyping site afaik
idk what xd is
its a designer/prototyper too
it was my go to but its no longer maintained apparently
Figma
Figma Downloads | Web Design App for Desktops & Mobile
Download the Figma web design app on desktop for macOS or Windows, plus the font installer and device preview apps.
figma it is

I love my custom End Task button 😂
you're just not really gonna get a "export to wpf app" anywhere though
had to use it on XD because it froze
im aware, i jsut wanna do quick layout ideas
then use wpf and try to do em

ok i like this more
screw XD
welp i got a ton of WPF layout to learn for sure
I appreciate yours and leowest help a lot
i will do what you recommended from now on maybe do the gaps in cols/row def too
whos gonna stop me 😂
you might get more eyes by starting a discussion in #gui and then moving somewhere else once it gets more complicated
thank you good idea
always get multiple opinions if you can
and then make up your own mind (which you will change later anyway :p)
just go with the flow, you can't choose the correct thing to do for everything on the first (or 5th) try
i apprecate it
im having fun, thats what counts
i doubt game modders care if its a 100% polished professional tool from EA Sports etc
as long as its 90% there
have a great rest of your day/night
is it ok to friend you? wont dm of course w/o permission
Nah I think it's better to not even get tempted to move discussion away from here
More eyes and all that
np