. 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