|
Pete O'Hanlon wrote: Change colour of the border
why didnt I think of that i think that will do nicely, and maybe even thiken the border a little.
Pete O'Hanlon wrote: expand the size of the cell and put a shadow under it to make it look 3D.
sounds cool, but i dont think it will work in this situation cause more than one cell will be selected at the same time.
Thanx master Yoda
TTYL
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Harvey Saayman wrote: Pete O'Hanlon wrote:
expand the size of the cell and put a shadow under it to make it look 3D.
sounds cool, but i dont think it will work in this situation cause more than one cell will be selected at the same time.
Hmmm. I may just have to play with this. Maybe there's an article in it.
And, you're welcome.
|
|
|
|
|
Hi All,
Can someone please tell me whether WPF can be used to render mock UI say as web pages? What I am looking at is ability to develop quick UI to demo the product/module functionality.
If yes can someone please guide me where do I start?
Thanks and Regards
|
|
|
|
|
psychedelic_fur wrote: Can someone please tell me whether WPF can be used to render mock UI
Yes.
psychedelic_fur wrote: If yes can someone please guide me where do I start?
The best way to mock out your UI is to use Expression Blend. It will save you so much time.
|
|
|
|
|
Hi,
I'm making a WPF application. It is like an organizer.
The number of columns is fixed at 5, but the number of rows varies. It will be based on time interval selected by the user, which is 5, 10, 20, 30 min interval. How can I make a table that can adjust itself according to the user defined time interval?
Thanks in advance
|
|
|
|
|
Are you using a Gridview? or do you show a datatemplate in a listview?
Either way you can use a timer to do this. Here is some information about that on MSDN:
http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx[^]
In the TimerCallback you can add items to the list you are showing.
Dawn is nature's way of telling you to go to bed.
|
|
|
|
|
I'm developing editor application in WPF. It is somewhat similar to Microsoft visio.
It supports the rotation of multiple elements placed on the editor canvas. I'm rightnow facing a problem in drawing a adorner (bounding rectangle) around the multiple objects. Let me describe the problem in detail :
Each element placed in the editor will display the adorner to do operation like resize, rotation etc. When multiple elements are selected, adorner (rectangle) will be drawn covering all the objects. When elements are not rotated, drawing adorner (rectangle) is not a problem. But when elements are rotated at some degree, I also will have to draw the adorner (rectangle) in rotated position. In rotated position if I do the resize operation then I'm not able to place the adorner properly i.e. exactly surrounding to elements. Can any one pls help me on how I can draw the proper adorner (bounding rectangle) after each resize operation in rotated position?
I hope I'm clear with my question. If not pls ask for clarification of see how multiple object rotation works in Visio. I have run out of idea on how to fix this problem so looking forward to have some help/suggestions from members.
Regards,
|
|
|
|
|
RenderTransform.TransformBounds returns an axis aligned rectangle, if that isn't what you want try http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part1.aspx
If your using Canvas.SetLeft/Top instead of a TranslateTransform you may have to tweak it.
Rectangle rotated = new Rectangle {Width = 100, Height = 60, Fill = Brushes.Orange};
rotated.RenderTransform = new TransformGroup {Children = {new RotateTransform(35), new TranslateTransform(60, 30)}};
canvas.Children.Add(rotated);
rotated.Loaded += ((s, e2) =>
{
Rect r = VisualTreeHelper.GetDescendantBounds(rotated);
r = rotated.RenderTransform.TransformBounds(r);
Rectangle border = new Rectangle {Width = r.Width, Height = r.Height, Stroke = Brushes.DodgerBlue, StrokeThickness = 2, RenderTransform = new TranslateTransform(r.X, r.Y)};
canvas.Children.Add(border);
});
|
|
|
|
|
Dave,
thanks for the reply.
But above code draws the border around the element in the upright position. I want to draw the bounding rectangle (border object in your code snippet) around elements in rotated position if elements are in rotated position. So I think with your code I can not realize rotated bounding rectangle.
Can you pls elaborate more.
regards
|
|
|
|
|
I also posted a link to http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part1.aspx. In the picture at the top of the article the bottom left item has a rotated border perhaps that does what you want?
If you do border.RenderTranform = rotated.RenderTransform, it would have the rotated border but I think it would require more work than that for your situation.
|
|
|
|
|
well, rotating for single component is not a problem. That is already done by me. The complexity comes into the picture when multiple components are selected and rotated. Also, the difficult thing is to show the perfect bounding rectangle after these rotated objects are resized. If you have any idea how to resize the rotated components (multiple) pls share with me.
regards,
|
|
|
|
|
Hey guys,
I am using Silverlight 2.0.3 MediaElement.Source to stream a video file through my custom localhost/loopback server. The loopback server runs fine when I request the file with Windows Media Player, however when I use MediaElement.Source (SilverLight) the Silverlight MediaElement will not play the file even though the data is being sent by the server.
The HTTP Requests that I receieve from Silverlight look like this:
HTTP GET http://localhost:8080/blah.wmv
UA-CPU: x86
Connection: Keep-Alive
Accept: */*
Accept-Encoding: gzip, deflate
Host: localhost:8080
HTTP GET http://localhost:8080/blah.wmv
UA-CPU: x86
Connection: Keep-Alive
Accept: */*
Accept-Encoding: gzip, deflate
Host: localhost:8080
Range: bytes=49152-852853760
HTTP GET http://localhost:8080/blah.wmv
UA-CPU: x86
Connection: Keep-Alive
Accept: */*
Accept-Encoding: gzip, deflate
Host: localhost:8080
Range: bytes=65536-852853760
This is very problematic because I receieve multiple HTTP Requests from Silverlight, and only one request from Windows Media Player. The byte range values do not make any sense, the header values are not consistent and seemingly random.
So in contrast to Windows Media Player's 1 HTTP Request, the Silverlight MediaElement makes 3 requests and doesn't play the file even though my custom Loopback Server is sending the data.
Can anyone shed some light on this?
madness ? this.isSparta = true : this.isSparta = false;
|
|
|
|
|
i'm having this problem too. any luck?
|
|
|
|
|
When I change the fontfamily property on a WPF richtextbox, it changes the font for all the text typed in so far. I only want the font to change for the text that is typed in AFTER I change the font. How can I do this? I can get it to change the font for just selected text, but then not for text that is type in afterwards.
|
|
|
|
|
Basically you need to create a new TextRun that starts at this point, and set the font on that.
|
|
|
|
|
HI,
Im using wpf for designing purpose,i have to use dataset in my project, but im new to this one.i dont know how to use.i added dataset to my project by soln explorer--> add newitem-->Dataset. but i dont know whats the purpose of this one and i dont know how to use this one.. and also i need to know is it possible to store the values?.. could any one assist me??
regrds
Kanna..
|
|
|
|
|
Hello All,
I would like to have a listview with multiple columns (three). When a row is selected the complete row should be expanded vertical and span all three columns. I have tried some stuff in WPD/Expression blend but could not get it to work. The ListViewItem is expandable but is allways contained in on collumn.
Does anybody have a solution for this problem?
Thanks,
Meindert
|
|
|
|
|
|
Karl - you're back. How goes it with the new job?
|
|
|
|
|
Pete,
Sorry for a prolonged absence, nice to be missed! I'm moving into my place next week.
I LOVE working at Microsoft on the Cider Team. Best company I've ever worked for. (Well the Marines was probably the best, they let you fly in planes, helicopters, travel around the world, free room and board, etc...)
I'll have some very cool stuff this week.
I'm actually finishing my XAMLPowerToys Visual Studio 2008 Add-In. I'll post this on my blog over the next few days.
I'm also releasing Ocean, a code generation tool and newly branded framework. This will generate a series of Code Project articles and will get my WPF LOB series back on track. Very cool stuff here too.
I'm heading to work in a few.
BTW: We have some openings on my team. Interested?
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Karl Shifflett wrote: BTW: We have some openings on my team. Interested?
Definitely.
Actually, I was going to post you privately about a project I was looking to kick off with WPF, and I was looking for input from people like yourself about features you'd like to see in it. Anyhoo - I was thinking of starting off a project to handle UI testing of WPF apps, and I was wondering what features people would want in it. The obvious ones include things like clicking menus/toolbars, inputting/reading from textboxes and so on. I'd love your input on this.
|
|
|
|
|
|
Looks interesting. And you guys eat lunch together - sounds like it's a close knit team. One small prob on my part - I live in the UK. Would this work for the team, i.e. would they support me relocating to the US?
|
|
|
|
|
Cider's not done yet?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Working hard!!!
modified 27-Feb-21 21:01pm.
|
|
|
|