Click here to Skip to main content
15,917,177 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Getting click location Pin
Jeroen De Dauw30-Dec-09 9:37
Jeroen De Dauw30-Dec-09 9:37 
AnswerRe: Getting click location Pin
Jeroen De Dauw30-Dec-09 12:00
Jeroen De Dauw30-Dec-09 12:00 
GeneralRe: Getting click location Pin
Jeroen De Dauw31-Dec-09 7:52
Jeroen De Dauw31-Dec-09 7:52 
QuestionSilverlight ComboBox Binding Issue [modified] Pin
Programm3r30-Dec-09 2:18
Programm3r30-Dec-09 2:18 
AnswerRe: Silverlight ComboBox Binding Issue Pin
MikeGoatly3-Sep-10 5:14
MikeGoatly3-Sep-10 5:14 
QuestionWndProc equivalent in WPF? Pin
pbalaga29-Dec-09 10:41
pbalaga29-Dec-09 10:41 
GeneralRe: WndProc equivalent in WPF? Pin
ProtoBytes29-Dec-09 11:23
ProtoBytes29-Dec-09 11:23 
AnswerRe: WndProc equivalent in WPF? Pin
teejayem29-Dec-09 12:20
teejayem29-Dec-09 12:20 
GeneralRe: WndProc equivalent in WPF? Pin
pbalaga29-Dec-09 23:12
pbalaga29-Dec-09 23:12 
Questionwhy Scrollviewer clip content in wpf Pin
wasimsharp28-Dec-09 23:08
wasimsharp28-Dec-09 23:08 
AnswerRe: why Scrollviewer clip content in wpf Pin
Mark Salsbery29-Dec-09 10:26
Mark Salsbery29-Dec-09 10:26 
QuestionDo you know any ListViewItem samples in WPF? Pin
Mohammad Dayyan28-Dec-09 16:48
Mohammad Dayyan28-Dec-09 16:48 
AnswerRe: Do you know any ListViewItem samples in WPF? Pin
ProtoBytes29-Dec-09 9:32
ProtoBytes29-Dec-09 9:32 
GeneralRe: Do you know any ListViewItem samples in WPF? Pin
Mohammad Dayyan29-Dec-09 22:50
Mohammad Dayyan29-Dec-09 22:50 
Questionlogin authentication in silverlight 3 Pin
pcmedia28-Dec-09 16:05
pcmedia28-Dec-09 16:05 
AnswerRe: login authentication in silverlight 3 Pin
Abhinav S28-Dec-09 16:28
Abhinav S28-Dec-09 16:28 
QuestionData class implementations not fully passed to Silverlight? Pin
Michael Eber28-Dec-09 11:56
Michael Eber28-Dec-09 11:56 
AnswerRe: Data class implementations not fully passed to Silverlight? Pin
Abhinav S28-Dec-09 16:42
Abhinav S28-Dec-09 16:42 
GeneralRe: Data class implementations not fully passed to Silverlight? Pin
Michael Eber30-Dec-09 11:28
Michael Eber30-Dec-09 11:28 
Questiongrid in 3D Environment Pin
sajib_bd26-Dec-09 20:03
sajib_bd26-Dec-09 20:03 
AnswerRe: grid in 3D Environment Pin
ProtoBytes28-Dec-09 12:06
ProtoBytes28-Dec-09 12:06 
Hmm, well Do you want to draw a room or a grid?

3D WPF drawing is not really lines.

Here is a simple cube mesh:

// Define 3D mesh object
MeshGeometry3D mesh = new MeshGeometry3D();
// Front face
mesh.Positions.Add(new Point3D(-0.5, -0.5, 1));
mesh.Positions.Add(new Point3D(0.5, -0.5, 1));
mesh.Positions.Add(new Point3D(0.5, 0.5, 1));
mesh.Positions.Add(new Point3D(-0.5, 0.5, 1));
// Back face
mesh.Positions.Add(new Point3D(-1, -1, -1));
mesh.Positions.Add(new Point3D(1, -1, -1));
mesh.Positions.Add(new Point3D(1, 1, -1));
mesh.Positions.Add(new Point3D(-1, 1, -1)); 

mesh.TriangleIndices.Add(0);
mesh.TriangleIndices.Add(1);
mesh.TriangleIndices.Add(2);
mesh.TriangleIndices.Add(2);
mesh.TriangleIndices.Add(3);
mesh.TriangleIndices.Add(0);
// Back face
mesh.TriangleIndices.Add(6);
mesh.TriangleIndices.Add(5);
mesh.TriangleIndices.Add(4);
mesh.TriangleIndices.Add(4);
mesh.TriangleIndices.Add(7);
mesh.TriangleIndices.Add(6);
// Right face
mesh.TriangleIndices.Add(1);
mesh.TriangleIndices.Add(5);
mesh.TriangleIndices.Add(2);
mesh.TriangleIndices.Add(5);
mesh.TriangleIndices.Add(6);
mesh.TriangleIndices.Add(2);


Sniff | :^)

I found this on The Code Project Article:

'WPF 3D Primer'
By: Dario Solera

~TheArch
QuestionChanging ColumnDefinitions in a StoryBoard (WPF) ? Pin
Mohammad Dayyan25-Dec-09 4:40
Mohammad Dayyan25-Dec-09 4:40 
AnswerRe: Changing ColumnDefinitions in a StoryBoard (WPF) ? Pin
AspDotNetDev27-Dec-09 12:17
protectorAspDotNetDev27-Dec-09 12:17 
QuestionWPF AutoIT/Flash question Pin
jayvee102225-Dec-09 0:16
jayvee102225-Dec-09 0:16 
AnswerRe: WPF AutoIT/Flash question Pin
ProtoBytes28-Dec-09 11:54
ProtoBytes28-Dec-09 11:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.