|
Can any one tell me where can I get some free XAML(WPF) Template or theme for business application.
Thanking in Advance
Johnny
|
|
|
|
|
Saiyed Alam wrote: Can any one tell me where can I get some free XAML(WPF) Template or theme for business application.
Look at some of the WPF articles here on CodeProject, there is a superb collection of free code and step by step guidance.
|
|
|
|
|
I have defined a grid like this:
<br />
<Grid.RowDefinitions> <br />
<RowDefinition Height="Auto"/><br />
<RowDefinition Height="*" MinHeight="300" /><br />
<RowDefinition Height="Auto"/><br />
<RowDefinition Height="Auto"/><br />
</Grid.RowDefinitions>
I would like to know what the height of Grid.Row 1 is at runtime. Giving it a name and asking for the height only returns a "*". Is there a way to determine this?
Thanks
|
|
|
|
|
Never mind. I just added a panel around everything in that grid row and the panel knows how high it is.
Thanks
Brent
|
|
|
|
|
This is not done in wpf. In wpf panel is not available, so i am using stack panel but still i am getting height = 0 at run time. Is there any other way to find height of grig at run time?
|
|
|
|
|
i have same problem, but i want to get height of grid at run time. Is there any way to get height of grid in wpf at run time?
|
|
|
|
|
Check the ActualHeight and ActualWidth properties.
Brent
|
|
|
|
|
Hi friends i want to animate the listboxITem on load of the listbox just similar to twitter blu.
i create a template for the listItem and onload event i give animation to it but when listbox loaded all the listITem animate at the same time. plz give some idea????
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
In window form i can create 1 image and drag it from 1 place to another by:
Image_MouseDown, Image_MouseMove and Image_MouseUp but in WPF i make 1 grid(create 5 row and 5 column) and i add child (image) to row 2 and column 2 then 1 make same events but i can't drag it.
please make a solution .
Thank.Sorry for my english !
|
|
|
|
|
It works the same way, the only thing is, the way that things are laid out in WPF is a little different. What have you tried ?
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.
|
|
|
|
|
The grid have 5 ColumnDefinitions and 5 RowDefinitions.
If image i can get current Column and Row by GetValue(Grid.RowProperty) and GetValue(Grid.ColumnProperty)
. But i don't know how to get current Column and Row of Mouse.
If know i can SetValue.
Thank !
|
|
|
|
|
Oh, you want to know what column and row the mouse is over ? I'd imagine you'd need to turn the rows and columns into pixel positions to calculate that, but then, if you caught the mouse move event in each grid square, you could just track which square control got the event last.....
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.
|
|
|
|
|
Can you show me how to "caught the mouse move event in each grid square".
Thank 
|
|
|
|
|
The grid doesn't really have grid squares. It has column/row definitions
that define the grid squares. These definitions are used to layout elements
"in" the grid squares.
So put elements in the grid squares, and subscribe to events on those elements.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for explaining that a bit better than I did
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.
|
|
|
|
|
I've got your back.
Gives you more time to focus on NullReferenceException issues.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have a grid gr and divided it into 5 row, 5 column and placed a Image in it
Image tem = new Image();
tem.Source = new BitmapImage(new Uri("..."));
gr.Children.Add(tem);
tem.SetValue(Grid.ColumnProperty,0);
tem.SetValue(Grid.RowProperty,0);
tem.MouseLeftButtonDown += new MouseButtonEventHandler(tem_MouseLeftButtonDown);
tem.MouseLeftButtonUp+= new MouseButtonEventHandler(tem_MouseLeftButtonUp);
tem.MouseMove += new MouseButtonEventHandler(tem_MouseMove);
Now, i want to make tem_MouseLeftButtonDown, tem_MouseLeftButtonUp, tem_MouseMove to move Image from (row=i,column=j) to (row=Mouse point,column=Mouse point), in window form i can but in wpf i can't.
Sorry for my english.
Thank 
|
|
|
|
|
The Grid control, being a Panel element, is suited for layout
of child elements. For what you are doing, it would be much simpler
to use another simpler panel like a Canvas and keep track of the
cell coordinates yourself.
That's just my opinion. You could do it with a Grid, but when I picture
the code in my head, it looks way messier than it would be using a canvas.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, I was thinking that, too. I am assuming he wants the image to jump between cells, not move smoothly, but even then, it makes more sense to track positions than use an actual grid, IMO.
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.
|
|
|
|
|
Agreed. I was thinking mostly of the hit-testing being messy,
but looking again, I see that WPF drag and drop could be used with
drop targets in each cell to let the framework do a lot of that.
That may even be simpler than using a canvas
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
I am newbie to WPF development. We need to develop a kisok application, so is there any sample opensource kiosk project available to learn.
Is there any concept similar to Asp.net master page in WPF. It would be great if you guys can direct us to some similar sample application
|
|
|
|
|
What sort of application do you need to build ? What will it do ? Who is it for ? By kiosk, you just mean that it will fill the entire screen ? Will it work with a touch screen ? You've done ASP.NET then and you're just new to WPF ?
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: What sort of application do you need to build ?
This application is used in Hotels where customers can get informations
Christian Graus wrote: By kiosk, you just mean that it will fill the entire screen ?
Yes it's a full screen application. Which runs on kiosk machines
Christian Graus wrote: Will it work with a touch screen ?
Yes it should work on touch screen
Christian Graus wrote: ou've done ASP.NET then and you're just new to WPF
Yes I have worked with ASP.net. This project is going to be my first WPF work.
My queries are
1. Is there any Masterpage type concept in WPF.
I have gone through some sample application. There will be a main window and each content area is created as an user control. All user controls will be placed in main window and show/visible one at a time. I like the idea of creating it as a separate control. Is there any way to dynamically load when needed (Same as placing a panel in ASp.net). A animation affect which will make the transition looks better.
I would be great if you can share some of your ideas/Sample application familer. This project has a tight deadline and we don't have enough time to train ourself completely.
|
|
|
|
|
Whoah - you don't have enough time to train yourselves completely and you're coding to a tight deadline on a WPF application. You do know that WPF has a huge learning curve don't you? It's more a learning precipice than curve, and you can't just throw yourself at it and hope that something sticks.
You need to raise this with your project manager right now - you're undertaking a development in a new technology without adequate research and training, and you have a tight deadline. There is too much risk there, and she needs to start making some decisions right now otherwise you are not going to deliver the application or the application is going to be an unmaintainable mess - either way, the client has been hosed.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|