private void ResetState() { Children.Clear(); DependencyProperties.Clear(); InvalidateMeasure(); InvalidateArrange(); }
static MainMenu() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(MainMenuTemplates.Default, dependencyProperties); dependencyProperties.Add(Region1Property); dependencyProperties.Add(Region1TemplateProperty); dependencyProperties.Add(Group1Property); dependencyProperties.Add(Group1TemplateProperty); dependencyProperties.Add(Button1Property); dependencyProperties.Add(Button1TemplateProperty); dependencyProperties.Add(Button2Property); dependencyProperties.Add(Button2TemplateProperty); dependencyProperties.Add(Button3Property); dependencyProperties.Add(Button3TemplateProperty); dependencyProperties.Add(Region2Property); dependencyProperties.Add(Region2TemplateProperty); dependencyProperties.Add(SubmenuSwitcherProperty); dependencyProperties.Add(SubmenuSwitcherTemplateProperty); dependencyProperties.Add(LevelSelectProperty); dependencyProperties.Add(LevelSelectTemplateProperty); dependencyProperties.Add(OptionsProperty); dependencyProperties.Add(OptionsTemplateProperty); }
static NavigatorExample() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(NavigatorExampleTemplates.Default, dependencyProperties); dependencyProperties.Add(Navigator1Property); dependencyProperties.Add(Navigator1TemplateProperty); dependencyProperties.Add(Region1Property); dependencyProperties.Add(Region1TemplateProperty); dependencyProperties.Add(Label1Property); dependencyProperties.Add(Label1TemplateProperty); dependencyProperties.Add(Region2Property); dependencyProperties.Add(Region2TemplateProperty); dependencyProperties.Add(Label2Property); dependencyProperties.Add(Label2TemplateProperty); dependencyProperties.Add(Group1Property); dependencyProperties.Add(Group1TemplateProperty); dependencyProperties.Add(Button1Property); dependencyProperties.Add(Button1TemplateProperty); dependencyProperties.Add(Button2Property); dependencyProperties.Add(Button2TemplateProperty); dependencyProperties.Add(Button3Property); dependencyProperties.Add(Button3TemplateProperty); }
static LevelSelectExample() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(LevelSelectExampleTemplates.Default, dependencyProperties); dependencyProperties.Add(NavigateBackProperty); dependencyProperties.Add(Image1Property); dependencyProperties.Add(Image1TemplateProperty); dependencyProperties.Add(Label1Property); dependencyProperties.Add(Label1TemplateProperty); dependencyProperties.Add(List1Property); dependencyProperties.Add(List1TemplateProperty); dependencyProperties.Add(ListItem1Property); dependencyProperties.Add(ListItem1TemplateProperty); dependencyProperties.Add(Label2Property); dependencyProperties.Add(Label2TemplateProperty); dependencyProperties.Add(Image2Property); dependencyProperties.Add(Image2TemplateProperty); dependencyProperties.Add(NavigationButton1Property); dependencyProperties.Add(NavigationButton1TemplateProperty); dependencyProperties.Add(NavigationButton2Property); dependencyProperties.Add(NavigationButton2TemplateProperty); dependencyProperties.Add(Button1Property); dependencyProperties.Add(Button1TemplateProperty); }
static XmlEditor() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(XmlEditorTemplates.Default, dependencyProperties); dependencyProperties.Add(XmlTextProperty); dependencyProperties.Add(IsFocusedProperty); dependencyProperties.Add(EditProperty); dependencyProperties.Add(ScrollableRegionProperty); dependencyProperties.Add(ScrollableRegionTemplateProperty); dependencyProperties.Add(XmlEditRegionProperty); dependencyProperties.Add(XmlEditRegionTemplateProperty); dependencyProperties.Add(XmlTextRegionProperty); dependencyProperties.Add(XmlTextRegionTemplateProperty); dependencyProperties.Add(TextSelectionProperty); dependencyProperties.Add(TextSelectionTemplateProperty); dependencyProperties.Add(XmlTextLabelProperty); dependencyProperties.Add(XmlTextLabelTemplateProperty); dependencyProperties.Add(CaretProperty); dependencyProperties.Add(CaretTemplateProperty); dependencyProperties.Add(XmlEditLeftMarginProperty); dependencyProperties.Add(XmlEditLeftMarginTemplateProperty); dependencyProperties.Add(LineNumbersLabelProperty); dependencyProperties.Add(LineNumbersLabelTemplateProperty); dependencyProperties.Add(LineNumbersRightBorderProperty); dependencyProperties.Add(LineNumbersRightBorderTemplateProperty); dependencyProperties.Add(DebugTextLabelProperty); dependencyProperties.Add(DebugTextLabelTemplateProperty); }
static TitleView() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(TitleViewTemplates.Default, dependencyProperties); dependencyProperties.Add(TitleProperty); dependencyProperties.Add(CheckProperty); dependencyProperties.Add(Group1Property); dependencyProperties.Add(Group1TemplateProperty); dependencyProperties.Add(Button1Property); dependencyProperties.Add(Button1TemplateProperty); dependencyProperties.Add(CheckBox1Property); dependencyProperties.Add(CheckBox1TemplateProperty); dependencyProperties.Add(CheckBox2Property); dependencyProperties.Add(CheckBox2TemplateProperty); dependencyProperties.Add(InputProperty); dependencyProperties.Add(InputTemplateProperty); dependencyProperties.Add(Label1Property); dependencyProperties.Add(Label1TemplateProperty); dependencyProperties.Add(Label2Property); dependencyProperties.Add(Label2TemplateProperty); dependencyProperties.Add(Input1Property); dependencyProperties.Add(Input1TemplateProperty); dependencyProperties.Add(Input2Property); dependencyProperties.Add(Input2TemplateProperty); dependencyProperties.Add(Label3Property); dependencyProperties.Add(Label3TemplateProperty); }
static UIView() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(UIViewTemplates.Default, dependencyProperties); dependencyProperties.Add(RectTransformProperty); dependencyProperties.Add(WidthProperty); dependencyProperties.Add(HeightProperty); dependencyProperties.Add(OverrideWidthProperty); dependencyProperties.Add(OverrideHeightProperty); dependencyProperties.Add(ScaleProperty); dependencyProperties.Add(AlignmentProperty); dependencyProperties.Add(MarginProperty); dependencyProperties.Add(OffsetProperty); dependencyProperties.Add(OffsetFromParentProperty); dependencyProperties.Add(PivotProperty); dependencyProperties.Add(DisableLayoutUpdateProperty); dependencyProperties.Add(AlphaProperty); dependencyProperties.Add(IsVisibleProperty); dependencyProperties.Add(RaycastBlockModeProperty); dependencyProperties.Add(CanvasGroupProperty); dependencyProperties.Add(UseFastShaderProperty); dependencyProperties.Add(FastMaterialProperty); dependencyProperties.Add(BubbleNotifyChildLayoutChangedProperty); dependencyProperties.Add(IgnoreFlipProperty); dependencyProperties.Add(RotationProperty); dependencyProperties.Add(PositionProperty); }
static SceneObjectView() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(SceneObjectViewTemplates.Default, dependencyProperties); dependencyProperties.Add(GameObjectProperty); dependencyProperties.Add(EnableScriptEventsProperty); dependencyProperties.Add(IgnoreObjectProperty); dependencyProperties.Add(IsActiveProperty); dependencyProperties.Add(BeginDragProperty); dependencyProperties.Add(CancelProperty); dependencyProperties.Add(ClickProperty); dependencyProperties.Add(DeselectProperty); dependencyProperties.Add(DragProperty); dependencyProperties.Add(DropProperty); dependencyProperties.Add(EndDragProperty); dependencyProperties.Add(InitializePotentialDragProperty); dependencyProperties.Add(MoveProperty); dependencyProperties.Add(MouseDownProperty); dependencyProperties.Add(MouseEnterProperty); dependencyProperties.Add(MouseExitProperty); dependencyProperties.Add(MouseUpProperty); dependencyProperties.Add(ScrollProperty); dependencyProperties.Add(SelectProperty); dependencyProperties.Add(SubmitProperty); dependencyProperties.Add(UpdateSelectedProperty); }
/// <summary> /// Recherche la propriété personnalisé et la crée si elle n'existe pas /// </summary> /// <param name="strategyId">Identifiant de la stratégie</param> /// <param name="propertyName">Nom de la propriété</param> /// <param name="createIfNotExists">if set to <c>true</c> [create if not exists].</param> /// <returns></returns> public DependencyProperty GetStrategyCustomProperty(string strategyId, string propertyName, bool createIfNotExists) { foreach (StrategyBase strategy in GetStrategies(false)) { if (Utils.StringCompareEquals(strategy.StrategyId, strategyId)) { foreach (DependencyProperty property in DependencyProperties) { if (Utils.StringCompareEquals(property.Name, propertyName)) { return(property); } } } // Si pas trouvé, on crée if (createIfNotExists && strategy.CheckPropertyValid(this, propertyName)) { using ( Transaction transaction = Store.TransactionManager.BeginTransaction("Initialise property value") ) { DependencyProperty propertyInfo = new DependencyProperty(Store); DependencyProperties.Add(propertyInfo); propertyInfo.StrategyId = strategyId; propertyInfo.Name = propertyName; propertyInfo.Value = null; transaction.Commit(); return(propertyInfo); } } } return(null); }
static InputFieldExample() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(InputFieldExampleTemplates.Default, dependencyProperties); dependencyProperties.Add(Group1Property); dependencyProperties.Add(Group1TemplateProperty); dependencyProperties.Add(Group2Property); dependencyProperties.Add(Group2TemplateProperty); dependencyProperties.Add(Label1Property); dependencyProperties.Add(Label1TemplateProperty); dependencyProperties.Add(Label2Property); dependencyProperties.Add(Label2TemplateProperty); dependencyProperties.Add(InputField1Property); dependencyProperties.Add(InputField1TemplateProperty); dependencyProperties.Add(Label3Property); dependencyProperties.Add(Label3TemplateProperty); dependencyProperties.Add(InputField2Property); dependencyProperties.Add(InputField2TemplateProperty); dependencyProperties.Add(Label4Property); dependencyProperties.Add(Label4TemplateProperty); dependencyProperties.Add(InputField3Property); dependencyProperties.Add(InputField3TemplateProperty); dependencyProperties.Add(Image1Property); dependencyProperties.Add(Image1TemplateProperty); dependencyProperties.Add(Group3Property); dependencyProperties.Add(Group3TemplateProperty); dependencyProperties.Add(Label5Property); dependencyProperties.Add(Label5TemplateProperty); dependencyProperties.Add(InputField4Property); dependencyProperties.Add(InputField4TemplateProperty); }
static Label() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(LabelTemplates.Default, dependencyProperties); dependencyProperties.Add(TextComponentProperty); dependencyProperties.Add(TextAlignmentProperty); dependencyProperties.Add(EnableWordWrappingProperty); dependencyProperties.Add(AutoSizeProperty); dependencyProperties.Add(OverflowModeProperty); dependencyProperties.Add(ExtraPaddingProperty); dependencyProperties.Add(FontProperty); dependencyProperties.Add(TextProperty); dependencyProperties.Add(SupportRichTextProperty); dependencyProperties.Add(ResizeTextForBestFitProperty); dependencyProperties.Add(ResizeTextMinSizeProperty); dependencyProperties.Add(ResizeTextMaxSizeProperty); dependencyProperties.Add(TextComponentTextAlignmentProperty); dependencyProperties.Add(AlignByGeometryProperty); dependencyProperties.Add(FontSizeProperty); dependencyProperties.Add(HorizontalOverflowProperty); dependencyProperties.Add(VerticalOverflowProperty); dependencyProperties.Add(LineSpacingProperty); dependencyProperties.Add(FontStyleProperty); dependencyProperties.Add(OnCullStateChangedProperty); dependencyProperties.Add(MaskableProperty); dependencyProperties.Add(IsMaskingGraphicProperty); dependencyProperties.Add(FontColorProperty); dependencyProperties.Add(RaycastTargetProperty); dependencyProperties.Add(MaterialProperty); }
public void TestProperties() { ResetState(); // default values Assert.Equal(Matrix.Identity, DependencyProperties.Get(ContentArrangeMatrixPropertyKey)); }
static Button() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(ButtonTemplates.Default, dependencyProperties); dependencyProperties.Add(DefaultWidthProperty); dependencyProperties.Add(IsToggleButtonProperty); dependencyProperties.Add(IsDisabledProperty); dependencyProperties.Add(ToggleValueProperty); dependencyProperties.Add(TextPaddingProperty); dependencyProperties.Add(CanToggleOnProperty); dependencyProperties.Add(CanToggleOffProperty); dependencyProperties.Add(ToggleClickProperty); dependencyProperties.Add(ToggleOnProperty); dependencyProperties.Add(ToggleOffProperty); dependencyProperties.Add(IsMouseOverProperty); dependencyProperties.Add(IsPressedProperty); dependencyProperties.Add(AutoSizeProperty); dependencyProperties.Add(TextOffsetProperty); dependencyProperties.Add(IsCloseButtonProperty); dependencyProperties.Add(IsBackButtonProperty); dependencyProperties.Add(DisplayLabelProperty); dependencyProperties.Add(LabelProperty); dependencyProperties.Add(LabelTemplateProperty); }
static Image() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(ImageTemplates.Default, dependencyProperties); dependencyProperties.Add(ImageComponentProperty); dependencyProperties.Add(SpriteProperty); dependencyProperties.Add(OverrideSpriteProperty); dependencyProperties.Add(TypeProperty); dependencyProperties.Add(PreserveAspectProperty); dependencyProperties.Add(FillCenterProperty); dependencyProperties.Add(FillMethodProperty); dependencyProperties.Add(FillAmountProperty); dependencyProperties.Add(FillClockwiseProperty); dependencyProperties.Add(FillOriginProperty); dependencyProperties.Add(AlphaHitTestMinimumThresholdProperty); dependencyProperties.Add(UseSpriteMeshProperty); dependencyProperties.Add(PixelsPerUnitMultiplierProperty); dependencyProperties.Add(MaterialProperty); dependencyProperties.Add(OnCullStateChangedProperty); dependencyProperties.Add(MaskableProperty); dependencyProperties.Add(ColorProperty); dependencyProperties.Add(RaycastTargetProperty); }
static GridExample() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(GridExampleTemplates.Default, dependencyProperties); dependencyProperties.Add(Grid1Property); dependencyProperties.Add(Grid1TemplateProperty); dependencyProperties.Add(Cell00Property); dependencyProperties.Add(Cell00TemplateProperty); dependencyProperties.Add(Cell01Property); dependencyProperties.Add(Cell01TemplateProperty); dependencyProperties.Add(Cell02Property); dependencyProperties.Add(Cell02TemplateProperty); dependencyProperties.Add(Cell10Property); dependencyProperties.Add(Cell10TemplateProperty); dependencyProperties.Add(Cell11Property); dependencyProperties.Add(Cell11TemplateProperty); dependencyProperties.Add(Cell12Property); dependencyProperties.Add(Cell12TemplateProperty); dependencyProperties.Add(Cell20Property); dependencyProperties.Add(Cell20TemplateProperty); dependencyProperties.Add(Cell21Property); dependencyProperties.Add(Cell21TemplateProperty); dependencyProperties.Add(Cell22Property); dependencyProperties.Add(Cell22TemplateProperty); dependencyProperties.Add(GridSplitter1Property); dependencyProperties.Add(GridSplitter1TemplateProperty); }
static UIImageView() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(UIImageViewTemplates.Default, dependencyProperties); dependencyProperties.Add(ImageComponentProperty); dependencyProperties.Add(BackgroundSpriteProperty); dependencyProperties.Add(BackgroundOverrideSpriteProperty); dependencyProperties.Add(BackgroundTypeProperty); dependencyProperties.Add(BackgroundPreserveAspectProperty); dependencyProperties.Add(BackgroundFillCenterProperty); dependencyProperties.Add(BackgroundFillMethodProperty); dependencyProperties.Add(BackgroundFillAmountProperty); dependencyProperties.Add(BackgroundFillClockwiseProperty); dependencyProperties.Add(BackgroundFillOriginProperty); dependencyProperties.Add(BackgroundAlphaHitTestMinimumThresholdProperty); dependencyProperties.Add(BackgroundUseSpriteMeshProperty); dependencyProperties.Add(BackgroundPixelsPerUnitMultiplierProperty); dependencyProperties.Add(BackgroundMaterialProperty); dependencyProperties.Add(BackgroundOnCullStateChangedProperty); dependencyProperties.Add(BackgroundMaskableProperty); dependencyProperties.Add(BackgroundColorProperty); dependencyProperties.Add(BackgroundRaycastTargetProperty); }
public void TestProperties() { ResetState(); // test default values Assert.AreEqual(Orientation.Vertical, DependencyProperties.Get(OrientationPropertyKey)); }
static RectMask2D() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(RectMask2DTemplates.Default, dependencyProperties); dependencyProperties.Add(RectMask2DComponentProperty); }
private void ResetState() { DependencyProperties.Clear(); InvalidateArrange(); InvalidateMeasure(); Content = null; LocalMatrix = Matrix.Identity; }
static Frame() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(FrameTemplates.Default, dependencyProperties); dependencyProperties.Add(AutoSizeToContentProperty); }
static View() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(ViewTemplates.Default, dependencyProperties); dependencyProperties.Add(LoadModeProperty); }
static ExpanderContent() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(ExpanderContentTemplates.Default, dependencyProperties); dependencyProperties.Add(ContentTemplateDataProperty); }
static SelectionIndicator() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(SelectionIndicatorTemplates.Default, dependencyProperties); dependencyProperties.Add(SelectedViewInfoProperty); }
static NavigationButton() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(NavigationButtonTemplates.Default, dependencyProperties); dependencyProperties.Add(NavigationTypeProperty); dependencyProperties.Add(PageIndexProperty); }
static ExpanderHeader() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(ExpanderHeaderTemplates.Default, dependencyProperties); dependencyProperties.Add(TextProperty); dependencyProperties.Add(SpriteProperty); }
static NewScene() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(NewSceneTemplates.Default, dependencyProperties); dependencyProperties.Add(Label1Property); dependencyProperties.Add(Label1TemplateProperty); }
static MainMenuScene() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(MainMenuSceneTemplates.Default, dependencyProperties); dependencyProperties.Add(MainMenu1Property); dependencyProperties.Add(MainMenu1TemplateProperty); }
static Collection() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(CollectionTemplates.Default, dependencyProperties); dependencyProperties.Add(ItemsProperty); dependencyProperties.Add(TemplateSelectorProperty); }
public void TestProperties() { ResetState(); // default values Assert.Equal(0, DependencyProperties.Get(ZIndexPropertyKey)); Assert.False(ClipToBounds); Assert.Equal(Matrix.Identity, DependencyProperties.Get(PanelArrangeMatrixPropertyKey)); }
static Mask() { var dependencyProperties = new List <DependencyProperty>(); DependencyProperties.Add(MaskTemplates.Default, dependencyProperties); dependencyProperties.Add(MaskComponentProperty); dependencyProperties.Add(ShowMaskGraphicProperty); }