DevFloatingPicture Class

A control that displays a picture in a stylish way that is similar to Telegram client.

Definition

Namespace: DevCase.UI.Components
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ToolboxBitmapAttribute(typeof(PictureBox), "PictureBox.bmp")]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)]
[ComVisibleAttribute(true)]
[DefaultBindingPropertyAttribute("Image")]
[DefaultPropertyAttribute("Image")]
public class DevFloatingPicture : Component
Inheritance
Object    MarshalByRefObject    Component    DevFloatingPicture

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

DevFloatingPicture Initializes a new instance of the DevFloatingPicture class.
DevFloatingPicture(Image) Initializes a new instance of the DevFloatingPicture class.

Properties

BackgroundColor Gets or sets the background color of the control.

Default value is Black

BackgroundOpacity Gets or sets the background opacity of the control. This value does not affect the image opacity.

Default value is 0.75

CloseOnEscapeKey Gets or sets a value indicating whether the control should be closed when pressing Escape key.

Default value is True.

CloseOnLeftMouseClick Gets or sets a value indicating whether the control should be closed when doing a left mouse button click on it.

Default value is True.

Container Gets the IContainer that contains the Component.
(Inherited from Component)
ContextMenuStrip Gets or sets the context menu for this control.

Note: the default context menu has a single command named "Close Picture".

FitBoundsToWorkingArea Gets or sets a value indicating whether to fit the control bounds to the desktop working area.

if this value is False, the control can overlap the desktop taskbar bounds.

Default value is False.

Image Gets or sets the image to show in this control.
ImageBorder Gets or sets a value indicating whether to draw a border around the image.

Default value is False.

ImageBorderColor Gets or sets a value indicating the color of the border drawn around the image.

Default value is Black.

ImageBorderSize Gets or sets a value indicating the size of the border drawn around the image.

Default value is 2.

ImageLayout Gets or sets the image layout.

Default value is Zoom

Site Gets or sets the ISite of the Component.
(Inherited from Component)
TitleBar Gets or sets a value indicating whether the control has a title bar.

Default value is False.

TopMost Gets or sets a value indicating whether the control should be displayed as a topmost cotrol.

Default value is False.

TransparencyKey Gets or sets the color that will represent transparent areas of the control (see: TransparencyKey).

Default value is Fuchsia

Methods

Close Close the control.
CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Dispose Releases all resources used by the Component.
(Inherited from Component)
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
GetType Gets the Type of the current instance.
(Inherited from Object)
InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Show Diplays the picture.
ShowDialog Diplays the picture as a modal dialog box (i.e. it blocks execution until the control is closed).
ToString Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)

Events

Disposed Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

GetEvent Gets a EventInfo that match the specified event name declared in the source Component.
(Defined by ComponentExtensions)
GetEventHandlers Gets all the delegates associated to the specified event raised by the source Component.
(Defined by ComponentExtensions)
GetEvents Gets all the events declared in the source Component.
(Defined by ComponentExtensions)
GetSubscribedEvents Gets a list of events declared in the source Component that are subscribed to a event-handler.
(Defined by ComponentExtensions)
InvokeUITypeEditorT Invokes the default UITypeEditor to edit the specified property.
(Defined by ComponentExtensions)
InvokeUITypeEditorT Invokes the default UITypeEditor to edit the specified property.
(Defined by ComponentExtensions)
IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)
TryGetEvent Tries to get a EventInfo that match the specified event name declared in the source Component.
(Defined by ComponentExtensions)

See Also