Silverlight SDK for Microsoft Bing
ResourceControl Class
OverviewSystem.Windows.ControlsResourceControl
Implements a simple canvas control which can load Xaml resources from an assembly and align them in various ways.
Declaration Syntax
C#Visual BasicVisual C++
public class ResourceControl : Canvas
Public Class ResourceControl _
	Inherits Canvas
public ref class ResourceControl : public Canvas
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
ResourceControl()()()
Initializes a ResourceControl instance.

ActualHeight
Returns the actual height of the ResourceControl based on content size.

ActualSize
Gets a Size which defines the actual size of the ResourceControl based on content size.

ActualWidth
Returns the actual width of the ResourceControl based on content size.

AlignmentX
Gets/Sets a value which determines the horizontal alignment of the visual element.

AlignmentY
Gets/Sets a value which determines the vertical alignment of the visual element.

Arrange(Rect) (Inherited from UIElement.)
AutoScale
Gets/Sets a boolean value indicating whether to automatically scale the visual to the dimensions of the ResourceControl itself.

Background (Inherited from Panel.)
BindingValidationError()()() (Inherited from FrameworkElement.)
CaptureMouse()()() (Inherited from UIElement.)
CheckAccess()()() (Inherited from DependencyObject.)
Children (Inherited from Panel.)
ClearValue(DependencyProperty) (Inherited from DependencyObject.)
Clip (Inherited from UIElement.)
Cursor (Inherited from FrameworkElement.)
DataContext (Inherited from FrameworkElement.)
DataLoaded
An event which fires when the ResourceControl has loaded a resource.

DesiredSize (Inherited from UIElement.)
Dispatcher()()() (Inherited from DependencyObject.)
ElementHeight
Gets the effective height of the loaded resource element

ElementSize
Specifies a Size to use when calculating the layout for the visual

ElementWidth
Gets the effective width of the loaded resource element

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
FindName(String)
Find a DependencyObject by name attribute.

GetAnimationBaseValue(DependencyProperty) (Inherited from DependencyObject.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetValue(DependencyProperty) (Inherited from DependencyObject.)
GotFocus (Inherited from UIElement.)
Height (Inherited from FrameworkElement.)
HorizontalAlignment (Inherited from FrameworkElement.)
InvalidateArrange()()() (Inherited from UIElement.)
InvalidateMeasure()()() (Inherited from UIElement.)
IsHitTestVisible (Inherited from UIElement.)
KeyDown (Inherited from UIElement.)
KeyUp (Inherited from UIElement.)
Language (Inherited from FrameworkElement.)
LayoutUpdated()()() (Inherited from FrameworkElement.)
Loaded (Inherited from FrameworkElement.)
LoadResource(Type, String)
Loads a Xaml resource from an Assembly-based resource

LoadResource(ResourcePath)
Loads a Xaml resource from an Assembly-based resource

LoadResource(String, String)
Loads a Xaml resource from an Assembly-based resource

LoadXaml(String)
Loads raw Xaml into the ResourceControl

LoadXaml(Uri)
Loads a Xaml construct from a Uri address.

LostFocus (Inherited from UIElement.)
LostMouseCapture (Inherited from UIElement.)
Margin (Inherited from FrameworkElement.)
MaxHeight (Inherited from FrameworkElement.)
MaxWidth (Inherited from FrameworkElement.)
Measure(Size) (Inherited from UIElement.)
MinHeight (Inherited from FrameworkElement.)
MinWidth (Inherited from FrameworkElement.)
MouseEnter (Inherited from UIElement.)
MouseLeave (Inherited from UIElement.)
MouseLeftButtonDown (Inherited from UIElement.)
MouseLeftButtonUp (Inherited from UIElement.)
MouseMove (Inherited from UIElement.)
Name (Inherited from FrameworkElement.)
OnApplyTemplate()()() (Inherited from FrameworkElement.)
Opacity (Inherited from UIElement.)
OpacityMask (Inherited from UIElement.)
Parent (Inherited from FrameworkElement.)
ReadLocalValue(DependencyProperty) (Inherited from DependencyObject.)
ReleaseMouseCapture()()() (Inherited from UIElement.)
RenderSize (Inherited from UIElement.)
RenderTransform (Inherited from UIElement.)
RenderTransformOrigin (Inherited from UIElement.)
ResourcePath
Gets the ResourcePath which identifies the Xaml resource loaded in the control

Resources (Inherited from FrameworkElement.)
SetBinding(DependencyProperty, Binding) (Inherited from FrameworkElement.)
SetValue(DependencyProperty, Object) (Inherited from DependencyObject.)
SizeChanged (Inherited from FrameworkElement.)
Style (Inherited from FrameworkElement.)
Tag (Inherited from FrameworkElement.)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
TransformToVisual(UIElement) (Inherited from UIElement.)
Triggers (Inherited from FrameworkElement.)
TryLoadResource(ResourcePath)
Attempts to load a Xaml resource from an Assembly-based resource

TryLoadResource(String, String)
Attempts to load a Xaml resource from an Assembly-based resource

TryLoadResource(Type, String)
Attempts to load a Xaml resource from an Assembly-based resource

TryLoadXaml(String)
Attempts to load raw Xaml into the ResourceControl

TryLoadXaml(Uri)
Attempts to load raw Xaml into the ResourceControl from a Uri address.

UpdateLayout()()() (Inherited from UIElement.)
UseLayoutRounding()()() (Inherited from UIElement.)
VerticalAlignment (Inherited from FrameworkElement.)
Visibility (Inherited from UIElement.)
Width (Inherited from FrameworkElement.)
X
Gets/Sets a value which determines the value of Canvas.LeftProperty for the ResourceControl

Y
Gets/Sets a value which determines the value of Canvas.TopProperty for the ResourceControl

Inheritance Hierarchy
Object
DependencyObject
 UIElement
  FrameworkElement
   Panel
    Canvas
     ResourceControl

Assembly: System.Windows.Controls.Views.Toolkit (Module: System.Windows.Controls.Views.Toolkit) Version: 1.0.0.0 (1.0.0.0)