I am developing on alarm based application
I want to add one setting page to my app. I want to change image of Image control which is on my Mainpage. image should be changing when button click event occurs from setting page. All Images are stored in my simple local folder of application like assets folder. please help me
So you could do simply like this, within your button click event handler:
BitmapImage imgSource = new BitmapImage(
new Uri("/PivotApp1;component/Images/halfstar.png", UriKind.Relative));
imageName.Source = null;//imageName is the name of the image control
imageName.Source = imgSource;
For more you could refer these:
On Button Press - Change Image Source
Imagebutton change source property
To show multiple images, you could use the image sliding. Reference
Hope it helps!
If you're looking for an example of a settings page, check out my app templates: Universal version and Silverlight (WP 8.0) version - they both have a settings page and an example of how to respond to when a setting changes.
Related
We are using sap.ui.commons.Image control in our project and we need to set a font icon as the source.
The sap.ui.commons.Image is used in multiple places and are used in composite controls as well. However, we need to use icon-fonts as the source to the control. We could set SVG/PNG to the source and it works fine. However, we need to use icon-font.
Can anyone help?
<c:Image src='sap-icon://add' />
You will either have to download the icon and store it in your project
Or use a control that has an icon property for example a button or icon tab
I have a Grid View which displays images downloaded by user to a folder onto the SD card. The images change and depend on what the user decided to download and save to the Application folder. Now my question is how i open the very image i clicked on using android stock or default gallery. I'm using the code below. How do i get the image path of the image view i clicked on and use it to open that specific image?
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(filePath)), "image/*");
startActivity(intent);
Please help.
Change ACTION_VIEW to ACTION_PICK
I have found a neat plugin for CKEDITOR called bgimage that allows a user to select a section of text and wrap said text within div and apply the background image style attribute (Background Image plugin should use Selected Text.).
I was wondering how can I replace the Image URL with Image Browse button as found within Image Properties?
Do I need to add an additional button to the vbox then make the necessary connections between FileBrowser and the associated Button? (I can't seem to find the relevant Developer Docs, regarding this problem).
The complete documentation for adding the file browser to your dialog is actually available here: Adding File Manager to a Dialog Window.
I have an application which has a listbox. When an item in the list is clicked the app takes us to a new page with a web browser which displays the contents of that particular item (we get these from a particular list which is previously parsed xml data) in a web browser (because they also contain html elements). This all works perfectly fine.
Now, there are a few items in the list which contain a link. The link displays in the browser and when clicked it takes us to a .pdf file (still in the webbrowser) which is not being displayed.
What I now wonder is:
How to check if the link is being clicked? Is there an event for that?
How can I display the .pdf within the webbrowser control without the aid of other application?
Thank you,
Should you need any code that's currently working and written just ask.
To know if the link is clicked, you can use the Navigating event of the webbrowser.
Unfortunately, you can't use the webbrowser to display the PDF. You'll have to use a WebBrowserTask instead.
To sum it up, in your case you can use the Navigating event to detect the click on the link (since it's apparently important from you), then cancel the navigation (by setting e.Cancel = true in the event handler), then call the WebBrowserTask to display the PDF document.
Can anybody tell me how to add a preview image when i am selecting a rendering while adding a component in the Page Editor? I just still have there a default sublayout icon. I have the Nicam demo site from Sitecore and there are some images, but I am not able find where I can select that.
When you go to your Sublayouts (/sitecore/Layouts/Sublayouts or Renderings) you can select yours, go to the Appearance section and go to the Thumbnail field. Click the Take Screenshot button there.
You can then select the page you want the thumbnail to be taken from in the Item field, which device to use and click Take Screenshot. After this the page will show up where you can select a section of the page to be used as the screenshot
[Update]
I decided to write a blogpost on this: Read it here