|
fjparisIII wrote: Now I have to do two things:
1. See if I can find out from the ScrollViewer whether its content fits within the its vertical height. I'll report my success or failure at this attempt.
and I have been successful! I've found two ways of determining whether the content can fit into the RichTextBox, using the following code:
private void richTB_MouseEnter(object sender, MouseEventArgs e)
{
ScrollViewer sv = (ScrollViewer)richTB.Template.FindName("PART_ContentHost", richTB);
double height = sv.ActualHeight;
double extentHeight = sv.ExtentHeight;
double scrollableHeight = sv.ScrollableHeight;
}
If extentHeight > height , the content doesn't fit. Or, if scrollableHeight == 0 , the content does fit!
Now I have to figure out if I actually want to use this information! Fortunately, I think it will be possible for me to use the information on top of the solution to the original problem I had, to make things even better!
Now if only we can find a dictionary up on MSDN for all these template parts (like ("PART_ContentHost"), the world would be ours! Like you, I failed to find it Googling. I searched for "PART_ContentHost" hoping to find the dictionary, and only came up with examples of using this particular part. There must be such a dictionary on MSDN. Otherwise how would anyone find out what these names are in the first place, inside information? Maybe there's a technique for getting them for any particular element through the System.Reflection namespace, something which, sad to say, I've never studied.
|
|
|
|
|
There's a download available that provides all of the standard element templates, but I can't find the link. If you post a message here that asks for the link, I'm sure someone will have it. I have the download, and that's how I verified the name of the element you were looking for.
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
fjparisIII wrote: Fortunately, I think it will be possible for me to use the information on top of the solution to the original problem I had, to make things even better!
This is one of those jump-up-and-tell-someone-about-your-mastery-of-the-technology moments, and then you realize that nobody either cares or would understand when you explained the subtleties. Truly a bittersweet feeling.
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
BTW, you can determine the names of the standard WPF components by finding the microsoft-supplied standard object templates download. They're provided by theme, but essentially, they're all the same so you only need to download 1 to get a birds-eye view of the original templates.
I tried for about a half hour to find them on the web, but my google search foo is severely diminished today.
Maybe someone else can provide the link.
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
Can I use the MS ribbonbar in .Net 3.5?
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
There's a ribbon bar control ? Where does it come from ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Yeah, it's a separate CTP. You have to "license" the MS Fluent User UI to get to the download (a single DLL).
Start here:
http://www.codeplex.com/wikipage?ProjectName=wpf&title=WPF%20Ribbon%20Preview[^]
...and follow the links.
BTW, once you download it, all you gotta do is include it in your tools panel, and you get it all.
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
Last I heard, it will be included in 4.0, and a preview is available for 3.5 SP1.
WPF Ribbon Preview[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How depressing. So now everyone can have sucky UI ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: So now everyone can have sucky UI ?
Hehe yeah.
I hate that thing.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I don't like it either, but sooner or latter (and probably more towards sooner), someone where you work is gonna put a bug in your boss' ear about it. I became more interested in it when I noticed that Texas Med Clinic had a custom app written for them, and it had a ribbonbar. What I realized is that if it's a new application that you've never seen before, it actually does help in the navigation of said program. The only thing wrong with the current implementations I've seen is that there doesn't seem to be an ability to get rid of it and go back to a UI you're more comfortable with.
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
Hello,
I have made a property in a Silverlight project on the Page.
How can I call this propery in the code behind page of ASP.net(c#)?
Thanks,
|
|
|
|
|
Deabdy21 wrote: How can I call this propery in the code behind page of ASP.net(c#)
You can't, since the asp.net code behind runs on the server and the
Silverlight app runs on the client.
You can use javascript to communicate with the Silverlight plugin
from HTML...
HTML Bridge: Interaction Between HTML and Managed Code[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'm using a silverlight2 datagrid in my applcation. While loading it shows very well and after the selection of one row in the grid to change the values and then click on the update button it it works very well and showing the grid very well.
But after the updation while showing the grid if we move the scroll bar up and down i'm missing the row. It shows an empty row there.
Need help to show the row while scrolling grid view scroll bar.
-ravi
|
|
|
|
|
Can you post a small example that demonstrates the problem?
I don't know about anyone else, but I have no idea what your
"updation" code is doing...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
First of all just to give you a little background i am a web developer with one year exp. I have went to the Microsoft site and got everything concerning Silver light but i think there is a gap i still do not know how to work with it, I was not able to continue the tutorial i got from MS.
Could any one tell me what should i know as a prerequisite.
Should i know WPF becuase i really do not know a thing about it.
Is silver light has alot of post backs on server, which leads to performance issues?Is it heavy or light?
Is there any certification on silverlight?
Thanks
|
|
|
|
|
khalil.kamel wrote: what should i know as a prerequisite
Get Started Building Silverlight 3 Applications[^]
And the documentation: Silverlight[^]
khalil.kamel wrote: Should i know WPF
Knowing WPF makes the programming part of Silverlight much easier
but it is not required. If you learn to write Silverlight apps,
learning to write WPF apps will be simpler.
khalil.kamel wrote: Is silver light has alot of post backs on server, which leads to performance issues?
Only if you write code that does postbacks. Silverlight apps run on
the client - Silverlight is NOT ASP.NET.
khalil.kamel wrote: Is it heavy or light?
Huh?
khalil.kamel wrote: Is there any certification on silverlight?
Currently, no, as far as I know. If you go through the
"Read Tim Heuer’s 8-part blog series on getting started"
section at the "Get Started Building Silverlight 3 Applications"
link I posted above, you'll be well on your way.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hi all
i am fresher in silverlight from where should i start to learn Silverlight
which version should i use ?
i have VS 2008 , will it support silverlight programming ???
help really appreciated
thanks in advnace
koolprasad2003
Rating alway..... WELCOME
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: where should i start to learn Silverlight
On the "Get Started" page, of course: Get Started Building Silverlight 3 Applications[^]
The documentation: Silverlight[^]
koolprasad2003 wrote: which version should i use ?
For new development, there's no reason to use anything but the
latest version - Silverlight 3.
koolprasad2003 wrote: i have VS 2008 , will it support silverlight programming ???
Yes. Install all the items on the "Get Started" page I linked to above,
in order, and your development system will be all set for Silverlight
development.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
cheerssss...thankx
Rating alway..... WELCOME
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
|
I'm new to silverlight. My web application "Might" attach to a TCP port that outputs a binary compressed TCP message for my web data. I'm trying to decide if I should
1)parse it in silverlight
or
2)write a middle-ware application that unpacks it and then sends it to my silverlight App.
Thanks for any recommendations.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
earlgraham wrote: My web application "Might" attach to a TCP port
What kind of "web application"?
For example, ASP.NET: Silverlight apps run on the client, ASP.NET code runs on
the server, so how you implement this depends at least in part on where
the code will be running.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Code is running on a client webpage. It streams data to a web user for live updates.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
earlgraham wrote: Code is running on a client webpage. It streams data to a web user
So this code is in the Silverlight application then?
In that case, doing everything in Silverlight seems
the most logical.
I'm curious how you are able to provide a listener socket
in an application running in a browser...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|