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
Earlier this year someone pointed me to the Styled ListBox
http://richapps.wordpress.com/2009/02/12/advanced-styling-wpf/ 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
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
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 original
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
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 a
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
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
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
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
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
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
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
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
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
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
http://msdn.microsoft.com/en-us/library/cc197958(v=vs.95).aspx .exe
Thank heavens for this, as it means I can
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
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
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
Carl, unfortunately there is no chance of using SQL Server in this app. I
have a fat book chapter
http://www.microsoft.com/learning/en/us/book.aspx?id=12805 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
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)
--
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
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
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
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
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
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
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
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
data:DataGridTemplateColumn
data:DataGridTemplateColumn.CellEditingTemplate
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 can
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
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:
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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?
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
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
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 Grid 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
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
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 Grid 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
?Activity_Id=23436siteref=myrddin
siteref=myrddin
It's also registered as an event in Facebook somewhere.
Cheers,
Greg Keogh
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
e.g update to
param name=minRuntimeVersion value=4.0.50401.0 /
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
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
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.
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
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
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
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
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. I
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
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.
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
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
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
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
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
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
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
Style
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
Style x:Key=ItemContentTextStyle TargetType=TextBlock
[cut]
for (int i = 0; i
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
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
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
Folks, I want to create a sort of screen saver effect where a shape moves
slowly around a control. The path it follows is calculated at start time by
mixing random Sin/Cos functions, then the shape will follow the (x,y)
coordinates of the function over time. It's like a moving parametric plot.
A quickie demo app to show the answer to my question.
http://www.orthogonal.com.au/computers/silvertest
I've put a note on the page to say that Frame-Based animation works nicely
for my purposes.
Greg
___
ozsilverlight mailing list
Enable Silverlight debugging in your web app, at least then you can see
which control is causing it (will break in visual studio)
Nah, it wasn't getting that far, and debugging was all on. The app xaml
wasn't loading and I got not useful diagnostic clues anywhere.
Greg
Can anyone recommend a Silverlight way of simulating the effect of a Windows
model dialog? Or perhaps it's not wise to attempt this at all and use some
other UI technique.
I have seen a few demos over the last year or so, including one by Stephan
Dekker last January on the SL weekend where put
Many web searches indicate that there possible issues with the Toolbox or
Power Commands and VS2008 SP1. There are other less credible workarounds,
but I'll slowly work my way through them until I find the answer. I'll let
you know if I might luck upon anything of global importance.
Greg
I've just spent 2 hours creating a control and pulling out common styles
from multiple controls by putting them in an external merged dictionary XAML
file. It's the first time I've used a merged dictionary, and it's damn good
way of keeping your resources tidy. However, sometime during the last
ListBox ItemTemplate={StaticResource ItemTemplate} ItemsSource={Binding
Collection}
ListBox.ItemContainerStyle
Style TargetType=ListBoxItem
Setter Property=HorizontalContentAlignment
Value=Stretch/
/Style
Folks, I have a bound ListBox with a template that makes the items appear
pretty with an icon and some text boxes.
I want to trap a mouse click anywhere in one of the list items. The mouse
may of course click on one of the controls in the item's template. I'm not
interested in where the mouse
I just had an email from a tester of our Silverlight 3 app that Microsoft
Silverlight cannot be used in browsers running in 64 bit mode. This Web
browser or operating system may not be compatible with Silverlight.
I never even noticed that a 64 bit IE existed until he pointed out that he's
got
Hi Asheesh,
My first test of moving the images to site of origin worked nicely, as no
code changes are needed. The XAP file reduced from about 2MB to 800KB and
you can feel the loading speed improvement.
However, I have noticed that some later controls load more slowly first time
as new
Folks, after rebuilding my Win7 PC with Visual Studio 2010 and all of the
Silverlight dev kits and tools I have found that the XML/XAML intellisense
has vanished from Visual Studio. The XML/XAML is now as dumb as plain text.
Does anyone know how to get my intellisense back again?
Greg
Could it be this issue on Scott Guthrie's blog?
http://weblogs.asp.net/scottgu/archive/2010/02/11/intellisense-crashing-fix-
for-vs-2010.aspx
Nah, I'm not getting any crashes or errors. The intellisense is just dead no
matter if I open it via the WPF Designer (Default) or the XML edit, with
I have found that the problem of the missing intellisense is intermittent.
It will occasionally start working again, but not very often, and I can't
find any pattern yet behind what's going on.
Surely I'm not alone in having a Silverlight/WPF designer in Visual Studio
2008 what is broken to
89 matches
Mail list logo