Click here to Skip to main content
15,894,825 members
Home / Discussions / WPF
   

WPF

 
QuestionFlow Layout versus Fixed Layout Pin
Richard Andrew x6421-Dec-09 13:08
professionalRichard Andrew x6421-Dec-09 13:08 
AnswerRe: Flow Layout versus Fixed Layout Pin
Aviad P.21-Dec-09 20:05
Aviad P.21-Dec-09 20:05 
QuestionResources and Deployment - App does not run Pin
cutudi21-Dec-09 3:59
cutudi21-Dec-09 3:59 
AnswerRe: Resources and Deployment - App does not run Pin
Pete O'Hanlon21-Dec-09 4:13
mvePete O'Hanlon21-Dec-09 4:13 
GeneralRe: Resources and Deployment - App does not run Pin
cutudi21-Dec-09 4:19
cutudi21-Dec-09 4:19 
QuestionSystem.Net.HttpWebRequest missing members Pin
Siberz21-Dec-09 3:43
Siberz21-Dec-09 3:43 
AnswerRe: System.Net.HttpWebRequest missing members Pin
Mark Salsbery21-Dec-09 13:20
Mark Salsbery21-Dec-09 13:20 
QuestionTranslate transform in code Pin
AghaKhan21-Dec-09 1:52
AghaKhan21-Dec-09 1:52 
I have a class which builds cubes.One of its properties is to translate to diffrent part of the screen.
testCube is object of that class.

testCube.Translate = new TranslateTransform3D(0, -1, 1);


I would like to set binding for Translation, but I am having hard time.
Looking the book WPF in Action I found this code for Rotation.

AxisAngleRotation3D angleRot = new AxisAngleRotation3D(new Vector3D(0, 1, 0), 0);
RotateTransform3D rot = new RotateTransform3D(angleRot,new Point3D(-spaceToUseX + (spaceToUseX / 2), 0, -(barWidth / 2)));
Binding rotBind = new Binding("Value");
rotBind.Source = rotateSlider;
BindingOperations.SetBinding(angleRot,
AxisAngleRotation3D.AngleProperty, rotBind);
model.Transform = rot;

I wrote this code, but nothing happends.It runs, with no errors

Binding TransformBindingX = new Binding("CubeUnit");
TransformBindingX.Path = new PropertyPath("Translate.OffsetX");

Binding TransformBindingY = new Binding("CubeUnit");
TransformBindingY.Path = new PropertyPath("Translate.OffsetY");

Binding TransformBindingZ = new Binding("CubeUnit");
TransformBindingZ.Path = new PropertyPath("Translate.OffsetZ");

TranslateTransform3D translateTransform3D = new TranslateTransform3D();
BindingOperations.SetBinding(translateTransform3D, TranslateTransform3D.OffsetXProperty, TransformBindingX);
BindingOperations.SetBinding(translateTransform3D, TranslateTransform3D.OffsetYProperty, TransformBindingY);
BindingOperations.SetBinding(translateTransform3D, TranslateTransform3D.OffsetZProperty, TransformBindingZ);


Any Idea?

Best regards
Agha
QuestionThrow Errors while run a wpf animated application Pin
damubooks21-Dec-09 1:46
damubooks21-Dec-09 1:46 
AnswerRe: Throw Errors while run a wpf animated application Pin
AghaKhan21-Dec-09 6:50
AghaKhan21-Dec-09 6:50 
QuestionUnable to start debugging. Pin
arun_pk21-Dec-09 0:07
arun_pk21-Dec-09 0:07 
AnswerRe: Unable to start debugging. Pin
Mark Salsbery21-Dec-09 13:22
Mark Salsbery21-Dec-09 13:22 
AnswerRe: Unable to start debugging. Pin
Vimalsoft(Pty) Ltd7-May-10 3:56
professionalVimalsoft(Pty) Ltd7-May-10 3:56 
AnswerRe: Unable to start debugging. Pin
erummirza30-Sep-10 20:06
erummirza30-Sep-10 20:06 
QuestionSeparator in WPF's TreeView Pin
Mohammad Dayyan20-Dec-09 23:35
Mohammad Dayyan20-Dec-09 23:35 
AnswerRe: Separator in WPF's TreeView Pin
Aviad P.21-Dec-09 0:32
Aviad P.21-Dec-09 0:32 
GeneralRe: Separator in WPF's TreeView Pin
Mohammad Dayyan21-Dec-09 2:14
Mohammad Dayyan21-Dec-09 2:14 
GeneralRe: Separator in WPF's TreeView Pin
Aviad P.21-Dec-09 2:42
Aviad P.21-Dec-09 2:42 
QuestionHow can i Impliment WPF programing in C# Dialog? Pin
pallaka20-Dec-09 20:33
pallaka20-Dec-09 20:33 
QuestionWPF, Serial Port, MutliThreading Pin
cppwxwidgetsss18-Dec-09 18:37
cppwxwidgetsss18-Dec-09 18:37 
AnswerRe: WPF, Serial Port, MutliThreading Pin
Garth J Lancaster18-Dec-09 19:27
professionalGarth J Lancaster18-Dec-09 19:27 
GeneralRe: WPF, Serial Port, MutliThreading Pin
cppwxwidgetsss22-Dec-09 18:32
cppwxwidgetsss22-Dec-09 18:32 
GeneralRe: WPF, Serial Port, MutliThreading Pin
C_Johnson28-Mar-11 9:37
C_Johnson28-Mar-11 9:37 
QuestionHow to connect MySql DataBase with ODBC connectivity to WPF display Pin
pallaka18-Dec-09 3:10
pallaka18-Dec-09 3:10 
QuestionCreating TreeViewItem dynamically ? Pin
Mohammad Dayyan17-Dec-09 20:28
Mohammad Dayyan17-Dec-09 20:28 

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.