Click here to Skip to main content
15,911,317 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF "dealing cards" animation.. need help Pin
koleraba24-Mar-10 23:35
koleraba24-Mar-10 23:35 
QuestionVisual Studio as the default external editor in Blend 3 Pin
David Shapira24-Mar-10 10:59
David Shapira24-Mar-10 10:59 
AnswerRe: Visual Studio as the default external editor in Blend 3 Pin
Kunal Chowdhury «IN»28-Mar-10 23:14
professionalKunal Chowdhury «IN»28-Mar-10 23:14 
GeneralRe: Visual Studio as the default external editor in Blend 3 Pin
David Shapira29-Mar-10 10:47
David Shapira29-Mar-10 10:47 
GeneralRe: Visual Studio as the default external editor in Blend 3 Pin
Kunal Chowdhury «IN»29-Mar-10 16:25
professionalKunal Chowdhury «IN»29-Mar-10 16:25 
Questionbase wizard Pin
sth_Weird24-Mar-10 2:46
sth_Weird24-Mar-10 2:46 
AnswerRe: base wizard Pin
Parwej Ahamad24-Mar-10 6:22
professionalParwej Ahamad24-Mar-10 6:22 
GeneralRe: base wizard Pin
sth_Weird25-Mar-10 0:59
sth_Weird25-Mar-10 0:59 
GeneralRe: base wizard Pin
Parwej Ahamad25-Mar-10 3:40
professionalParwej Ahamad25-Mar-10 3:40 
GeneralRe: base wizard Pin
sth_Weird25-Mar-10 3:55
sth_Weird25-Mar-10 3:55 
GeneralRe: base wizard Pin
Parwej Ahamad25-Mar-10 5:44
professionalParwej Ahamad25-Mar-10 5:44 
AnswerRe: base wizard Pin
Jammer25-Mar-10 0:45
Jammer25-Mar-10 0:45 
GeneralRe: base wizard Pin
sth_Weird25-Mar-10 0:54
sth_Weird25-Mar-10 0:54 
GeneralRe: base wizard Pin
keyur soni25-Mar-10 1:08
keyur soni25-Mar-10 1:08 
QuestionUsing wcf services in Silverlight that is running in console application Pin
Sanjay_bmsit24-Mar-10 2:23
Sanjay_bmsit24-Mar-10 2:23 
AnswerRe: Using wcf services in Silverlight that is running in console application Pin
Michael J. Eber16-Apr-10 20:30
Michael J. Eber16-Apr-10 20:30 
QuestionSilverlight and WCf services Pin
sanjay_honeywell24-Mar-10 0:16
sanjay_honeywell24-Mar-10 0:16 
AnswerRe: Silverlight and WCf services Pin
Abhinav S24-Mar-10 3:35
Abhinav S24-Mar-10 3:35 
QuestionBinding WPF element to property of a class Pin
Prasoon Chaudhary23-Mar-10 20:33
Prasoon Chaudhary23-Mar-10 20:33 
AnswerRe: Binding WPF element to property of a class Pin
koleraba23-Mar-10 22:22
koleraba23-Mar-10 22:22 
AnswerRe: Binding WPF element to property of a class Pin
Prasoon Chaudhary24-Mar-10 23:40
Prasoon Chaudhary24-Mar-10 23:40 
Got the answer. Thanks koleraba! Just adding few bits and adjustments to your code to make it run.

Inside class, we need to define property something like this:

public class BindingClass : DependencyObject
   {
       public static DependencyProperty EllipseLeftProperty = DependencyProperty.Register("iEllipseLeft", typeof(int), typeof(BindingClass));
       public int iEllipseLeft
       {
           get { return (int)GetValue(EllipseLeftProperty); }
           set { SetValue(EllipseLeftProperty, value); }
       }
   }

Also in starting, we need to set data context of the object/canvas or Window:
BindingClass bClass = new BindingClass();
objEllipse.DataContext = bClass; 

And, in .xaml file:

in stead of
<Ellipse Fill="#FFFE0C0C" Width="32" Height="32" Canvas.Left= "5" Canvas.Top="48"/> 

write
<Ellipse Fill="#FFFE0C0C" Width="32" Height="32" Canvas.Left= "{Binding Path=iEllipseLeft}" Canvas.Top="48"/>

That completes the binding!! Smile | :)
QuestionCarousel website.. Beginner Pin
Yraith23-Mar-10 7:45
Yraith23-Mar-10 7:45 
AnswerRe: Carousel website.. Beginner Pin
Kunal Chowdhury «IN»23-Mar-10 16:57
professionalKunal Chowdhury «IN»23-Mar-10 16:57 
AnswerRe: Carousel website.. Beginner Pin
Abhinav S23-Mar-10 18:54
Abhinav S23-Mar-10 18:54 
GeneralRe: Carousel website.. Beginner Pin
Yraith24-Mar-10 5:02
Yraith24-Mar-10 5:02 

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.