Click here to Skip to main content
15,887,746 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Manipulating a PNG palette Pin
pnart13-Jul-09 7:05
pnart13-Jul-09 7:05 
QuestionMultiple progress bars Pin
vsaratkar9-Jul-09 4:10
vsaratkar9-Jul-09 4:10 
AnswerRe: Multiple progress bars Pin
Pete O'Hanlon9-Jul-09 4:13
mvePete O'Hanlon9-Jul-09 4:13 
AnswerRe: Multiple progress bars Pin
#realJSOP9-Jul-09 4:33
mve#realJSOP9-Jul-09 4:33 
AnswerRe: Multiple progress bars Pin
vsaratkar9-Jul-09 8:53
vsaratkar9-Jul-09 8:53 
GeneralRe: Multiple progress bars Pin
#realJSOP9-Jul-09 9:32
mve#realJSOP9-Jul-09 9:32 
GeneralRe: Multiple progress bars Pin
Mark Salsbery10-Jul-09 7:04
Mark Salsbery10-Jul-09 7:04 
QuestionCannot set a property on object 'Identity' because it is in a read-only state. [modified] Pin
ASysSolvers9-Jul-09 3:08
ASysSolvers9-Jul-09 3:08 
I am getting a eroor from my code, i cant trace the issue/bug . here is my code bit...

private void DoArrange()<br />
        {<br />
            Point center = new Point((this.Width - ItemSize) / 2, (this.Height - ItemSize) / 2);<br />
            double radiusX = center.X;<br />
            double radiusY = center.Y;<br />
            double scale = ScalePerspective;<br />
<br />
            for (int i = 0; i &lt; Children.Count; i++)<br />
            {<br />
                UIElement item = Children[i];<br />
                double radians = (double)item.GetValue(CarouselPanel.AngleProperty);<br />
<br />
                Point p = new Point(<br />
                                    (Math.Cos(radians) * radiusX) + center.X,<br />
                                    (Math.Sin(radians) * radiusY) + center.Y<br />
                                   );<br />
<br />
                if (item.RenderTransform == null)<br />
                {<br />
                    item.RenderTransform = new MatrixTransform();<br />
                    item.RenderTransformOrigin = new Point(0.5, 0.5);<br />
                }<br />
                MatrixTransform mt = item.RenderTransform as MatrixTransform;<br />
                double scaleMinusRounding = p.Y / (center.Y + radiusY);<br />
                double scaleX = Math.Min(scaleMinusRounding + scale, 1.0);<br />
                double scaleY = Math.Min(scaleMinusRounding + scale, 1.0);<br />
                Matrix mx = new Matrix(scaleX, 0.0, 0.0, scaleY, 0.0, 0.0);<br />
            <br />
               mt.Matrix = mx;<br />
                item.RenderTransform = mt;<br />
                <br />
                int zIndex = (int)((p.Y / base.Height) * 50);<br />
                item.SetValue(Canvas.ZIndexProperty, zIndex);<br />
                Rect r = new Rect(p.X, p.Y, ItemSize, ItemSize);<br />
                item.Arrange(r);<br />
            }<br />
        }


What could be the issue i am using a WPF(win) application.

modified on Thursday, July 9, 2009 9:48 AM

AnswerRe: Cannot set a property on object 'Identity' because it is in a read-only state. Pin
Pete O'Hanlon9-Jul-09 3:33
mvePete O'Hanlon9-Jul-09 3:33 
GeneralRe: Cannot set a property on object 'Identity' because it is in a read-only state. Pin
ASysSolvers9-Jul-09 3:50
ASysSolvers9-Jul-09 3:50 
AnswerRe: Cannot set a property on object 'Identity' because it is in a read-only state. Pin
Pete O'Hanlon9-Jul-09 4:13
mvePete O'Hanlon9-Jul-09 4:13 
GeneralRe: Cannot set a property on object 'Identity' because it is in a read-only state. Pin
ASysSolvers9-Jul-09 4:27
ASysSolvers9-Jul-09 4:27 
GeneralRe: Cannot set a property on object 'Identity' because it is in a read-only state. Pin
Pete O'Hanlon9-Jul-09 4:38
mvePete O'Hanlon9-Jul-09 4:38 
GeneralRe: Cannot set a property on object 'Identity' because it is in a read-only state. Pin
ASysSolvers9-Jul-09 5:03
ASysSolvers9-Jul-09 5:03 
QuestionPropertyChanged Nofification Pin
schiebel-t9-Jul-09 1:22
schiebel-t9-Jul-09 1:22 
AnswerRe: PropertyChanged Nofification Pin
Pete O'Hanlon9-Jul-09 1:38
mvePete O'Hanlon9-Jul-09 1:38 
GeneralRe: PropertyChanged Nofification Pin
up_late21-Jul-09 13:33
up_late21-Jul-09 13:33 
QuestionWPF Toolkit: DataGrid disbled the cell Pin
laprathab9-Jul-09 0:15
laprathab9-Jul-09 0:15 
Questiondefault control template xaml Pin
Bob Bedell8-Jul-09 13:28
Bob Bedell8-Jul-09 13:28 
AnswerRe: default control template xaml Pin
Kamal Gurnani9-Jul-09 1:06
Kamal Gurnani9-Jul-09 1:06 
GeneralRe: default control template xaml Pin
Bob Bedell9-Jul-09 12:02
Bob Bedell9-Jul-09 12:02 
GeneralRe: default control template xaml Pin
Bob Bedell9-Jul-09 12:04
Bob Bedell9-Jul-09 12:04 
GeneralRe: default control template xaml Pin
Bob Bedell9-Jul-09 16:12
Bob Bedell9-Jul-09 16:12 
GeneralRe: default control template xaml Pin
Bob Bedell11-Jul-09 4:08
Bob Bedell11-Jul-09 4:08 
Questiontextbox - select all Pin
teejayem8-Jul-09 6:07
teejayem8-Jul-09 6:07 

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.