RE: Lots of bind/notify classes

2010-05-27 Thread Steven Nagy
I might add, that even if you don't want to introduce Post# then the simple 
base class + Resharper combination is pretty good.
For example, your base class has some methods for raising property changed 
events. Then your ViewModel needs a property for first name.
You use the "prop" code snippet, this expands out very quickly to:

public string FirstName { get; set; }

Then ALT+Enter with Resharper lets you convert to backing field in total 3 
keystrokes:

private string _firstName;
public string FirstName
{
get { return _firstName; }
set { _firstName = value; }
}

Then a single call to property changed:

private string _firstName;
public string FirstName
{
get { return _firstName; }
set { _firstName = value; PropertyChanged("FirstName"); }
}

Not so bad, very minimal keystrokes.
Steven Nagy
Readify | Senior Developer
M: +61 404 044 513 | E: steven.n...@readify.net | 
B: azure.snagy.name

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Steven Nagy
Sent: Friday, 28 May 2010 4:25 PM
To: ozSilverlight
Subject: RE: Lots of bind/notify classes

Check out Post#:
http://www.sharpcrafters.com/postsharp/documentation/getting-started

Example:
http://ruskin-dantra.blogspot.com/2009/03/inotifypropertychanged-made-easier.html
Not sure if this works in Silverlight land though.
Steven Nagy
Readify | Senior Developer
M: +61 404 044 513 | E: steven.n...@readify.net | 
B: azure.snagy.name

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh
Sent: Friday, 28 May 2010 4:18 PM
To: 'ozSilverlight'
Subject: Lots of bind/notify classes

Look Dave, I can see you're really upset about this. I honestly think you ought 
to sit down calmly, take a stress pill, and think things over - HAL (2001)

I was wondering if anyone has found a nice way of creating/managing lots of 
classes that are suitable for binding and implement INotifyPropertyChanged. As 
you know, you have to keep coding properties like this:

public string CompanyName
{
get {return this.companyNameValue;}

set
{
if (value != this.companyNameValue)
{
this.companyNameValue = value;
NotifyPropertyChanged("CompanyName");
}
}
}

You can create a  simple base class to factor out the event, but not much else, 
as there is no way I know of to intercept any arbitrary property setter and add 
custom processing. Is that right?! Coding the above skeleton dozens or hundreds 
of times gets tedious and I'm hoping there's a better way. I did consider using 
a T4 generator to spit out the classes, but that's an obtuse way around the 
problem and will require extra research time (but I see others have done it 
already).

I have dozens of existing classes with dozens of properties and I'd like to use 
them for binding, but I'd have to expand every property to be like the same 
above, which would be hell.

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Lots of bind/notify classes

2010-05-27 Thread Carl . Scarlett
+1.  

 

I use snippets for this sort of stuff, which makes generating all that
code very easy.

 

The project I work on also uses a base class to hide the event.  It's
quite a large project, and I haven't seen it get in the way of doing
anything else.

 

I haven't tried the aspect idea (re:PostSharp).  I wonder how this would
affect Blendability?


Carl.

 

Carl Scarlett

Senior .NET/WPF Developer, UX Designer - Genesis Team

IT Applications Delivery | Bankwest

A: Level 5, 199 Hay Street | Perth | Western Australia | 6004

P: (08) 9449 8703

M: 0408 913 870

E: carl.scarl...@bankwest.com.au

 

 

 

From: ozsilverlight-boun...@ozsilverlight.com
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Richard
Mason 
Sent: Friday, 28 May 2010 2:22 PM
To: ozSilverlight 
Subject: Re: Lots of bind/notify classes

 

Hi Greg,

 

I hear your pain and reflect it.

 

You could probably set up a method using PostSharp to automatically
create the necessary setter code, but that's provided you can introduce
PostSharp into your process.

 

The best I've managed is to set up a Visual Studio code snippet to help
create them quickly. I deferred doing that for a long time, but recently
got around to it and it does make things much less painful. But
unfortunately still far from ideal. Just grab the existing 'prop' code
snippet and expand it out from there. 'tis fairly simple to do and well
worth the effort.

 

ciao, Richard

 

On Fri, May 28, 2010 at 4:18 PM, Greg Keogh  wrote:

Look Dave, I can see you're really upset about this. I honestly think
you ought to sit down calmly, take a stress pill, and think things over
- HAL (2001)

 

I was wondering if anyone has found a nice way of creating/managing lots
of classes that are suitable for binding and implement
INotifyPropertyChanged. As you know, you have to keep coding properties
like this:

 

public string CompanyName

{

get {return this.companyNameValue;}

 

set

{

if (value != this.companyNameValue)

{

this.companyNameValue = value;

NotifyPropertyChanged("CompanyName");

}

}

}

 

You can create a  simple base class to factor out the event, but not
much else, as there is no way I know of to intercept any arbitrary
property setter and add custom processing. Is that right?! Coding the
above skeleton dozens or hundreds of times gets tedious and I'm hoping
there's a better way. I did consider using a T4 generator to spit out
the classes, but that's an obtuse way around the problem and will
require extra research time (but I see others have done it already).

 

I have dozens of existing classes with dozens of properties and I'd like
to use them for binding, but I'd have to expand every property to be
like the same above, which would be hell.

 

Greg

 


___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___ 
ozsilverlight mailing list 
ozsilverlight@ozsilverlight.com 
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight 


___ 

This email has been scanned by the Bankwest Email Security System. 

___ 

___
Unencrypted electronic mail is not secure and may not be authentic.
If you have any doubts as to the contents please telephone to confirm.

This electronic transmission including any attachments is intended only
for those to whom it is addressed. It may contain copyright material or
information that is confidential, privileged or exempt from disclosure by law.
Any claim to privilege is not waived or lost by reason of mistaken transmission
of this information. If you are not the intended recipient you must not
distribute or copy this transmission and should please notify the sender.
Your costs for doing this will be reimbursed by the sender.

We do not accept liability in connection with computer virus, data corruption,
delay, interruption, unauthorised access or unauthorised amendment.
___


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
_
ozsilverlight mailing list

RE: Lots of bind/notify classes

2010-05-27 Thread Steven Nagy
Check out Post#:
http://www.sharpcrafters.com/postsharp/documentation/getting-started

Example:
http://ruskin-dantra.blogspot.com/2009/03/inotifypropertychanged-made-easier.html
Not sure if this works in Silverlight land though.
Steven Nagy
Readify | Senior Developer
M: +61 404 044 513 | E: steven.n...@readify.net | 
B: azure.snagy.name

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh
Sent: Friday, 28 May 2010 4:18 PM
To: 'ozSilverlight'
Subject: Lots of bind/notify classes

Look Dave, I can see you're really upset about this. I honestly think you ought 
to sit down calmly, take a stress pill, and think things over - HAL (2001)

I was wondering if anyone has found a nice way of creating/managing lots of 
classes that are suitable for binding and implement INotifyPropertyChanged. As 
you know, you have to keep coding properties like this:

public string CompanyName
{
get {return this.companyNameValue;}

set
{
if (value != this.companyNameValue)
{
this.companyNameValue = value;
NotifyPropertyChanged("CompanyName");
}
}
}

You can create a  simple base class to factor out the event, but not much else, 
as there is no way I know of to intercept any arbitrary property setter and add 
custom processing. Is that right?! Coding the above skeleton dozens or hundreds 
of times gets tedious and I'm hoping there's a better way. I did consider using 
a T4 generator to spit out the classes, but that's an obtuse way around the 
problem and will require extra research time (but I see others have done it 
already).

I have dozens of existing classes with dozens of properties and I'd like to use 
them for binding, but I'd have to expand every property to be like the same 
above, which would be hell.

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Lots of bind/notify classes

2010-05-27 Thread Richard Mason
Hi Greg,

I hear your pain and reflect it.

You could probably set up a method using PostSharp to automatically create
the necessary setter code, but that's provided you can introduce PostSharp
into your process.

The best I've managed is to set up a Visual Studio code snippet to help
create them quickly. I deferred doing that for a long time, but recently got
around to it and it does make things much less painful. But unfortunately
still far from ideal. Just grab the existing 'prop' code snippet and expand
it out from there. 'tis fairly simple to do and well worth the effort.

ciao, Richard

On Fri, May 28, 2010 at 4:18 PM, Greg Keogh  wrote:

>  *Look Dave, I can see you're really upset about this. I honestly think
> you ought to sit down calmly, take a stress pill, and think things over* –
> HAL (2001)
>
>
>
> I was wondering if anyone has found a nice way of creating/managing lots of
> classes that are suitable for binding and implement INotifyPropertyChanged.
> As you know, you have to keep coding properties like this:
>
>
>
> public string CompanyName
>
> {
>
> get {return this.companyNameValue;}
>
>
>
> set
>
> {
>
> if (value != this.companyNameValue)
>
> {
>
> this.companyNameValue = value;
>
> NotifyPropertyChanged("CompanyName");
>
> }
>
> }
>
> }
>
>
>
> You can create a  simple base class to factor out the event, but not much
> else, as there is no way I know of to intercept any arbitrary property
> setter and add custom processing. Is that right?! Coding the above skeleton
> dozens or hundreds of times gets tedious and I’m hoping there’s a better
> way. I did consider using a T4 generator to spit out the classes, but that’s
> an obtuse way around the problem and will require extra research time (but I
> see others have done it already).
>
>
>
> I have dozens of existing classes with dozens of properties and I’d like to
> use them for binding, but I’d have to expand every property to be like the
> same above, which would be hell.
>
>
>
> Greg
>
>
>
> ___
> ozsilverlight mailing list
> ozsilverlight@ozsilverlight.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Lots of bind/notify classes

2010-05-27 Thread Greg Keogh
Look Dave, I can see you're really upset about this. I honestly think you
ought to sit down calmly, take a stress pill, and think things over - HAL
(2001)

 

I was wondering if anyone has found a nice way of creating/managing lots of
classes that are suitable for binding and implement INotifyPropertyChanged.
As you know, you have to keep coding properties like this:

 

public string CompanyName

{

get {return this.companyNameValue;}

 

set

{

if (value != this.companyNameValue)

{

this.companyNameValue = value;

NotifyPropertyChanged("CompanyName");

}

}

}

 

You can create a  simple base class to factor out the event, but not much
else, as there is no way I know of to intercept any arbitrary property
setter and add custom processing. Is that right?! Coding the above skeleton
dozens or hundreds of times gets tedious and I'm hoping there's a better
way. I did consider using a T4 generator to spit out the classes, but that's
an obtuse way around the problem and will require extra research time (but I
see others have done it already).

 

I have dozens of existing classes with dozens of properties and I'd like to
use them for binding, but I'd have to expand every property to be like the
same above, which would be hell.

 

Greg

 

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Images invisible (SOLVED)

2010-05-27 Thread Greg Keogh
Stephen, I own you a bottle of champagne, as you accidentally pointed out
what was wrong with my project.

 

Why was it using the file system I don't do that, I prefer to use HTTP
as it's more realistic. I didn't notice the file system path in the web
browser.

 

So sometime over the last couple of days, some configuration of my project
has changed, some defaults I dunno what, but by carefully putting all my
project settings back according to those of another working SL3 project it
has come good. VS has been crashing a lot, and I had to purge all the hidden
solution files recently, so that's probably broken my defaults.

 

So it couldn't load the images because I was running from the file system.
There's a warning for you!!

 

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Images invisible

2010-05-27 Thread Greg Keogh
I tried to set the web app hosting my Silverlight app to run from the
localhost IIS websever, but it continues to run from the file system.
Fiddler will be useless until I can get it over HTTP. So now I have another
roadblock on the way to diagnosing my roadblock - Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Images invisible

2010-05-27 Thread Darren Neimke

It's all to do with the Red Queen Hypothesis...
http://www.indiana.edu/~curtweb/Research/Red_Queen%20hyp.html
"At the top of the hill, the
Red Queen begins to run, faster and faster. Alice runs after the Red Queen, but
is further perplexed to find that neither one seems to be moving. When they
stop running, they are in exactly the same place. Alice remarks on this, to
which the Red Queen responds: "Now, here,
you see, it takes all the running you can
do to keep in the same place"
:-)

Kind Regards, Darren neimkedarren.nei...@live.com http://2010wave.blogspot.com  



From: g...@mira.net
To: ozsilverlight@ozsilverlight.com
Subject: RE: Images invisible
Date: Fri, 28 May 2010 14:18:30 +1000


















You
certainly find all the issues. Remind me to give you a ping if i'm ever looking
for a beta tester. :p

 

But,
I’m not even trying to find issues, they just happen, continuously,
unexpectedly. I don’t want any issues. I have been writing software for
30 years in COBOL, Algol, Fortran, IBM assembler, REXX, Clist, C, C++, Java, 
Mathematica,
C#, VB6, VB.NET on ICL, Burroughs, Honeywell, Unix and Windows 3.1 to 7 and I
have never had a worst experience before the arrival of XAML, Blend, 
Silverlight,
WPF and WCF. I’m deadly serious, all you evangelists out there, all you
keen demo makers and spruikers ...

 

·
I’m
stuck using two major expensive and utterly different products on two screens
at once (VS and Blend) to write my UI

·
Blend
and VS produce different designer errors and compile failures on the same
project

·
After
more than 2 years of releases I’m still getting Catastrophic Error
messages

·
The
documentation is scattered everywhere (if it exists at all) for different 
controls
and kits

·
I
spend half my life web searching for answers to weird behaviour or
incomprehensible fatal errors

·
I
have to jump through hoops to bypass security lockdowns

·
The
VS designer crashes 10 times a day in XAML and I have to uninstall VS plugins
as an attempted cure

·
It
takes hours to get any new control working acceptably

·
I
spend hours tweaking weird unexpected sizing behaviour trying to get the
appearance I desire

·
Even
the Blend designer sizes weirdly

·
First
there were too few controls, now there are too many and too many choices and I’m
getting bloated with DLLs from everywhere and only using tiny bits of each of 
them

·
Writing
binding code takes 20 times longer than in Winforms as all the code is pushed
into converters

·
It
takes 20 times longer to write anything in XAML compared to WinForms. One of my
WPF edit screens has dozens of different data types and collections bound to
it, and after a week of writing general purpose Type converters and validators
I still haven’t got all of the two-way binding working acceptably.

·
Now
all of my images have vanished.

·
Getting
a new dev machine to compile Silverlight projects requires a nightmare of
preparations

·
I
live in constant fear that every time I boot my dev machine or open a
Silverlight project that something incomprehensible will go wrong

 

I’m
fu*king fed up with Silverlight, WPF and WCF. Maybe VS2010, Framework 4 and
Silverlight 4  will improve things, but I can’t migrate until a
batch of releases is finalised over the coming several weeks.

 

Oh
well, back to work.

 

Greg



  
_
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Images invisible

2010-05-27 Thread Greg Keogh
You certainly find all the issues. Remind me to give you a ping if i'm ever
looking for a beta tester. :p

 

But, I'm not even trying to find issues, they just happen, continuously,
unexpectedly. I don't want any issues. I have been writing software for 30
years in COBOL, Algol, Fortran, IBM assembler, REXX, Clist, C, C++, Java,
Mathematica, C#, VB6, VB.NET on ICL, Burroughs, Honeywell, Unix and Windows
3.1 to 7 and I have never had a worst experience before the arrival of XAML,
Blend, Silverlight, WPF and WCF. I'm deadly serious, all you evangelists out
there, all you keen demo makers and spruikers ...

 

. I'm stuck using two major expensive and utterly different products
on two screens at once (VS and Blend) to write my UI

. Blend and VS produce different designer errors and compile
failures on the same project

. After more than 2 years of releases I'm still getting Catastrophic
Error messages

. The documentation is scattered everywhere (if it exists at all)
for different controls and kits

. I spend half my life web searching for answers to weird behaviour
or incomprehensible fatal errors

. I have to jump through hoops to bypass security lockdowns

. The VS designer crashes 10 times a day in XAML and I have to
uninstall VS plugins as an attempted cure

. It takes hours to get any new control working acceptably

. I spend hours tweaking weird unexpected sizing behaviour trying to
get the appearance I desire

. Even the Blend designer sizes weirdly

. First there were too few controls, now there are too many and too
many choices and I'm getting bloated with DLLs from everywhere and only
using tiny bits of each of them

. Writing binding code takes 20 times longer than in Winforms as all
the code is pushed into converters

. It takes 20 times longer to write anything in XAML compared to
WinForms. One of my WPF edit screens has dozens of different data types and
collections bound to it, and after a week of writing general purpose Type
converters and validators I still haven't got all of the two-way binding
working acceptably.

. Now all of my images have vanished.

. Getting a new dev machine to compile Silverlight projects requires
a nightmare of preparations

. I live in constant fear that every time I boot my dev machine or
open a Silverlight project that something incomprehensible will go wrong

 

I'm fu*king fed up with Silverlight, WPF and WCF. Maybe VS2010, Framework 4
and Silverlight 4  will improve things, but I can't migrate until a batch of
releases is finalised over the coming several weeks.

 

Oh well, back to work.

 

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Images invisible

2010-05-27 Thread Stephen Price
no no, its not in fiddler. you type it into your url address bar in your
browser.

if your normal url is "localhost/default.html" then you change it to read "
somesite.com/default.html"

I mean literally, letter for letter. use the actual words *somesite.com*, I
don't mean just any old name, I mean literally. :)
Put it in your browser.

you can ping this domain name from a commandline.

http://www.west-wind.com/weblog/posts/596348.aspx explains how to use
127.0.0.1 or this one
http://geekswithblogs.net/PartialMethod/archive/2009/02/06/debug-localhost-with-fiddler-2.aspx
shows
what i mean about somesite.com

HTH
Stephen

On Fri, May 28, 2010 at 9:23 AM, Greg Keogh  wrote:

> If you change the localhost URL to "somesite.com" (it resolves to
> 127.0.0.1) then you can use fiddler to see what's going on. Also try
> silverlight spy?
>
> Yeah, but I spent 20 minutes looking all through Fiddler for the options to
> set this without luck. There are hundreds of pages where people tell about
> the "dot" suffix trick and all that, but not a single person says just
> where
> you make this change. I'm using 2.2.4.6, so I'll download the latest one
> and
> have a fresh look.
>
> Greg
>
> ___
> ozsilverlight mailing list
> ozsilverlight@ozsilverlight.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Images invisible

2010-05-27 Thread Stephen Price
If you change the localhost URL to "somesite.com" (it resolves to
127.0.0.1) then you can use fiddler to see what's going on. Also maybe
try silverlight spy, might give you a hint.

I tried to send this via my ipad but my google apps but i think it's set up
to send from my email address i'm not subscribed to the list with. don't
think it made it. apologies if it came through twice.

You certainly find all the issues. Remind me to give you a ping if i'm ever
looking for a beta tester. :p

On Fri, May 28, 2010 at 6:19 AM, Greg Keogh  wrote:

>  Late last night I was working away on my SL3 app doing the compile-run,
> compile-run thing over and over as usual. Without warning the app fired up
> and all of the images were blank. And by “blank” I mean invisible. All 61
> images in the solution seems to be taking space on the screens, but are
> invisible/blank. There are no loading errors or JavaScript errors or any
> warnings of any kind.
>
>
>
> I deleted all binaries and rebuilt everything. I’ve rebooted this morning
> and rebuilt everything. I tried to use Fiddler2 to see if there were any
> silent 404s, but it won’t trace localhost (there are dozens of pages of
> instructions on how to do this, but they all are nonsensical or don’t
> explain where the settings are in Fiddler2 to allow this).
>
>
>
> I have never seen anything like this in my life, and I never would have
> guessed such a thing was possible. I would have been less surprised if my
> machine sang the national anthem when I ran the app.
>
>
>
> I’ve already wasted 2 hours on this, so I thought I’d mention it anyway
> just in case someone has seen the symptom before.
>
>
>
> Greg
>
> ___
> ozsilverlight mailing list
> ozsilverlight@ozsilverlight.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Images invisible

2010-05-27 Thread Greg Keogh
If you change the localhost URL to "somesite.com" (it resolves to
127.0.0.1) then you can use fiddler to see what's going on. Also try
silverlight spy?

Yeah, but I spent 20 minutes looking all through Fiddler for the options to
set this without luck. There are hundreds of pages where people tell about
the "dot" suffix trick and all that, but not a single person says just where
you make this change. I'm using 2.2.4.6, so I'll download the latest one and
have a fresh look.

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Images invisible

2010-05-27 Thread Stephen Price
If you change the localhost URL to "somesite.com" (it resolves to
127.0.0.1) then you can use fiddler to see what's going on. Also maybe
try silverlight spy, might give you a hint.

I tried to send this via my ipad but my google apps but i think it's set up
to send from my email address i'm not subscribed to the list with. don't
think it made it. apologies if it came through twice.

You certainly find all the issues. Remind me to give you a ping if i'm ever
looking for a beta tester. :p

On Fri, May 28, 2010 at 6:19 AM, Greg Keogh  wrote:

>  Late last night I was working away on my SL3 app doing the compile-run,
> compile-run thing over and over as usual. Without warning the app fired up
> and all of the images were blank. And by “blank” I mean invisible. All 61
> images in the solution seems to be taking space on the screens, but are
> invisible/blank. There are no loading errors or JavaScript errors or any
> warnings of any kind.
>
>
>
> I deleted all binaries and rebuilt everything. I’ve rebooted this morning
> and rebuilt everything. I tried to use Fiddler2 to see if there were any
> silent 404s, but it won’t trace localhost (there are dozens of pages of
> instructions on how to do this, but they all are nonsensical or don’t
> explain where the settings are in Fiddler2 to allow this).
>
>
>
> I have never seen anything like this in my life, and I never would have
> guessed such a thing was possible. I would have been less surprised if my
> machine sang the national anthem when I ran the app.
>
>
>
> I’ve already wasted 2 hours on this, so I thought I’d mention it anyway
> just in case someone has seen the symptom before.
>
>
>
> Greg
>
> ___
> ozsilverlight mailing list
> ozsilverlight@ozsilverlight.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Images invisible

2010-05-27 Thread Carl . Scarlett
Good lord Greg.  Silverlight seems determined to drive you screaming for
the hills.

 

I sympathise completely, but can offer no help.

 

Good luck!

 

Carl.

 

Carl Scarlett

Senior .NET/WPF Developer, UX Designer - Genesis Team

IT Applications Delivery | Bankwest

A: Level 5, 199 Hay Street | Perth | Western Australia | 6004

P: (08) 9449 8703

M: 0408 913 870

E: carl.scarl...@bankwest.com.au

 

 

From: ozsilverlight-boun...@ozsilverlight.com
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh

Sent: Friday, 28 May 2010 6:20 AM
To: "'ozSilverlight'" 
Subject: Images invisible

 

Late last night I was working away on my SL3 app doing the compile-run,
compile-run thing over and over as usual. Without warning the app fired
up and all of the images were blank. And by "blank" I mean invisible.
All 61 images in the solution seems to be taking space on the screens,
but are invisible/blank. There are no loading errors or JavaScript
errors or any warnings of any kind.

 

I deleted all binaries and rebuilt everything. I've rebooted this
morning and rebuilt everything. I tried to use Fiddler2 to see if there
were any silent 404s, but it won't trace localhost (there are dozens of
pages of instructions on how to do this, but they all are nonsensical or
don't explain where the settings are in Fiddler2 to allow this).

 

I have never seen anything like this in my life, and I never would have
guessed such a thing was possible. I would have been less surprised if
my machine sang the national anthem when I ran the app.

 

I've already wasted 2 hours on this, so I thought I'd mention it anyway
just in case someone has seen the symptom before.

 

Greg


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

___ 
ozsilverlight mailing list 
ozsilverlight@ozsilverlight.com 
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight 


___ 

This email has been scanned by the Bankwest Email Security System. 

___ 

___
Unencrypted electronic mail is not secure and may not be authentic.
If you have any doubts as to the contents please telephone to confirm.

This electronic transmission including any attachments is intended only
for those to whom it is addressed. It may contain copyright material or
information that is confidential, privileged or exempt from disclosure by law.
Any claim to privilege is not waived or lost by reason of mistaken transmission
of this information. If you are not the intended recipient you must not
distribute or copy this transmission and should please notify the sender.
Your costs for doing this will be reimbursed by the sender.

We do not accept liability in connection with computer virus, data corruption,
delay, interruption, unauthorised access or unauthorised amendment.
___


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
_
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Images invisible

2010-05-27 Thread Stephen Price
If you change the localhost URL to "somesite.com" (it resolves to
127.0.0.1) then you can use fiddler to see what's going on. Also try
silverlight spy?

On Friday, May 28, 2010, Greg Keogh  wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> Late last night I was working away on my SL3 app doing the
> compile-run, compile-run thing over and over as usual. Without warning the app
> fired up and all of the images were blank. And by “blank” I mean
> invisible. All 61 images in the solution seems to be taking space on the
> screens, but are invisible/blank. There are no loading errors or JavaScript
> errors or any warnings of any kind.
>
>
>
> I deleted all binaries and rebuilt everything. I’ve
> rebooted this morning and rebuilt everything. I tried to use Fiddler2 to see 
> if
> there were any silent 404s, but it won’t trace localhost (there are
> dozens of pages of instructions on how to do this, but they all are 
> nonsensical
> or don’t explain where the settings are in Fiddler2 to allow this).
>
>
>
> I have never seen anything like this in my life, and I never
> would have guessed such a thing was possible. I would have been less surprised
> if my machine sang the national anthem when I ran the app.
>
>
>
> I’ve already wasted 2 hours on this, so I thought I’d
> mention it anyway just in case someone has seen the symptom before.
>
>
>
> Greg
>
>
>
>
>
>
>
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Images invisible (addendum)

2010-05-27 Thread Greg Keogh
The invisible images problem only happens on my dev machine.

 

I copied the whole solution to my live web server and loaded it in IE8 via
IIS and it looks normal. Is it something to do with running it under the
Visual Studio Development Server on port 55310? That's the way I've been
running it for the last 18 months.

 

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Images invisible

2010-05-27 Thread Greg Keogh
Late last night I was working away on my SL3 app doing the compile-run,
compile-run thing over and over as usual. Without warning the app fired up
and all of the images were blank. And by "blank" I mean invisible. All 61
images in the solution seems to be taking space on the screens, but are
invisible/blank. There are no loading errors or JavaScript errors or any
warnings of any kind.

 

I deleted all binaries and rebuilt everything. I've rebooted this morning
and rebuilt everything. I tried to use Fiddler2 to see if there were any
silent 404s, but it won't trace localhost (there are dozens of pages of
instructions on how to do this, but they all are nonsensical or don't
explain where the settings are in Fiddler2 to allow this).

 

I have never seen anything like this in my life, and I never would have
guessed such a thing was possible. I would have been less surprised if my
machine sang the national anthem when I ran the app.

 

I've already wasted 2 hours on this, so I thought I'd mention it anyway just
in case someone has seen the symptom before.

 

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Dynamic creation of Accordion items crash (solved)

2010-05-27 Thread Greg Keogh
It was an intellisense induced error. The second TextBox should have been a
TextBlock. I was applying a style intended for the wrong type, bu tcouldnt
see it for looking. Great error message eh!? --Greg

 


Dynamic creation of Accordion items crash

2010-05-27 Thread Greg Keogh
The following code crashes on the highlighted line with catastrophic failure
0x8000. All I'm doing is looping to create items for an Accordion
control. It's just dying when I assign the (non null) Style to the second
Textbox. Anyone tried this sort of thing before?  - Greg

 

 



  

  





  

  

  

  



 

[cut]

 

accordNavigate.Items.Clear();

string[] titles = new string[] { "Labels", "Cells", "Significance",
"Titles", "Vectors" };

for (int i = 0; i ___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Liquid Rich Text control

2010-05-27 Thread Stephen Price
Quick one,

Has anyone used the Liquid Rich Text box? It doesn't seem to be "real" rtf
format and we need a way to convert it's output into rtf for Active
Reports.

thanks,
Stephen
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Liquid Rich Text control

2010-05-27 Thread Stephen Price
Quick one,

Has anyone used the Liquid Rich Text box? It doesn't seem to be "real" rtf
format and we need a way to convert it's output into rtf for Active
Reports.

thanks,
Stephen
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight