background

How to Bind to a Child's Background in Xaml?

I'm able to bind to a child's Background if the child is explicitly named in ElementName: <TreeViewItem Header="Test" Background="{Binding ElementName=TestChild, Path=Background}"> <TextBox Name="TestChild" Text="Hello?" Background="{Binding SomeBinding}" /> </TreeViewItem> I'd prefer to use relative position rather than specific n...

Change WPF StackPanel background color when an element in the panel has focus

If I have a set of controls within a StackPanel, is there a generic way to change the background of the stackpanel when any control within the StackPanel gains focus? (and obviously switch the background back when no control in the StackPanel has focus). The following code works for me, but it would be nice to have a generic way to acco...

I want to trigger a http request when my app is in background

I want to set a alarm in the mean while when app goes background,Alarm should keep on running,When the alarm time expires,I want trigger a http request.Is that possible? If so should I use ASIHttprequest? If I use ASIHttprequest will my app will be rejected? ...

How can we change the background of the desktop via filing?

I wish to change the background of my computer by doing filing in C language but I dont have any idea how to proceed in this regard.Please guide me to the files i must open and what changes must i do to them ...

Selector for Buttons not working after setting backgroundResource of the button in Android

Hi, I have applied the follwoing selector to all my buttons by specifying it in my theme: <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:drawable="@drawable/my_btn_pressed" android:state_pressed="true" /> <item android:drawable="@drawable/my_btn_focussed" android:state_focused="true" /> ...

Android:To have a transluscent background for an android activity?

Hi, I wish to have a transluscent background for an activity, so that the previous activity can be seen beneath this activity. Something like a transluscent menu that pops up over a videa being played in the background. Is this possible? Can you tell me how? Note:I cannot use the default transluscent theme from android, since I am usi...

Phonegap background service on iOS4?

Can I get a phonegap application running on iOS 4 to have a background service when it's not the active app (e.g. check a url every hour and alert the user if there have been any changes)? And if so, how? ...

App crashes on backgrounding because of SimpleAudioEngine

So I׳m trying to play some effects in my Cocos2D game using SimpleAudioEngine , but after I have added them my app crashes when it goes to background (multitasked). I searched for this problem in the internet but all the solutions that I found didn't work for me. What I did find out is that this problem happens because my app is somehow ...

Centering a background image in Android

I have a background image about 100 x 100 that I want to center in an Android app. Is there a way to do this? I'm thinking it would greatly help with orientation changes for simple apps. ...

How can you play the audio of a YouTube video in background on iOS 4?

In Safari on OS4 it's possible to stream the audio of YouTube videos in background: To try that start a video from YouTube, send the app in background, double tap the home button and switch to another app. At this point the audio will stop but it can be restated, paused, etc. in background using the remote controls associated to Safari ...

How to change the prefix background of the RibbonMenuButton items?

I write a sample ribbon here and tried to changed the background of the item as indicated by the #2 arrow in this picture: I tried to use all the properties related to the background but none can do that. Please help! [Edit] Here are some links I found that would be helpful to get started: Control Styles and Templates (look under ...

how to run two perl scripts simultaneously fromt the same directory ?

i want to run two perl scripts at the same time from the same directory , from the command prompt , so that either of their outputs should not affect each other ...

Suitable background pngs for ListView items in Android

Hi, Can somebody post some suitable png files that would look good as background to ListView items? Or maybe some link for it? -Kiki ...

Problem with a Retina Display Image

Hi all, I have a TabBarController app where the first tabBarItem is a NavigationController... I assign programmatically an image background to the navController with this code:self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"OverviewBg.png"]]; The "OverviewBg.png" image is the exact si...

How to run ruby file in the background using Python and get stderr and stout?

I am developing a Python based GUI. I need to run a ruby file and get its output. I did it successfully using subprocess module. But I need to run the file in the background and I need to get its output as well. Can you please let me know how to achieve this? ...

How to use the backgrounder SpringBoardHooks?

I would love to use these hooks for a jailbreak iPhone app. This would allow the app to request to be backgrounded, providing that Backgrounder is installed. Seeing previous questions on StackOverflow, I think I'm not the only one who could use this. What are the steps required? Do I need to extract the private SpringBoard api's, or do ...

iOS 4: how to 'deceive' background?

Hello, I'm a beginner at iPhone developing. Though I've read lots of guides and users' notes I have no exact and accessible answer to the following question: "Are there any ways to execute internal tasks (or for example to listen for server activity) in background in iOS 4.x?" I know that only 3 kinds of tasks are permitted (audio, vo...

Twitter-Like background animated drawable in android

Just like Twitter for android used to have (they removed it) - I need to display an animated background drawable. How to I show an image that is actually bigger then the given layout dimensions (without the image being shrink). What kind of animation do I need to use for the "moving" effect? thanks. ...

how to send key's to any application that is currently running from background program (c++)

Hello everyone, my question is how to send some key's to any application from application that is running in background? Let's say that I made shortcut to LEFT ARROW key which is ALT+S, and than I want whenever I'm in any application and when I press ALT+S that background application response that shortcut and send to currently opened pr...

How to wait for a thread to finish in Objective-C

I'm trying to use a method from a class I downloaded somewhere. The method executes in the background while program execution continues. I do not want to allow program execution to continue until this method finishes. How do I do that? ...