WPF Pain In The Anal Pore
-
In WinForms, you could place a label, turn off auto size, and then have your way with the properties to modify the alignment. In WPF, you have to enclose a TextBlock with not one, but TWO border elements in order to set a border and color the background properly. Every day I use this crap pile, I find something else that is so insanely difficult to figure out and do that I wonder how anyone can work with it and honestly say they like it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
In WinForms, you could place a label, turn off auto size, and then have your way with the properties to modify the alignment. In WPF, you have to enclose a TextBlock with not one, but TWO border elements in order to set a border and color the background properly. Every day I use this crap pile, I find something else that is so insanely difficult to figure out and do that I wonder how anyone can work with it and honestly say they like it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001Yeah, I worked that out the other day, that is indeed a PITA. how about the fact that in WPF it's not easy to find out the position of an element on the screen ? I have two different panes I switch between and I wanted to manually position a video over one, then move it to be over the other as I swap. That proved to be too fraught with danger, which means my app is not as smooth as I'd like it to be.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
Yeah, I worked that out the other day, that is indeed a PITA. how about the fact that in WPF it's not easy to find out the position of an element on the screen ? I have two different panes I switch between and I wanted to manually position a video over one, then move it to be over the other as I swap. That proved to be too fraught with danger, which means my app is not as smooth as I'd like it to be.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
So what DID you gain by using WPF over WinForms or WIN32 (rock on!).
Todd Smith
-
So what DID you gain by using WPF over WinForms or WIN32 (rock on!).
Todd Smith
Wow - so you can post to this thread? All my attempts to reply to John failed in a weird way. The post fails, but the reply shows up in the Lounge for a few seconds, and on refreshing, the reply vanishes. I've reported a bug in the Suggestions forum. :~
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
In WinForms, you could place a label, turn off auto size, and then have your way with the properties to modify the alignment. In WPF, you have to enclose a TextBlock with not one, but TWO border elements in order to set a border and color the background properly. Every day I use this crap pile, I find something else that is so insanely difficult to figure out and do that I wonder how anyone can work with it and honestly say they like it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001Hey John, Could you post same sample xaml showing what you mean?
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
Wow - so you can post to this thread? All my attempts to reply to John failed in a weird way. The post fails, but the reply shows up in the Lounge for a few seconds, and on refreshing, the reply vanishes. I've reported a bug in the Suggestions forum. :~
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com linkNishant Sivakumar wrote:
Wow - so you can post to this thread? All my attempts to reply to John failed in a weird way. The post fails, but the reply shows up in the Lounge for a few seconds, and on refreshing, the reply vanishes. I've reported a bug in the Suggestions forum.
See, even mentioning WPF in a Windows application results in unexpected behaviors ... :rolleyes:
-
Nishant Sivakumar wrote:
Wow - so you can post to this thread? All my attempts to reply to John failed in a weird way. The post fails, but the reply shows up in the Lounge for a few seconds, and on refreshing, the reply vanishes. I've reported a bug in the Suggestions forum.
See, even mentioning WPF in a Windows application results in unexpected behaviors ... :rolleyes:
Douglas Troy wrote:
See, even mentioning WPF in a Windows application results in unexpected behaviors
Yeah I was using Firefox. It's not WPF friendly yet as far as handling text goes. :rolleyes:
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
So what DID you gain by using WPF over WinForms or WIN32 (rock on!).
Todd Smith
Cool animated UI. Scratch that. We were able to create an app almost as cool as a Mac app. That's a better definition.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
Hey John, Could you post same sample xaml showing what you mean?
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com linkWhat I think he means is that to create a border around a shape ( for example, a rect with rounded corners ), you create the rect. then you create it again with a border, so that it's drawn just inside, creating the border in the color of the outside shape. Then you place content inside that. If WPF is not incredibly verbose and drawn out to do simple things, then it sure is not intuitive how it's not the case.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
What I think he means is that to create a border around a shape ( for example, a rect with rounded corners ), you create the rect. then you create it again with a border, so that it's drawn just inside, creating the border in the color of the outside shape. Then you place content inside that. If WPF is not incredibly verbose and drawn out to do simple things, then it sure is not intuitive how it's not the case.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
Ah okay, I got what he means now.
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
Douglas Troy wrote:
See, even mentioning WPF in a Windows application results in unexpected behaviors
Yeah I was using Firefox. It's not WPF friendly yet as far as handling text goes. :rolleyes:
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link:doh: :-D
-
Yeah, I worked that out the other day, that is indeed a PITA. how about the fact that in WPF it's not easy to find out the position of an element on the screen ? I have two different panes I switch between and I wanted to manually position a video over one, then move it to be over the other as I swap. That proved to be too fraught with danger, which means my app is not as smooth as I'd like it to be.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
Christian Graus wrote:
it's not easy to find out the position of an element on the screen ?
WPF represents a new approach to programming. You can do this and that but if you want something different then it pops up and asks "Why the hell would you want to do that? There is a much better way to solve your problem but ha ha I'm not going to tell you (keep trying, looser).". My symphaties.
Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
-
Cool animated UI. Scratch that. We were able to create an app almost as cool as a Mac app. That's a better definition.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
Christian Graus wrote:
Cool animated UI. Scratch that. We were able to create an app almost as cool as a Mac app. That's a better definition.
Google took over the world with a near blank page, a single edit box and a completely non-animated results page :cool:
Todd Smith
-
Christian Graus wrote:
Cool animated UI. Scratch that. We were able to create an app almost as cool as a Mac app. That's a better definition.
Google took over the world with a near blank page, a single edit box and a completely non-animated results page :cool:
Todd Smith
Our app was more visual than a search engine :)
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
Christian Graus wrote:
it's not easy to find out the position of an element on the screen ?
WPF represents a new approach to programming. You can do this and that but if you want something different then it pops up and asks "Why the hell would you want to do that? There is a much better way to solve your problem but ha ha I'm not going to tell you (keep trying, looser).". My symphaties.
Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
gajatko wrote:
keep trying, looser)
I'm looser than you ?
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
Christian Graus wrote:
Cool animated UI. Scratch that. We were able to create an app almost as cool as a Mac app. That's a better definition.
Google took over the world with a near blank page, a single edit box and a completely non-animated results page :cool:
Todd Smith
I'm sure, if google was making its blank page today, it would've been a blank WPF page :)
To hell with circumstances; I create opportunities.
-
In WinForms, you could place a label, turn off auto size, and then have your way with the properties to modify the alignment. In WPF, you have to enclose a TextBlock with not one, but TWO border elements in order to set a border and color the background properly. Every day I use this crap pile, I find something else that is so insanely difficult to figure out and do that I wonder how anyone can work with it and honestly say they like it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001Am I missing something? Why not just put a label control on the form? Use a canvas if you want absolute positioning. I'm really enjoying working with WPF. It's as slow as hell even on good hardware but it's a real improvement for UI coding.
--Matt
-
Yeah, I worked that out the other day, that is indeed a PITA. how about the fact that in WPF it's not easy to find out the position of an element on the screen ? I have two different panes I switch between and I wanted to manually position a video over one, then move it to be over the other as I swap. That proved to be too fraught with danger, which means my app is not as smooth as I'd like it to be.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
Back when I started dickin' around with WPF, I was complaining about the annoying aspects of the WPF controls to someone here at work, specifically, the
Label
control regarding its lack of aText
property. They promptly informed me that if I want a Label control, I should use aTextBlock
. However (and as I described above), theTextBlock
control doesn't have the same abilities as the WinFormsLabel
control. So, I switched to the Label control and it supports horizontal AND vertical alignment, as well as borders. WTF is Microsoft doing?"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Wow - so you can post to this thread? All my attempts to reply to John failed in a weird way. The post fails, but the reply shows up in the Lounge for a few seconds, and on refreshing, the reply vanishes. I've reported a bug in the Suggestions forum. :~
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com linkThe forums are written in WPF. What you're seeing is a known issue that Microsoft will fix when they switch to whatever succeeds WPF as their preferred erection-building technology.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Our app was more visual than a search engine :)
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
Ours isn't... I told them WPF would be a waste of time, but they're not having it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001