Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / Generated / TileBrush.cs / 1 / TileBrush.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// This file was generated, please do not edit it directly.
//
// Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information.
//
//---------------------------------------------------------------------------
using MS.Internal;
using MS.Internal.KnownBoxes;
using MS.Internal.Collections;
using MS.Internal.PresentationCore;
using MS.Utility;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Runtime.InteropServices;
using System.ComponentModel.Design.Serialization;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Effects;
using System.Windows.Media.Media3D;
using System.Windows.Media.Animation;
using System.Windows.Media.Composition;
using System.Windows.Media.Imaging;
using System.Windows.Markup;
using System.Windows.Media.Converters;
using System.Security;
using System.Security.Permissions;
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
// These types are aliased to match the unamanaged names used in interop
using BOOL = System.UInt32;
using WORD = System.UInt16;
using Float = System.Single;
namespace System.Windows.Media
{
abstract partial class TileBrush : Brush
{
//-----------------------------------------------------
//
// Public Methods
//
//-----------------------------------------------------
#region Public Methods
///
/// Shadows inherited Clone() with a strongly typed
/// version for convenience.
///
public new TileBrush Clone()
{
return (TileBrush)base.Clone();
}
///
/// Shadows inherited CloneCurrentValue() with a strongly typed
/// version for convenience.
///
public new TileBrush CloneCurrentValue()
{
return (TileBrush)base.CloneCurrentValue();
}
#endregion Public Methods
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
private static void ViewportUnitsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewportUnitsProperty);
}
private static void ViewboxUnitsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewboxUnitsProperty);
}
private static void ViewportPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewportProperty);
}
private static void ViewboxPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewboxProperty);
}
private static void StretchPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(StretchProperty);
}
private static void TileModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(TileModeProperty);
}
private static void AlignmentXPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(AlignmentXProperty);
}
private static void AlignmentYPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(AlignmentYProperty);
}
private static void CachingHintPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(RenderOptions.CachingHintProperty);
}
private static void CacheInvalidationThresholdMinimumPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(RenderOptions.CacheInvalidationThresholdMinimumProperty);
}
private static void CacheInvalidationThresholdMaximumPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(RenderOptions.CacheInvalidationThresholdMaximumProperty);
}
#region Public Properties
///
/// ViewportUnits - BrushMappingMode. Default value is BrushMappingMode.RelativeToBoundingBox.
///
public BrushMappingMode ViewportUnits
{
get
{
return (BrushMappingMode) GetValue(ViewportUnitsProperty);
}
set
{
SetValueInternal(ViewportUnitsProperty, value);
}
}
///
/// ViewboxUnits - BrushMappingMode. Default value is BrushMappingMode.RelativeToBoundingBox.
///
public BrushMappingMode ViewboxUnits
{
get
{
return (BrushMappingMode) GetValue(ViewboxUnitsProperty);
}
set
{
SetValueInternal(ViewboxUnitsProperty, value);
}
}
///
/// Viewport - Rect. Default value is new Rect(0,0,1,1).
///
public Rect Viewport
{
get
{
return (Rect) GetValue(ViewportProperty);
}
set
{
SetValueInternal(ViewportProperty, value);
}
}
///
/// Viewbox - Rect. Default value is new Rect(0,0,1,1).
///
public Rect Viewbox
{
get
{
return (Rect) GetValue(ViewboxProperty);
}
set
{
SetValueInternal(ViewboxProperty, value);
}
}
///
/// Stretch - Stretch. Default value is Stretch.Fill.
///
public Stretch Stretch
{
get
{
return (Stretch) GetValue(StretchProperty);
}
set
{
SetValueInternal(StretchProperty, value);
}
}
///
/// TileMode - TileMode. Default value is TileMode.None.
///
public TileMode TileMode
{
get
{
return (TileMode) GetValue(TileModeProperty);
}
set
{
SetValueInternal(TileModeProperty, value);
}
}
///
/// AlignmentX - AlignmentX. Default value is AlignmentX.Center.
///
public AlignmentX AlignmentX
{
get
{
return (AlignmentX) GetValue(AlignmentXProperty);
}
set
{
SetValueInternal(AlignmentXProperty, value);
}
}
///
/// AlignmentY - AlignmentY. Default value is AlignmentY.Center.
///
public AlignmentY AlignmentY
{
get
{
return (AlignmentY) GetValue(AlignmentYProperty);
}
set
{
SetValueInternal(AlignmentYProperty, value);
}
}
#endregion Public Properties
//------------------------------------------------------
//
// Protected Methods
//
//------------------------------------------------------
#region Protected Methods
#endregion ProtectedMethods
//-----------------------------------------------------
//
// Internal Methods
//
//------------------------------------------------------
#region Internal Methods
#endregion Internal Methods
//-----------------------------------------------------
//
// Internal Properties
//
//-----------------------------------------------------
#region Internal Properties
#endregion Internal Properties
//-----------------------------------------------------
//
// Dependency Properties
//
//------------------------------------------------------
#region Dependency Properties
///
/// The DependencyProperty for the TileBrush.ViewportUnits property.
///
public static readonly DependencyProperty ViewportUnitsProperty;
///
/// The DependencyProperty for the TileBrush.ViewboxUnits property.
///
public static readonly DependencyProperty ViewboxUnitsProperty;
///
/// The DependencyProperty for the TileBrush.Viewport property.
///
public static readonly DependencyProperty ViewportProperty;
///
/// The DependencyProperty for the TileBrush.Viewbox property.
///
public static readonly DependencyProperty ViewboxProperty;
///
/// The DependencyProperty for the TileBrush.Stretch property.
///
public static readonly DependencyProperty StretchProperty;
///
/// The DependencyProperty for the TileBrush.TileMode property.
///
public static readonly DependencyProperty TileModeProperty;
///
/// The DependencyProperty for the TileBrush.AlignmentX property.
///
public static readonly DependencyProperty AlignmentXProperty;
///
/// The DependencyProperty for the TileBrush.AlignmentY property.
///
public static readonly DependencyProperty AlignmentYProperty;
#endregion Dependency Properties
//-----------------------------------------------------
//
// Internal Fields
//
//------------------------------------------------------
#region Internal Fields
internal const BrushMappingMode c_ViewportUnits = BrushMappingMode.RelativeToBoundingBox;
internal const BrushMappingMode c_ViewboxUnits = BrushMappingMode.RelativeToBoundingBox;
internal static Rect s_Viewport = new Rect(0,0,1,1);
internal static Rect s_Viewbox = new Rect(0,0,1,1);
internal const Stretch c_Stretch = Stretch.Fill;
internal const TileMode c_TileMode = TileMode.None;
internal const AlignmentX c_AlignmentX = AlignmentX.Center;
internal const AlignmentY c_AlignmentY = AlignmentY.Center;
internal const CachingHint c_CachingHint = CachingHint.Unspecified;
internal const double c_CacheInvalidationThresholdMinimum = 0.707;
internal const double c_CacheInvalidationThresholdMaximum = 1.414;
#endregion Internal Fields
#region Constructors
//------------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
static TileBrush()
{
// We check our static default fields which are of type Freezable
// to make sure that they are not mutable, otherwise we will throw
// if these get touched by more than one thread in the lifetime
// of your app. (Windows OS Bug #947272)
//
RenderOptions.CachingHintProperty.OverrideMetadata(
typeof(TileBrush),
new UIPropertyMetadata(CachingHint.Unspecified,
new PropertyChangedCallback(CachingHintPropertyChanged)));
RenderOptions.CacheInvalidationThresholdMinimumProperty.OverrideMetadata(
typeof(TileBrush),
new UIPropertyMetadata(0.707,
new PropertyChangedCallback(CacheInvalidationThresholdMinimumPropertyChanged)));
RenderOptions.CacheInvalidationThresholdMaximumProperty.OverrideMetadata(
typeof(TileBrush),
new UIPropertyMetadata(1.414,
new PropertyChangedCallback(CacheInvalidationThresholdMaximumPropertyChanged)));
// Initializations
Type typeofThis = typeof(TileBrush);
ViewportUnitsProperty =
RegisterProperty("ViewportUnits",
typeof(BrushMappingMode),
typeofThis,
BrushMappingMode.RelativeToBoundingBox,
new PropertyChangedCallback(ViewportUnitsPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsBrushMappingModeValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
ViewboxUnitsProperty =
RegisterProperty("ViewboxUnits",
typeof(BrushMappingMode),
typeofThis,
BrushMappingMode.RelativeToBoundingBox,
new PropertyChangedCallback(ViewboxUnitsPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsBrushMappingModeValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
ViewportProperty =
RegisterProperty("Viewport",
typeof(Rect),
typeofThis,
new Rect(0,0,1,1),
new PropertyChangedCallback(ViewportPropertyChanged),
null,
/* isIndependentlyAnimated = */ true,
/* coerceValueCallback */ null);
ViewboxProperty =
RegisterProperty("Viewbox",
typeof(Rect),
typeofThis,
new Rect(0,0,1,1),
new PropertyChangedCallback(ViewboxPropertyChanged),
null,
/* isIndependentlyAnimated = */ true,
/* coerceValueCallback */ null);
StretchProperty =
RegisterProperty("Stretch",
typeof(Stretch),
typeofThis,
Stretch.Fill,
new PropertyChangedCallback(StretchPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsStretchValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
TileModeProperty =
RegisterProperty("TileMode",
typeof(TileMode),
typeofThis,
TileMode.None,
new PropertyChangedCallback(TileModePropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsTileModeValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
AlignmentXProperty =
RegisterProperty("AlignmentX",
typeof(AlignmentX),
typeofThis,
AlignmentX.Center,
new PropertyChangedCallback(AlignmentXPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsAlignmentXValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
AlignmentYProperty =
RegisterProperty("AlignmentY",
typeof(AlignmentY),
typeofThis,
AlignmentY.Center,
new PropertyChangedCallback(AlignmentYPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsAlignmentYValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
}
#endregion Constructors
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// This file was generated, please do not edit it directly.
//
// Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information.
//
//---------------------------------------------------------------------------
using MS.Internal;
using MS.Internal.KnownBoxes;
using MS.Internal.Collections;
using MS.Internal.PresentationCore;
using MS.Utility;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Runtime.InteropServices;
using System.ComponentModel.Design.Serialization;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Effects;
using System.Windows.Media.Media3D;
using System.Windows.Media.Animation;
using System.Windows.Media.Composition;
using System.Windows.Media.Imaging;
using System.Windows.Markup;
using System.Windows.Media.Converters;
using System.Security;
using System.Security.Permissions;
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
// These types are aliased to match the unamanaged names used in interop
using BOOL = System.UInt32;
using WORD = System.UInt16;
using Float = System.Single;
namespace System.Windows.Media
{
abstract partial class TileBrush : Brush
{
//-----------------------------------------------------
//
// Public Methods
//
//-----------------------------------------------------
#region Public Methods
///
/// Shadows inherited Clone() with a strongly typed
/// version for convenience.
///
public new TileBrush Clone()
{
return (TileBrush)base.Clone();
}
///
/// Shadows inherited CloneCurrentValue() with a strongly typed
/// version for convenience.
///
public new TileBrush CloneCurrentValue()
{
return (TileBrush)base.CloneCurrentValue();
}
#endregion Public Methods
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
private static void ViewportUnitsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewportUnitsProperty);
}
private static void ViewboxUnitsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewboxUnitsProperty);
}
private static void ViewportPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewportProperty);
}
private static void ViewboxPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(ViewboxProperty);
}
private static void StretchPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(StretchProperty);
}
private static void TileModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(TileModeProperty);
}
private static void AlignmentXPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(AlignmentXProperty);
}
private static void AlignmentYPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(AlignmentYProperty);
}
private static void CachingHintPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(RenderOptions.CachingHintProperty);
}
private static void CacheInvalidationThresholdMinimumPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(RenderOptions.CacheInvalidationThresholdMinimumProperty);
}
private static void CacheInvalidationThresholdMaximumPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TileBrush target = ((TileBrush) d);
target.PropertyChanged(RenderOptions.CacheInvalidationThresholdMaximumProperty);
}
#region Public Properties
///
/// ViewportUnits - BrushMappingMode. Default value is BrushMappingMode.RelativeToBoundingBox.
///
public BrushMappingMode ViewportUnits
{
get
{
return (BrushMappingMode) GetValue(ViewportUnitsProperty);
}
set
{
SetValueInternal(ViewportUnitsProperty, value);
}
}
///
/// ViewboxUnits - BrushMappingMode. Default value is BrushMappingMode.RelativeToBoundingBox.
///
public BrushMappingMode ViewboxUnits
{
get
{
return (BrushMappingMode) GetValue(ViewboxUnitsProperty);
}
set
{
SetValueInternal(ViewboxUnitsProperty, value);
}
}
///
/// Viewport - Rect. Default value is new Rect(0,0,1,1).
///
public Rect Viewport
{
get
{
return (Rect) GetValue(ViewportProperty);
}
set
{
SetValueInternal(ViewportProperty, value);
}
}
///
/// Viewbox - Rect. Default value is new Rect(0,0,1,1).
///
public Rect Viewbox
{
get
{
return (Rect) GetValue(ViewboxProperty);
}
set
{
SetValueInternal(ViewboxProperty, value);
}
}
///
/// Stretch - Stretch. Default value is Stretch.Fill.
///
public Stretch Stretch
{
get
{
return (Stretch) GetValue(StretchProperty);
}
set
{
SetValueInternal(StretchProperty, value);
}
}
///
/// TileMode - TileMode. Default value is TileMode.None.
///
public TileMode TileMode
{
get
{
return (TileMode) GetValue(TileModeProperty);
}
set
{
SetValueInternal(TileModeProperty, value);
}
}
///
/// AlignmentX - AlignmentX. Default value is AlignmentX.Center.
///
public AlignmentX AlignmentX
{
get
{
return (AlignmentX) GetValue(AlignmentXProperty);
}
set
{
SetValueInternal(AlignmentXProperty, value);
}
}
///
/// AlignmentY - AlignmentY. Default value is AlignmentY.Center.
///
public AlignmentY AlignmentY
{
get
{
return (AlignmentY) GetValue(AlignmentYProperty);
}
set
{
SetValueInternal(AlignmentYProperty, value);
}
}
#endregion Public Properties
//------------------------------------------------------
//
// Protected Methods
//
//------------------------------------------------------
#region Protected Methods
#endregion ProtectedMethods
//-----------------------------------------------------
//
// Internal Methods
//
//------------------------------------------------------
#region Internal Methods
#endregion Internal Methods
//-----------------------------------------------------
//
// Internal Properties
//
//-----------------------------------------------------
#region Internal Properties
#endregion Internal Properties
//-----------------------------------------------------
//
// Dependency Properties
//
//------------------------------------------------------
#region Dependency Properties
///
/// The DependencyProperty for the TileBrush.ViewportUnits property.
///
public static readonly DependencyProperty ViewportUnitsProperty;
///
/// The DependencyProperty for the TileBrush.ViewboxUnits property.
///
public static readonly DependencyProperty ViewboxUnitsProperty;
///
/// The DependencyProperty for the TileBrush.Viewport property.
///
public static readonly DependencyProperty ViewportProperty;
///
/// The DependencyProperty for the TileBrush.Viewbox property.
///
public static readonly DependencyProperty ViewboxProperty;
///
/// The DependencyProperty for the TileBrush.Stretch property.
///
public static readonly DependencyProperty StretchProperty;
///
/// The DependencyProperty for the TileBrush.TileMode property.
///
public static readonly DependencyProperty TileModeProperty;
///
/// The DependencyProperty for the TileBrush.AlignmentX property.
///
public static readonly DependencyProperty AlignmentXProperty;
///
/// The DependencyProperty for the TileBrush.AlignmentY property.
///
public static readonly DependencyProperty AlignmentYProperty;
#endregion Dependency Properties
//-----------------------------------------------------
//
// Internal Fields
//
//------------------------------------------------------
#region Internal Fields
internal const BrushMappingMode c_ViewportUnits = BrushMappingMode.RelativeToBoundingBox;
internal const BrushMappingMode c_ViewboxUnits = BrushMappingMode.RelativeToBoundingBox;
internal static Rect s_Viewport = new Rect(0,0,1,1);
internal static Rect s_Viewbox = new Rect(0,0,1,1);
internal const Stretch c_Stretch = Stretch.Fill;
internal const TileMode c_TileMode = TileMode.None;
internal const AlignmentX c_AlignmentX = AlignmentX.Center;
internal const AlignmentY c_AlignmentY = AlignmentY.Center;
internal const CachingHint c_CachingHint = CachingHint.Unspecified;
internal const double c_CacheInvalidationThresholdMinimum = 0.707;
internal const double c_CacheInvalidationThresholdMaximum = 1.414;
#endregion Internal Fields
#region Constructors
//------------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
static TileBrush()
{
// We check our static default fields which are of type Freezable
// to make sure that they are not mutable, otherwise we will throw
// if these get touched by more than one thread in the lifetime
// of your app. (Windows OS Bug #947272)
//
RenderOptions.CachingHintProperty.OverrideMetadata(
typeof(TileBrush),
new UIPropertyMetadata(CachingHint.Unspecified,
new PropertyChangedCallback(CachingHintPropertyChanged)));
RenderOptions.CacheInvalidationThresholdMinimumProperty.OverrideMetadata(
typeof(TileBrush),
new UIPropertyMetadata(0.707,
new PropertyChangedCallback(CacheInvalidationThresholdMinimumPropertyChanged)));
RenderOptions.CacheInvalidationThresholdMaximumProperty.OverrideMetadata(
typeof(TileBrush),
new UIPropertyMetadata(1.414,
new PropertyChangedCallback(CacheInvalidationThresholdMaximumPropertyChanged)));
// Initializations
Type typeofThis = typeof(TileBrush);
ViewportUnitsProperty =
RegisterProperty("ViewportUnits",
typeof(BrushMappingMode),
typeofThis,
BrushMappingMode.RelativeToBoundingBox,
new PropertyChangedCallback(ViewportUnitsPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsBrushMappingModeValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
ViewboxUnitsProperty =
RegisterProperty("ViewboxUnits",
typeof(BrushMappingMode),
typeofThis,
BrushMappingMode.RelativeToBoundingBox,
new PropertyChangedCallback(ViewboxUnitsPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsBrushMappingModeValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
ViewportProperty =
RegisterProperty("Viewport",
typeof(Rect),
typeofThis,
new Rect(0,0,1,1),
new PropertyChangedCallback(ViewportPropertyChanged),
null,
/* isIndependentlyAnimated = */ true,
/* coerceValueCallback */ null);
ViewboxProperty =
RegisterProperty("Viewbox",
typeof(Rect),
typeofThis,
new Rect(0,0,1,1),
new PropertyChangedCallback(ViewboxPropertyChanged),
null,
/* isIndependentlyAnimated = */ true,
/* coerceValueCallback */ null);
StretchProperty =
RegisterProperty("Stretch",
typeof(Stretch),
typeofThis,
Stretch.Fill,
new PropertyChangedCallback(StretchPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsStretchValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
TileModeProperty =
RegisterProperty("TileMode",
typeof(TileMode),
typeofThis,
TileMode.None,
new PropertyChangedCallback(TileModePropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsTileModeValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
AlignmentXProperty =
RegisterProperty("AlignmentX",
typeof(AlignmentX),
typeofThis,
AlignmentX.Center,
new PropertyChangedCallback(AlignmentXPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsAlignmentXValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
AlignmentYProperty =
RegisterProperty("AlignmentY",
typeof(AlignmentY),
typeofThis,
AlignmentY.Center,
new PropertyChangedCallback(AlignmentYPropertyChanged),
new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsAlignmentYValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
}
#endregion Constructors
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QuotaThrottle.cs
- PointAnimationUsingKeyFrames.cs
- SourceExpressionException.cs
- RadioButtonPopupAdapter.cs
- HtmlInputPassword.cs
- Timer.cs
- BindStream.cs
- AsyncDataRequest.cs
- CompositeControl.cs
- BinaryCommonClasses.cs
- ParagraphResult.cs
- InvalidAsynchronousStateException.cs
- PerfCounterSection.cs
- FunctionMappingTranslator.cs
- TemplateNameScope.cs
- SQLInt32.cs
- MsmqChannelFactoryBase.cs
- DebugHandleTracker.cs
- ExecutedRoutedEventArgs.cs
- DeviceSpecificChoice.cs
- ButtonBaseDesigner.cs
- ContextMenu.cs
- PeerNearMe.cs
- SortKey.cs
- OneToOneMappingSerializer.cs
- SizeAnimationClockResource.cs
- WebPartTransformerCollection.cs
- ValueUtilsSmi.cs
- WebPartEventArgs.cs
- WebPartDescriptionCollection.cs
- ListItemsCollectionEditor.cs
- _NegoState.cs
- GenericTypeParameterBuilder.cs
- StylusPointPropertyId.cs
- PenThread.cs
- ContextMenuStrip.cs
- DeclarativeCatalogPart.cs
- Rotation3D.cs
- KnownAssemblyEntry.cs
- AssemblyHash.cs
- KeyValueConfigurationCollection.cs
- ControlCommandSet.cs
- BamlLocalizableResource.cs
- RegistrySecurity.cs
- ZipIOModeEnforcingStream.cs
- CultureTable.cs
- TemplateControlCodeDomTreeGenerator.cs
- ProxyHwnd.cs
- PropertyGroupDescription.cs
- PermissionListSet.cs
- XmlComplianceUtil.cs
- DLinqColumnProvider.cs
- HttpStreams.cs
- ProfileService.cs
- CompilerInfo.cs
- RenderOptions.cs
- WizardForm.cs
- HtmlContainerControl.cs
- DataStorage.cs
- UserControlParser.cs
- UnsafeNativeMethods.cs
- BulletDecorator.cs
- ISFClipboardData.cs
- RuleProcessor.cs
- Facet.cs
- HeaderedItemsControl.cs
- StateDesigner.Helpers.cs
- BlurEffect.cs
- WebBrowserProgressChangedEventHandler.cs
- DesignerLoader.cs
- TextBox.cs
- GenericTextProperties.cs
- XmlReaderDelegator.cs
- DataSourceSerializationException.cs
- DesignOnlyAttribute.cs
- MenuAutomationPeer.cs
- ConnectionManagementSection.cs
- Size3D.cs
- CircleHotSpot.cs
- EventDescriptor.cs
- SQLString.cs
- SchemaImporterExtensionElementCollection.cs
- PagePropertiesChangingEventArgs.cs
- ISAPIRuntime.cs
- DefaultParameterValueAttribute.cs
- MarkupObject.cs
- StateDesigner.Layouts.cs
- ProfileSection.cs
- DbDataSourceEnumerator.cs
- BamlTreeMap.cs
- Crc32.cs
- DependencyPropertyDescriptor.cs
- Translator.cs
- StubHelpers.cs
- WebPartManagerDesigner.cs
- EditorZoneAutoFormat.cs
- WebPartCatalogAddVerb.cs
- PageAsyncTaskManager.cs
- GeneralTransform3DTo2D.cs
- AttributeCollection.cs