RE: Generating path language strings

2012-07-12 Thread Greg Keogh
>Expression Design has a larger range of vector drawing tools than Blend, and can export as XAML, or you can copy and paste the XAML. You're right. I rarely use Expression Design except to make some simplistic images with coloured shapes. I read the F1 help on "paths, creating" and found it qu

Generating path language strings

2012-07-11 Thread Greg Keogh
Earlier this year someone pointed me to the Styled ListBox sample. I was quite impressed the clever trick of totally restyling the ListBox control and item templates into a list polygons. I managed to convert the control to Silverlig

RE: Blend interactivity and animations

2012-07-01 Thread Greg Keogh
Folks, I finally spent a couple of hours running tutorials from Blend's help file. As I've complained before, you have to learn and remember where everything is in the very cluttered tool panes and then do things in the right order. I have created some storyboards and used the ControlStoryboard

Blend interactivity and animations

2012-07-01 Thread Greg Keogh
Shane (and others), how on earth did you create the animation code last week that used the interactivity namespace? I just created a simple SL4 app with a single ListBox, opened it up in Blend 4 and bumbled around to try and add a mouse-over behaviour to make it expand. I hardly ever use Blend

RE: Browser scroll bars

2012-06-26 Thread Greg Keogh
>Currently your browser is set to 110% zoom. Does it still exhibit this behaviour if you return it to 100%? Sorry, I just stuffing around changing things and I took the screen shot at a bad time. The zoom has no effect on the problem -- Greg ___

Browser scroll bars

2012-06-26 Thread Greg Keogh
Back again ... I'm plagued by random scroll bars appearing when I resize IE containing my SL4 app which fills the window (see pic). For an hour I've been fiddling with width, height and overflow in the css and the html, but it only alters the symptoms slightly. Web searches find lots of complaints

RE: Storyboard crash

2012-06-26 Thread Greg Keogh
Chui has it! Storyboard.TargetProperty="(TransformGroup.RenderTransform).Children[0].Angl e" From="90" To="0"> Now I look again, this makes the TargetProperty match the first child of the control's RenderTransform. What confuses me is that I pasted the orig

RE: Storyboard crash

2012-06-25 Thread Greg Keogh
Shane, sadly the x:Name didn't work because the target name isn't resolved. Chui, I'll look at your suggestion when I have some experimental time later tonight -- Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.cod

Storyboard crash

2012-06-24 Thread Greg Keogh
Folks, in the XAML and code below I'm getting the crash "Cannot resolve TargetProperty RenderTransform.Children[0].Angle on specified object." It all looks correct to me, can anyone see what's wrong? This code was copied from a WPF app where it's working fine and creates a nice "spinout" effect on

RE: Animating an image

2012-06-24 Thread Greg Keogh
>Silverlight 5 can flow between text boxes. I forget the tag. The RichTextBox in SL4 might be my saviour. I'm playing with it now -- Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinf

RE: Animating an image

2012-06-24 Thread Greg Keogh
Shane et al, after considering the structure of my app I had to create the animations and storyboard for the help icon in code. I have a base class for all of my controls containing the help icon, so it's convenient to put the clump of ugly code in there. However, the result is quite nice as the ic

RE: Animating an image

2012-06-24 Thread Greg Keogh
So Shane, thanks, I can use triggers! I just had this mental warning that triggers weren't in SL4 ... Ah but I see you're using interactivity, which I can't recall using before. It looks like I'm missing out on a few "tricks". I'll paste your code into the app later and see how it goes. I hope you'

Animating an image

2012-06-23 Thread Greg Keogh
Folks, I've been writing WPF for several weeks and I just returned to doing some SL4 coding. I've already forgotten if I can do something declaratively, or I need code, or a bit of both. I've placed a small help Image at the bottom left of charts (see screen shot) and I'd like the image to expand o

RE: Creating Office documents

2012-05-18 Thread Greg Keogh
Les, one of my colleagues must be one of the few living people on earth who has managed to decrypt the open office SDK and has written library code that creates documents directly. It's all written in C++ so unfortunately it can't be used on the SL client side. There is nowhere to save the generate

Creating Office documents

2012-05-18 Thread Greg Keogh
Folks, we've had requests for our SL4 app to generate Word, Excel and PowerPoint files. Security restrictions normally prevent this and there are problems with dependencies on the client. At the moment as a workaround we simply paste XML and text into the clipboard and the user then pastes it into

RE: Tracing deployed app

2012-04-21 Thread Greg Keogh
Chaps, I spent an hour this morning adding simple logging inside my new SL4 app. I added a button and a child window to display the stack of messages in a ListBox. It wasn’t much new code and it works fine and helped me locate the problem quickly once it was working. It’s a rather low-tech fix.

Tracing deployed app

2012-04-21 Thread Greg Keogh
Folks, I have one of those stinkers where my SL4 app woks nicely on my dev machine, but when it's deployed to the live server it behaves incorrectly. So I'm wondering what the easiest way is to log/trace what's happening inside the app on the live machine. In a previous app I had laced the code wit

RE: Enumerating children of a type

2012-04-20 Thread Greg Keogh
Jordan, I'm writing a general purpose "dashboard" where it can be populated with various charts, pickers, panels etc in different ways. I ask for blocks of XML to feed into the various controls, so it's all rather flexible and dynamic. I have to match the "id" of a block of XML to a child control (

Enumerating children of a type

2012-04-19 Thread Greg Keogh
I find I'm often enumerating down the visual tree looking for child controls of a certain type. Is there an elegant and reliable way of coding this that people prefer? -- Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0

RE: you need to install the latest silverlight developer runtime (solved)

2012-04-18 Thread Greg Keogh
I don't exactly know what I was doing, but I stumbled upon a link to the SL(4?) dev runtime http://go.microsoft.com/fwlink/?LinkID=188039 I installed this and my developer V4 runtime is back again. What gets me is that I meticulously keep my installers in folders and I have no history of th

you need to install the latest silverlight developer runtime

2012-04-18 Thread Greg Keogh
Sometime yesterday I wanted to watch a video and I was asked to install the latest Silverlight, stupidly I said yes. It seems to have been V5 I installed. Now I can't open any SL4 projects due to: "you need to install the latest silverlight developer runtime". So from Programs and Features I un

In praise of slsvcutil.exe

2012-03-29 Thread Greg Keogh
Folks, Thanks to a hint by Brendan in the Silverlight forum I was led to find this utility (on my machine): "%ProgramFiles(x86)%\Microsoft SDKs\Silverlight\v4.0\Tools\slsvcutil .exe" Thank heavens for this, as it means I c

RE: Another typical problem

2012-03-29 Thread Greg Keogh
Chaps, I just got home after another day of suffering in a different office. Brendan, I do like to use svcutil to generate proxies for non-Silverlight projects. I wanted to do the same for SL projects but never found out what "trick" the build process was using to generate the code behind the "

Another typical problem

2012-03-28 Thread Greg Keogh
Well it's happened again. I spent two hours this morning refactoring a demo SL4 project to prepare for expansion. I split a few classes, tidied things up, etc. I hit F5 to run and it says I have a cross domain call failure. I spent the next two hours trying to fix this problem. I removed and ad

RE: Complex region selection

2012-03-23 Thread Greg Keogh
Thanks Richard, you have mentioned some very interesting tools and techniques, so technically interesting in fact that I feel compelled to get the tools and play with them. I refuse to be defeated by shapefiles - Greg ___ ozsilverlight mailing list o

RE: Complex region selection

2012-03-22 Thread Greg Keogh
Chaps, I found some free downloads of shapefiles for various states and countries, but then I had to go looking for a managed code library that can manipulate shp, prj and dbx files. I found SharpMap and DotSpatial which look very impressive for apps with maps, but it's huge overkill for me. I just

RE: Complex region selection

2012-03-21 Thread Greg Keogh
Chris, that's a really weird sample, putting it in a ListBox, I mean he could have put it all in a Canvas to be more realistic. However there are some interesting clues inside. He has the XML state coordinates, so they (and other stuff) must be publicly available somewhere (I'm still looking) -- Gr

RE: Complex region selection

2012-03-21 Thread Greg Keogh
Carl, unfortunately there is no chance of using SQL Server in this app. I have a fat book chapter here on spatial data that I'd like to try out, but this isn't a chance. I'm still web searching for some kind of control or library which m

Complex region selection

2012-03-21 Thread Greg Keogh
Folks, coming soon in our app is the need for a "map region selector" where you click on states of America or European counties for example. I see the problem broken into a few pieces: * defining the complex regions and hoping that there are public sets of coordinates that define famous bounda

RE: A typical few hours

2012-01-23 Thread Greg Keogh
This is a common problem. Same in WPF as well. My work around, for cases where I desperately want radiobuttons, is the following. 1. Create your radiobuttons,each with a different groupname. 2. Bind each radiobutton to a different property and manually set the other properties to false when o

RE: 16/32 bit plugin

2011-12-28 Thread Greg Keogh
Man, I must have been in a time-warp in my head by writing 16/32 bit. Luckily 8-bit was before my time. The IBM mainframe was 32-bit, but they only used 24 bits for addresses until they ran out of space and had to permanently borrow the other 8 bits. Luckily 64KB of RAM was plenty. > AFAIK, there

16/32 bit plugin

2011-12-27 Thread Greg Keogh
Folks, somehow I have the SL4 plugin for IE9 16-bit installed and working (I can't recall how it got there). I usually browse with IE9 64-bit and when I hit some SL4 content it asks me to install Silverlight. If I let it continue it goes through the motions and then tells me "The same version o

RE: DataGridCheckBoxColumn (fixed?!)

2011-12-06 Thread Greg Keogh
It’s all working now. It turns out I didn’t need to walk up anywhere for the DataContext, as the I managed to embed a C1 colour picker control into the template cell and bind it directly to the Colour property. The screen shot I’ve pasted below (if your email can see it) shows how I’ve bound a

RE: DataGrid row button click (answered?!)

2011-12-06 Thread Greg Keogh
To find the DataGridCell that contains the clicked button I found that a simple iteration up through the Parent properties of the sender eventually reaches the cell. I don't go to the trouble of using the VisualTreeHelper as the Parent property was enough in this case (I was doing that in a WPF app

DataGrid row button click

2011-12-06 Thread Greg Keogh
Folks, I think I've outsmarted myself. I have a DataGrid bound with a template column containing a Button and it's all looking quite acceptable. Now I'm a bit flummoxed, as when one of the buttons is clicked I have to find out which object in the data source is behind the row containing the button.

RE: DataGridCheckBoxColumn (fixed?!)

2011-12-05 Thread Greg Keogh
Now that's solved, I have an even more ambitious thing to try. I want to turn a DataGrid cell into a colour picker. I have a template column containing a with a TextBlock inside. The grid background is bound to the colour (via a converter) and I can see a cell value like # with a red b

RE: DataGridCheckBoxColumn (fixed?!)

2011-12-05 Thread Greg Keogh
Good grief, the advice to use a template column instead of a check box column seems to work. A single gesture is required to toggle the check and update the bound property. Who would have guessed?! Greg ___ ozsilver

DataGridCheckBoxColumn

2011-12-05 Thread Greg Keogh
So I bind some DataGrid columns and one of them is a bool which corresponds to a DataGridCheckBoxColumn. It all displays nicely and I get excited. Then I notice that clicking the CheckBox cell puts it in edit mode, then I click it again to change the value. Then I notice that the binding ch

RE: RE: Failed to invoke: Javascript function

2011-11-29 Thread Greg Keogh
HtmlPage.Window.Alert("Test"); as per this thread http://forums.silverlight.net/t/211409.aspx/1 Alert works. I have spent another two hours trying to get the Invoke working. I looked back to June 2010 in version control to see who I did a similar testing technique then. I used GetProperty

RE: RE: Failed to invoke: Javascript function

2011-11-29 Thread Greg Keogh
>Maybe there is a javascript error on the page causing problems. I don't see one in the browser. I've tried running the SL4 app in debug and non-debug modes but I get no extra information from anywhere, just the same "Failed to Invoke" error. No helpful diagnostic information is anywhere that I ca

RE: Failed to invoke: Javascript function

2011-11-29 Thread Greg Keogh
Greg if, by chance, your XAP is on a different domain to the html page you need to add the following param to the silverlight object: Nah! No change to the error -- Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm00

attempting to access a service in a cross-domain way

2011-10-29 Thread Greg Keogh
Folks, I've just created a hello world WCF web service with basicHttpBinding which I know is working correctly from URL http://localhost/PhotoService/Service1.svc. I created a simple Silverlight 4 app with a single button to call the service to sanity check it's working. It dies with this:

RE: Streamed upload to WCF service [2]

2011-09-25 Thread Greg Keogh
Further reading indicates that it is not possible to use a Stream object in a SL4-to-WCF contract. http://blogs.msdn.com/b/carlosfigueira/archive/2010/07/08/using-transfermode -streamedresponse-to-download-files-in-silverlight-4.aspx I created a test method in my service for experiments and

Streamed upload to WCF service

2011-09-25 Thread Greg Keogh
Folks, I have a WCF service method like the following to receive an uploaded file from the SL4 client: public int UpdateJob(int jobToken, string filename, byte[] buffer, string comment) This method is finally crashing because the byte[] is approaching 8MB and will continue to grow. I have t

RE: Refreshing an SL4 app (client problem?)

2011-09-07 Thread Greg Keogh
http://stackoverflow.com/questions/2281919/expiry-silverlight-xap-file-from- browser-cache-programmatically Interesting ... some solutions are browser specific, some need code and maintenance. Adding the "Cache-Control: no-cache" header seems the easiest by far, so I'll try it out at the app le

Refreshing an SL4 app (client problem?)

2011-09-07 Thread Greg Keogh
Well I should have asked my cat, because I browsed to the SL4 app from the outside world and it was the latest version. When browsing from my work machine I see the old version. So I restart my localhost IIS and delete temporary files in the browser, but it makes no difference. As an administrator

Refreshing an SL4 app

2011-09-07 Thread Greg Keogh
Folks, I have this random problem where I xcopy deploy all of my app files over to my Win2008 server box and the updated SL4 app doesn't appear, I get the previous version. I have spent hours over the previous months trying to figure this problem out. I restart IIS, I even reboot, I delete the

RE: A typical few hours

2011-07-22 Thread Greg Keogh
Winston, no binding errors in the output window. It's a plain class that implements INotifyPropertyChanged. Jake, don't tell me ... someone (you!) has suffered this before, and I didn't run the correct web searches, and I wasted my time while wasting time. I see your post now, but I've got to c

A typical few hours

2011-07-22 Thread Greg Keogh
So I have a plain class object as the DataContext for a UserControl with a variety of controls on it. All of the two-way binding works perfectly except for a group of 3 radio buttons which seem to change their checked states in an incomprehensible random way. For over 3 hours I stick debug displays

SL4 Drag and drop

2011-07-02 Thread Greg Keogh
Has anyone here got a sample (or can find one) of how to perform drag and drop in SL4 using the basic events and logic? I presume that the necessary code to do this is not a tangled nightmare. I have performed drag-and-drop in WinForms apps many times, so I'd just like to know what the equivalent c

IE9 styles warning

2011-05-01 Thread Greg Keogh
Folks, just a heads up. Sometime over the weekend I let an IE9 update come in. This morning I run my SL4 app and it's crushed up into the top inch of the screen. Fiddling with styles and Height on the parent html page made no difference. So in VS2010 I created a fresh SL4 project and found that

RE: Drawing complex 'tables'

2011-04-01 Thread Greg Keogh
Very powerful... check it out http://www.infragistics.com/dotnet/netadvantage/winforms/wingrid.aspx#Galler y I passed the link to the C++ guys who think that - impressive as the grid is - it can't do what we want. So it looks I'm going to be coding until my fingers bleed pushing graphics primi

Drawing complex 'tables'

2011-03-30 Thread Greg Keogh
Folks, our app draws Excel style tables like the sample I've pasted below (I hope you can see it somehow). I currently create this appearance manually by adding graphics primitives to a Canvas, which is pretty fiddly and delicate work as you can imagine. This been fine up until now, but there are p

Visifire vs ComponentOne

2011-03-02 Thread Greg Keogh
Folks, I think I have a small lesson in marketing for you, or it's a commentary on human nature. For over a year we used the Visifire 2.2.4 charting library for Silverlight. Six months ago we had to move to ComponentOne because they provided gauges and radar charts, at a cost of about $1500/yea

RE: 404 downloading DLLs (solved?)

2011-02-10 Thread Greg Keogh
For the moment my workaround is to async Read ZIP files from the web server, unzip them on the SL client side and add them as assemblies. This is working on my Win7 dev machine and the Win2003 server. Luckily C1 supply a class to make unzipping quite easy. I also found out why my error logging

404 downloading DLLs

2011-02-10 Thread Greg Keogh
Folks, after finding the reference workaround last night to allow me to keep DLLs out of the XAP, I stumbled across a new problem... On my development machine my background loading of the DLLs is working nicely. When I deploy the app to my server it fails, but it took me hours to find out why.

RE: Dynamic assembly loading

2011-02-10 Thread Greg Keogh
John, you've mentioned some interesting subjects that I am not familiar with: application library caching and exmap; C1 XAPOptimiser. I'll run some searches on these topics. Loading by navigation might be overkill for my needs, but I would have tried to implement something like if I had complex

Excluding DLLs from XAP

2011-02-09 Thread Greg Keogh
I've changed the topic, as this is the real problem. Advice everywhere says that Copy Local = false will prevent the DLL from inclusion in the XAP, technically this is true, but it's not that simple. I can now see that I'm having trouble because my projects are not like the childishly simple ones y

RE: Dynamic assembly loading

2011-02-09 Thread Greg Keogh
Colin, I also suspected some sort of domino effect of dependencies was causing my DLLs to stay included in the XAP. I'm sure my DLLs are only referenced in a single project, and that project has Copy Local false. I moved the DLLs to a separate folder and referenced them there instead of under C:\P

RE: Dynamic assembly loading

2011-02-09 Thread Greg Keogh
>I guess that means I'm not spamming the list with my posts then *grin*. You could be kind to the colour blind and change your font ;-) -- Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listi

RE: Dynamic assembly loading

2011-02-09 Thread Greg Keogh
Howdy, I should have mentioned that I'm not using MEF or Prism or the like, as my needs are modest and I don't want dependencies on more frameworks. I'm simply firing off some WebClient OpenReadAsync() calls and feeding the returned streams into AssemblyPart Load(), the code is short and clear and

Dynamic assembly loading

2011-02-09 Thread Greg Keogh
Folks, after years of avoiding the need, I finally have to async load some large DLLs. I have two charting libraries to reference and their total size is causing slow app loading. I have placed the guilty DLLs in the ClientBin folder and I can see them async loading correctly. But ... how do I let

RE: Event not bubbling up

2010-12-07 Thread Greg Keogh
ce" and write a test-harness app for every problem they encounter before posting a question about it? Greg Keogh ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

RE: Event not bubbling up

2010-12-07 Thread Greg Keogh
Can you post a simple repro? No time, as the problem is buried deep inside a gigantic mess of controls and infrastructure. As a workaround I manually raised an event on the click for the parent to listen to. Now I have other stuff-ups to fix and I’ll return to bubbling later. Greg _

RE: Event not bubbling up

2010-12-07 Thread Greg Keogh
I also guessed that there must be something different about Canvas and event bubbling, but I can't find anything to confirm or explain this. Now I wonder if there's a way of manually sending the MouseLeftButtonDown event upwards. Any ideas?

Event not bubbling up

2010-12-07 Thread Greg Keogh
One of my user controls is a Canvas where I draw lots of graphics. This control is inside parent controls. I just noticed that the MouseLeftButtonDown event on my child control with a Canvas is being silently swallowed and is not bubbling up. I have other child controls at the same level as my

RE: Control thumbnails

2010-12-06 Thread Greg Keogh
I have found that it is unreliable to use a Viewbox unless you specifically want the effects it produces. I planned to fill the parent Grid with a Viewbox Stretch=None to effectively turn it off, but there are weird side-effects. Viewbox has a mind of its own about sizing inside a parent. I cannot

RE: Control thumbnails

2010-12-06 Thread Greg Keogh
Shane is a mind-reader. I was looking for the control that auto-sizes its contents in various ways, it's the ViewBox of course. I'll wrap each child in a ViewBox. My parent can have 4 x 4 cells, and in normal display the top visible control will have row and col span 4 with Stretch=None. In tile

Control thumbnails

2010-12-05 Thread Greg Keogh
This question is related to Silverlight and WPF, as I may need to use this technique in both sorts of apps. My app's main parent control can contain different types of child controls that display data in various ways. I internally maintain a 16-deep List<> of the children, I push a new child o

[OT] Anti-Football League lunch tomorrow (Melbourne)

2010-09-23 Thread Greg Keogh
life.com.au/ViewActivity.aspx?Activity_Id=23436&siteref=myrddin> &siteref=myrddin It's also registered as an event in Facebook somewhere. Cheers, Greg Keogh ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com h

RE: Upgrading to Silverlight 4

2010-08-27 Thread Greg Keogh
I've seen this before a bit, but would have had to seen the project layout to confirm what the issue might have been. Apologies for the pain Greg. Ah, don't worry. I didn't keep the before and after copies of the sln or csproj files that might have explained what went wrong and what went right

RE: ASP.NET v4 was prohibited

2010-08-27 Thread Greg Keogh
e.g update to Have no fear, I fell for that once before. So I globally searched and replaced the version numbers in my SL hosting pages. This is easy to forget if you don't use an auto-generated page when you debug. I use specific home page files when debugging, so I have to manually update the

ASP.NET v4 was prohibited

2010-08-25 Thread Greg Keogh
D'oh! The answer came just after I posted my puzzle. After bumbling around all over the place I found that Web Service Extensions node in IIS manager had a new entry ... ASP.NET v4.0.30319 which was set to Prohibited by default. Tricky eh! Cheers, Greg

SL4 apps not visible

2010-08-25 Thread Greg Keogh
I've just discovered that all of my SL4 apps compiled in Framework 4 and running in a "V4 Pool" that I created are invisible on my Win2003 server. I have four Framework compiled ASP.NET services and apps that are giving 404. All of the other virtual directories with apps in them are visible as

RE: Upgrading to Silverlight 4

2010-08-25 Thread Greg Keogh
I know the feeling. I had a tough time with System.Windows.Controls.Toolkit myself. I hope it all works out for you in the end. Well it did, but as usual I'm not sure why. I removed all of the dozen references from the project and carefully added them all back one at a time. Suddenly, at some

RE: Upgrading to Silverlight 4

2010-08-25 Thread Greg Keogh
I recently upgraded an application to Silverlight 4 and found a memory issue. Oh great, that's something to look forward to! I eventually found that I had to download the Silverlight 4 Tools (34.8MB) and Silverlight 4 Toolkit Apr10 (17.2MB) to get support in VS2010. I accidentally downloade

Upgrading to Silverlight 4

2010-08-25 Thread Greg Keogh
Folks, I've just started using VS2010 and I have a Silverlight 3 project that I want to upgrade to 4. I expected to see 4 as a target option in various properties of my project, but I can only see 3. I presume therefore that I have to download all of the developer tools and kits for SL4 myself. Bef

RE: Command binding working

2010-08-01 Thread Greg Keogh
Don't worry too much about eliminating code behinds. Carl, I have decided that having empty code-behind is an academic exercise in elegance that will waste a lot of my time. My policy from today on in SL and WPF is to minimise the code-behind, but only up to the point of "comfortable effort".

Command binding working

2010-08-01 Thread Greg Keogh
Noobie, I pasted the Command.cs and ButtonBase.cs from Patrick Cauldwell's sample project the into my project and it's working. Thanks for finding that. My previous attempts have used different combinations and versions of these classes without success. This combination does look subtly dif

RE: Invalid XML (addendum)

2010-08-01 Thread Greg Keogh
http://www.cauldwell.net/patrick/blog/MVVMBindingToCommandsInSilverlight.asp x here is a plain/no frills example of Silverlight 3 "ICommand" button service very plain, no junk, just an example for how to hook up a command to a button in SL 3 I downloaded the code and ran it and it worked fine fo

RE: Invalid XML (addendum)

2010-07-31 Thread Greg Keogh
http://slextensions.codeplex.com/SourceControl/changeset/view/35533#395012 OK! I manually copied over Command, CommandService, CommandSusbcription and some other related EventArgs classes to my project. Following the sample XAML in their project which binds a Button to a command in the controll

RE: Invalid XML (addendum)

2010-07-29 Thread Greg Keogh
here is a version/code sample online http://silverlight-essentials.com/blog/?p=55 "ExtendedInvokeCommandAction" Whew! This almost worked. After 15 minutes of stuffing around references and adding the ExtendedInvokeCommandAction class to my project I managed to get the Command appearing in Ble

Command mystery

2010-07-29 Thread Greg Keogh
I've been using Reflector on the SL3 DLLs looking for assemblies that contain ICommand, Button and ButtonBase in the hope that I will find something to reference in the XAML and solve my broken Blend designer. I've failed, as I can't even Find Button let alone any of the other familiar controls.

RE: Invalid XML (addendum)

2010-07-28 Thread Greg Keogh
Can you use an InvokeCommandAction (see the Behaviors category in Blend. That behaviour isn't in Blend 3 and I can't yet find it online or in the gallery - Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify

RE: Invalid XML (Key attribute fixed)

2010-07-28 Thread Greg Keogh
The error Key attribute can only be used on an element was caused by pasting the block of XAML over from a WPF application into SL3. Simply removing the x:Key from the element fixes the problem with no side effects. I wasn't using the Key in code. However, more than an hour of web searching an

Invalid XML (addendum)

2010-07-28 Thread Greg Keogh
I should mention that I've been suffering the same Blend 3 designer red box of death for weeks now since I used a merged resource dictionary in a few controls. I presume this is related to my previous post about the Command element with similar symptoms. I've got to find a way around these designer

Command binding and Invalid XML

2010-07-28 Thread Greg Keogh
Folks, I used the instructions on this page to bind Button clicks to controller properties: http://johnpapa.net/silverlight/5-simple-steps-to-commanding-in-silverlight/ It's all working nicely, and I've created a generic version. However, it's killed the blend 3 designer. I just get the dre

RE: Dynamic themes and resources

2010-07-07 Thread Greg Keogh
Chaps, I have some news on this subject. After talking to the client go-between on just when they needed in the way of custom styling the SL3 app, it seems that the level of skinning provided by the toolkit themes is way beyond their needs. They need about 6 different major parts of the various

Dynamic themes and resources

2010-06-20 Thread Greg Keogh
Folks, it's an action-packed day, I just received word that my SL3 app will soon need to have a feature to assign a different appearance and different string resources according to who is authenticated (via the initial login screen). I took precautions to allow the app to have a different appea

RE: JavaScript possibilities

2010-06-20 Thread Greg Keogh
Jordan, searches for “JavaScript Clipboard” produce a lot of results that use code like the following: function toClipboard(message) { holdtext.innerText = message; var copied = holdtext.createTextRange(); copied.execCommand("Copy"); } In my IE8

JavaScript possibilities

2010-06-20 Thread Greg Keogh
Folks, my Silverlight 3 app is a lightweight version of a gigantic windows app written in C++, and the authors of that app want my SL3 app to simulate the "export" facility of its big brother, which sends data to the Clipboard, to a new browser window or to Office apps via automation. I explain

Mouse enter and ComboBox

2010-06-08 Thread Greg Keogh
I just thought I'd mention some subtle curious and irritating behaviour I found yesterday. You've probably all seen Silverlight code that detects mouse enter over a certain control and animates another control into view. I eventually got one of these working too, but here's the trap: If the pop

RE: Long running animation

2010-05-28 Thread Greg Keogh
Coincidentally, I woke up early this morning and I decided to do some "mental health" coding. Just for fun I expanded my proof of concept app from last week to animate more elements and have some configuration controls for size, counts and speed. I'm pleased with the great animation effect produced

RE: Images invisible (SOLVED)

2010-05-28 Thread Greg Keogh
Yay me :) Hooray you! p.s. you going to Remix next week? I'll be there. If you will be there be good to catch up. (goes for anyone on the list, come say hi!) Not this year, I missed the early bird price and now it would be a bit indulgent to fork out for a ticket. Next week ... I guess

RE: Lots of bind/notify classes

2010-05-28 Thread Greg Keogh
Chaps, I have decided that snippets are the quickest way out of this at the moment. It doesn't modularise or reduce the property code, but at least it means I can create them faster. Actually, I forgot how good snippets are. For some reason I neglected them for the last couple of years, now I'm

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 INotifyPrope

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 cou

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 ___

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 assem

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 a

  1   2   >