I have a Silverlight 5 application, it is an image viewing system photographers use to show their images to their customers. My photographers want to be able to change the styling of the application. At a minimum they want both a light and dark option, in the end, they want a lot more customization then that.
I have used styles within the application (yes, there is a lot of clean up that needs to be done) but once I have one xaml file with all the colors, how do I set it up so that the customer can pick between to different looks, the light and the dark?
Does anyone know of any examples out there on how to do this?
Chris, you hit the nail on the head with that link! I didn't know there was such a thing as DynamicResource, which lead me to what I am seeking:
Silverlight 5’s New Style Data Binding
Related
So I'm just getting used to and getting my arms around the new "panel-based" App scheme released with the 5/5/2012 version of Rally. At first it was a bit frustrating to lose the window real estate when I've been accustomed to full-page iFrames.
I am curious however - from a desire to optimize the way I use real estate onscreen for an App page - I would like to setup and utilize a multi-panel App whose components can communicate. For instance, I'd like to have one App panel display some control widgets and perhaps an AppSDK table, and a second App panel display a chart or grid that responds to events/controls in the first panel.
I've been scanning the AppSDK docs for hints as to how this might be accomplished, but I'm coming up short. Is there a way to wire up event listeners in one App panel that respond to widget controls in another?
We have not decided the best way to have the Apps communicate yet. That is something we are still spiking out internally to find the best way to do it.
Each custom App is in an IFrame so figuring out how to make them communicate can be a bit tricky. Once we figure out a good way to do it we will be sure to let you know.
Has this topic, "app Communication", been addressed yet? I would to have one Custom Grid show User Stories. When a user story is selected another grid show the related tasks.
I've been programming for a while, but just recently decided to start developing for Mac OS X. I feel like I've come to grips with the basics of Objective-C and Cocoa development over the past week. I'm planning on making graphics apps, and as such am currently in the process of learning how to control Quartz compositions through a Cocoa app. I went through the tutorial that apple offers (with the Mac Engravings composition), and was able to create that just fine. In order to make sure that I truly understood what I learned, I decided to create my own composition and link it to a slightly more complicated Cocoa application.
Essentially, I have a composition that loads a movie or image through a Movie Loader patch, at which point it applies various filters to the frames before outputting it. In my Cocoa app, I've written code (or rather copied and pasted from other apple examples) that lets a user pick a file using an NSOpenPanel object. The filepath of the file they pick gets placed in a text-box that I placed in the app's window using Interface Builder. I binded the value of said text-box to the "Movie_Location" key in my composition, which is a published input in the Movie Loader patch that I'm using. However, no matter what I do, movies and images aren't loaded into this composition no matter what I try. The only thing that gets displayed is the default image that I have saved in that input from Quartz Composer (or nothing if I leave it blank before publishing).
I've added a Clear Color patch to the composition and binded that to a colorwell in my UI, and that successfully changes the color in my display, so I know that the composition and my Cocoa app are communicating. I've spent numerous hours at this point trying to figure out what's going on, and I've just about given up. Does the Movie Loader have any weird behaviors that I'm not aware of, or is there something obvious that I seem to be missing? I'd really appreciate any help or advice from anybody.
Thanks for reading through this...
Best,
Sami
There are two things I can think of as reasons why it is doing this:
The file path isn't formatted incorrectly. Try checking backslashes, colons, etc.
The box isn't updating the value. Try literally clicking in the text field and hitting enter.
That's all I can think of without seeing your quartz composition and/or code.
EDIT:
Check the other continuous box, in the general properties.
I figured this out yesterday. spudwaffle's second idea is what was going on. If I were to type a filepath in and hit enter, it would work just fine. I got this to work properly by just removing the bind and instead using the setValue:keyInPath: function that a patch controller offers. That said, is there some way to force a text-box to update? I remember seeing a "continuously update" or something like that button within the bind sub-menu in the inspector, but my code didn't work with that checked either.
Thanks to those of you that tried to help me! I really appreciate it.
Best,
Sami
In a Ruby-on-Rails website, I want to create the following dialog, where a user is shown a list of colors and must choose 3 favorites and 3 least liked colors.
It works by dragging an item from the left and dropping it on the right.
What is the easiest and most maintainable library/method to implement this?
Notes: I am in the process of choosing a JavaScript framework for this website, so any proposition is fine. If that matters, the real thing is actually: among 15 work situations, choosing 5 that the user feels as most stressful, and 5 least stressful.
jQuery UI.
It has draggable and droppable. It is super easy to use, highly configurable and is the new standard javascript library in Rails 3.1.
I'd like to implement a spinner control (something along these lines) in Silverlight 4 to display during pending operations. There are several examples on the web for Silverlight 3 but I'm either unable to compile them into my project or they just flat out display nothing. In addition I'm unable to find any examples specific to Silverlight 4.
Can someone please post a sample for Silverlight 4 or a link to one?
You can use the BusyIndicator.
How To Work With Silverlight BusyIndicator?
Custom Busyindicator style in Silverlight 4
I found a good example of a spinner control here. It's very simple and may not be ideal but it works perfect for my purposes. It's a XAML-only solution so it is very easy to port.
If you decide to use it, then I'd like to echo one of the commenters' suggestions that you change the <Grid> to a <Viewbox> so that the spinner will scale automatically.
I've put together a pure xaml spinner out of another example I've found ( see source ). It works on silverlight 4 and moonlight 4 too.
Pure XAML Spinner
Slightly nicer visual than the "rotate some rectangles" approach.
I want to create a sidebar in one of my mac applications. Basically it will look much like the Things sidebar.
Here is the picture that I basically want to recreate:
I can't figure out how to show the "sections" (collect, focus and active projects) and how to have certain items always show up (inbox, today, next, etc...) and finally I would really appreciate if someone would explain how to make the active projects section, with the triangle.
Also I need the active projects section to load from an entity in core data.
I would also really appreciate if you could post an example.
Apple's "SourceView" sample should be helpful with this:
Apple Example
PXSourceList is an open source NSOutlineView subclass specifically built for mimicking what you posted. I've used it in a number of projects, and it's very easy and flexible to use. I highly recommend it.
The active projects section is probably just a 1 column NSOutlineView with no column header.