. Net language APP development platform-Smobiler Learning Log: Get or store image path settings, too mobiler

Source: Internet
Author: User

. Net language APP development platform-Smobiler Learning Log: Get or store image path settings, too mobiler
ResourcePath attributes 1. Introduction to attributes

Obtain or set the image storage path. The default value is "Image", indicating that ResourcePath is the Image folder (bin \ Debug \ image) under the program running path );

This attribute can be set to the Resources parameter or the actual path. The advantage of using the Resources parameter is that the actual path corresponding to the Resources name is modified in the configuration without modifying the code, but the actual path can only be modified in the code.

The Resources parameter contains four Resources by default. For details, see image [image], audio [audio], document [document], and upload [upload ].

Resource parameter settings: On the designer, click the Setting button in the lower-right corner. On the displayed Setting page, set Resources in the attribute box. The specific Setting page is as follows:

To set this attribute to the actual path, you can use either of the following methods:

Absolute Path Method: for example, set this attribute to "C: \ Users \ searching \ Desktop" on the Desktop ";

Relative Path Method: for example, In the textImage folder of the Image folder in the default system path, set this attribute to ". \ Image \ textImage"

Ii. Examples

Take the Image control as an Example

The mobiler form design interface is shown in Figure 1.

Because the Image is in the textImage folder (bin \ Debug \ Image \ textImage) in the Image folder under the system default path, set this attribute to ". \ Image \ textImage ". The attribute settings are shown in figure 2.

The mobile phone display effect before setting properties is shown in figure 3.

The mobile phone display effect after property settings is shown in Figure 4.

Figure 1 Figure 2 Figure 3 Figure 4
3. related controls

AlbumView, BarcodeButton, CameraButton, ContextMenu, gifView, Image, ImageButton, ImageTabBar, MicroBlog, NodeView, example, example, PhoneButton, RatingBar, SignatureButton, SliderView, TreeView, preview

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.