Oct 1

i have a WPF application i created in C#….what code do I need to add to WIndow.xaml.cs to make the programme close when i hit "Esc"????

thanks,
–nick

i’m brand new to c# programming but i think you need a keyboard event handler mapped to the esc key (make sure the event is mapped to the window not to a grid etc, and then just add the code this.Close();

try this(get the event from visual studio)

private void Window_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Escape)
{
this.Close();
}
}

Sep 29

http://cgi.ebay.com/New-Womens-COLUMBIA-Wpf-3-in-1-Ski-Jacket-Coat-Plus-1X_W0QQitemZ320208651565QQihZ011QQcategoryZ63862QQcmdZViewItem

It’s ok for a guy named Kaitlyn Marie to wear.

Sep 27

Will C# eventually pass C++? I just wanna’ know because I have a knack for learning something and the next day it becomes outdated.

Can you code WPF apps with C++?

Which one do you prefer?
Wow Jack you sure showed me.

Dick wad.

C++ has the advantage that you can find a compiler for almost any CPU made. It is also a lower level language than C# (meaning that TECHNICALLY you could write faster code though you will find in practice that slow code is almost always a design issue). C++ has also been around a very long time.

However… there are a lot more jobs for C# (and java) at the moment. C#’s learning curve is far less than that of C++ and it integrates very well with WPF. If you are looking to produce code quickly, C# is where its at. C# is a "safer" language, and with internet trust issues, security, multi-threading, pointer safety, you get a leg up in C# with automatic support. C# supports reflection, lambda functions, and a slew of other things missing from C++ (include file hell, for instance).

This whole "which is better A or B" can quickly digress into a religious war. It is almost always accompanied by some elitist ivory tower snob who will call you a "noob" for asking the question (without offering insight). It is better to ask for the advantages of one over the other. I have fond memories of C++, Smalltalk, C, Lisp, Assembly language(s), but I realize that to take advantage of a lot of new technologies out there, it’s important to adapt, so I write primarily in Java and in C# at the moment (well, and python, XSLT, PHP, et al.).

So… Of the two languages you asked about, I would recommend C#, and definitely learn WPF (including Silverlight) — even if it doesn’t survive, it is a <INSERT OPINION HERE> architectural approach to separation of concerns in GUI design. With C# you won’t feel so behind the curve. When you use some nifty new feature, just remember to ask yourself WHY it is so nifty and what pain was it intended to resolve.

Sep 23

{{{wpf}}} Now that was funny!

Robert Plants voice is like buttah to me. Not that I don’t love U2…..
………Lughnasadh! Who wants to celebrate with me, my fresh baked bread and a bottle of wine?

Bonus Question: Pick one person in your contacts and tell me what Led Zeppelin song they would be?

Also, who is it?
Mine would be Whatever and he gets two songs.

I can’t quit you baby
Kashmire (Because I think it fits his personality and mine)

Not a U2 song? Geez, who did I piss of in this category this time?

I pick So-Crates, and he’s "Good Times, Bad Times"

No music compares to Led Zeppelin. I would be "Ramble on" because I say way too much sometimes.

Sep 17

http://cgi.ebay.com/New-Womens-COLUMBIA-Wpf-3-in-1-Ski-Jacket-Coat-Plus-1X_W0QQitemZ360078783192QQihZ023QQcategoryZ63862QQcmdZViewItemQQ_trksidZp1713.m153.l1262

Umm , sorry but no .
Its more of a girl style of
jacket. And most importantly
its pink. Guys usually wear pink
polo’s and tees. Not pink jackets
I’m sorry. : (
Good Luck : )

Sep 15

Marc Laroche stopped by to talk about the use of 3D in one of Xceed’s new controls 3D Views for WPF. Watching Marc move the camera to adjust the display of the data (around 5:25) can give you an idea of where 3D can really be useful. Simply adjusting the position of the camera offers a new perspective rendered dynamically. There is no need to pre-render all of the desired views.

Duration : 0:3:21

Read the rest of this entry »

Technorati Tags: , , ,

Sep 13

I’m just beginning to study c# and am currently working on a tutorial to get my feet wet. It looks like the tutorial i’m following is a windows form tutorial but i’m working in wpf. I’ve already made some changes to accomodate this change. However, i’m not sure what to do with the invoke method in the tutorial. When I try to build the app (which uses this method) i get an error that the method does not exsist.

This is the tutorial i’m doing:
http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1—Building-the-Chat-Client.html

Thanks for your help
Method: this.Invoke()

Here is one example of it from the tutorial
this.Invoke(new UpdateLogCallback(this.UpdateLog), new object[] { "Connected Successfully!" });
I found this information:
http://ascendedguard.com/2007/08/anonymous-functions-and-invoking-in-wpf.html

However, i don’t quite understand how it all works and i’m having trouble converting the invoke line in the windows form tutorial to the format described in the link above for invoking in wpf.

Which method, exactly?

Sep 13

wpf 2007 freestyle ecuador second round, mexico city

Duration : 0:2:7

Read the rest of this entry »

Technorati Tags: , , , , ,

Sep 11

This is my first WPF (Windows Presentation Foundation) application that I developed it as a university ignment. This project consists of two seperate applications; Restaurant and Waiter. The Waiter is a Pocket PC based application that hepl the waiter to place customers orders and be aware of orders state for serving them to customers. This application works in an online environment through a WiFi network. On the other hand, the Restaurant application is a WPF PC based application which is used in three different stations by three different users; Manager, Cashier and Kitchen organizer. Manager defines users of the applications and igning different permisions to them. Moreover, he/she can define initial data of the application and also giving different reports. Kitchen organizer uses the Restaurant application to become aware of the new or edited orders, printing and preparing order items, changing the availabiity of products and updating orders state to ready to serve to let the waiter know that a specified order is ready to serve. And cashier will use this application for printing receipt and doing check out processes.

Duration : 0:10:0

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , ,

Sep 9

However, when I run the program the Menu collapses to normal size.

Is there some way to make VS2008 display the menu properly? It’s taking up a lot of space in the IDE, and is very distracting. I’ve tried changing the width values in the MenuItems, but then I can not see the name of the menus.

(I tried uploading pics for examples, but apparently yahoo answers bans tinypic links or something)

If the menu is normal size when running then it’s most likely the IDE that is causing a rendering issue. The best option would be to ignore it. Do not code an widths and let the default (auto) be use.

Looking at my code here is an example:

<Menu VerticalAlignment="Top">
<MenuItem Header="Add New">
<MenuItem Header="Equipment" Click="EquipmentMenuItem"/>
<MenuItem Header="Material" Click="MaterialMenuItem"/>
<MenuItem Header="Employee" Click="EmployeeMenuItem"/>
<MenuItem Header="Manufacturer" Click="ManufacturerMenuItem"/>
<MenuItem Header="Supplier" Click="SupplierMenuItem"/>
<MenuItem Header="Unit" Click="UnitMenuItem"/>
</MenuItem>
</Menu>

Hope this helps. (Yahoo removes the tabbing)

« Previous Entries Next Entries »