Example #1
0
 /// <summary>
 /// Updates the metadata.
 /// </summary>
 /// <param name="increment">The default increment.</param>
 /// <param name="minValue">The default min value.</param>
 /// <param name="maxValue">The default max value.</param>
 protected static void UpdateMetadata(TType?increment, TType?minValue, TType?maxValue)
 {
     ElementStyleProperty.OverrideMetadata(typeof(T), new FrameworkPropertyMetadata(DefaultElementStyle));
     EditingElementStyleProperty.OverrideMetadata(typeof(T), new FrameworkPropertyMetadata(DefaultEditingElementStyle));
     IncrementProperty.OverrideMetadata(typeof(T), new FrameworkPropertyMetadata(increment));
     MaximumProperty.OverrideMetadata(typeof(T), new FrameworkPropertyMetadata(maxValue));
     MinimumProperty.OverrideMetadata(typeof(T), new FrameworkPropertyMetadata(minValue));
 }
Example #2
0
 static DataGridNumericUpDownColumn()
 {
     ElementStyleProperty.OverrideMetadata(typeof(DataGridNumericUpDownColumn), new FrameworkPropertyMetadata(DefaultElementStyle));
     EditingElementStyleProperty.OverrideMetadata(typeof(DataGridNumericUpDownColumn), new FrameworkPropertyMetadata(DefaultEditingElementStyle));
 }
Example #3
0
 static DataGridIntellisenseTextboxColumn()
 {
     ElementStyleProperty.OverrideMetadata(typeof(DataGridIntellisenseTextboxColumn), new FrameworkPropertyMetadata(DefaultElementStyle));
     EditingElementStyleProperty.OverrideMetadata(typeof(DataGridIntellisenseTextboxColumn), new FrameworkPropertyMetadata(DefaultEditingElementStyle));
 }
 static DataGridPactComboBoxColumn()
 {
     ElementStyleProperty.OverrideMetadata(typeof(DataGridPactComboBoxColumn), new FrameworkPropertyMetadata(DefaultElementStyle));
     EditingElementStyleProperty.OverrideMetadata(typeof(DataGridPactComboBoxColumn), new FrameworkPropertyMetadata(DefaultEditingElementStyle));
 }
Example #5
0
        // ====================================================================
        // static コンストラクター・デストラクター
        // ====================================================================

        // --------------------------------------------------------------------
        // static コンストラクター
        // --------------------------------------------------------------------
        static DataGridFtcColumn()
        {
            ElementStyleProperty.OverrideMetadata(typeof(DataGridFtcColumn), new FrameworkPropertyMetadata(DefaultElementStyle));
        }