System.Windows.DependencyObject.GetValue(System.Windows.DependencyProperty)

Here are the examples of the csharp api System.Windows.DependencyObject.GetValue(System.Windows.DependencyProperty) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3027 Examples 7

19 View Source File : VirtualizingWrapPanel .cs
License : MIT License
Project Creator : 944095635

private static int GetVirtualItemIndex(DependencyObject obj)
        {
            return (int)obj.GetValue(VirtualItemIndexProperty);
        }

19 View Source File : StockChartHelper.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetShowTooltipLabel(DependencyObject element)
        {
            return (bool) element.GetValue(ShowTooltipLabelProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetUseAlternateYAxis(DependencyObject element)
        {
            return (bool) element.GetValue(UseAlternateYAxisProperty);
        }

19 View Source File : ScrollViewerExtensions.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetCanContentScroll(DependencyObject element)
        {
            return (bool) element.GetValue(CanContentScrollProperty);
        }

19 View Source File : TextBoxHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static object GereplacedermarkContent(DependencyObject element)
        {
            return (object) element.GetValue(WatermarkContentProperty);
        }

19 View Source File : TextBoxHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static DataTemplate GereplacedermarkContentTemplate(DependencyObject element)
        {
            return (DataTemplate) element.GetValue(WatermarkContentTemplateProperty);
        }

19 View Source File : TextBoxHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetIsShowingWatermark(DependencyObject element)
        {
            return (bool) element.GetValue(IsShowingWatermarkProperty);
        }

19 View Source File : TextBoxHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetLoseFocusOnEscape(DependencyObject element)
        {
            return (bool) element.GetValue(LoseFocusOnEscapeProperty);
        }

19 View Source File : TextBoxHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetClearButton(DependencyObject element)
        {
            return (bool) element.GetValue(ClearButtonProperty);
        }

19 View Source File : TextBoxHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static CornerRadius GetCornerRadius(DependencyObject element)
        {
            return (CornerRadius)element.GetValue(CornerRadiusProperty);
        }

19 View Source File : LineSeriesSource.cs
License : MIT License
Project Creator : ABTSoftware

public static IEnumerable<IDataSeries> GetDataSeries(UIElement element)
        {
            return (IEnumerable<IDataSeries>)element.GetValue(DataSeriesProperty);
        }

19 View Source File : Navigator.cs
License : MIT License
Project Creator : ABTSoftware

public static Guid GetStartPage(DependencyObject element)
        {
            return (Guid)element.GetValue(StartPageProperty);
        }

19 View Source File : Navigator.cs
License : MIT License
Project Creator : ABTSoftware

public static Guid GetExampleStartPage(DependencyObject element)
        {
            return (Guid)element.GetValue(ExampleStartPageProperty);
        }

19 View Source File : EndlessItemsControl.cs
License : MIT License
Project Creator : ABTSoftware

private void AddMoreItems()
        {
            var isBusy = (bool)GetValue(IsBusyProperty);
            if (!isBusy)
            {
                SetValue(IsBusyProperty, true);
                SetValue(IsBusyProperty, false);
                SetValue(IsBusyProperty, true);
                var delay = (TimeSpan)GetValue(PreLoadingDelayProperty);
                
                Task.Factory.StartNew(() =>
                {
                    Thread.Sleep(delay);

                    var items = _allItems.Take(10).ToList();
                    items.ForEach(item =>
                    {
                        Dispatcher.BeginInvoke(new Action(() => Currenreplacedems.Add(item)));
                        _allItems.Remove(item);
                    });
                }).ContinueWith(_ =>
                {
                    Dispatcher.BeginInvoke(new Action(() => SetValue(IsBusyProperty, false)));
                });
            }
        }

19 View Source File : EndlessItemsControl.cs
License : MIT License
Project Creator : ABTSoftware

private void RefhrereplacedemsSource(List<object> newItems)
        {
            var startCapacity = (int)GetValue(StartCapacityProperty);

            _allItems = newItems;
            Currenreplacedems = new ObservableCollection<object>(_allItems.Take(startCapacity));
            _allItems.Take(startCapacity).ToList().ForEach(item => _allItems.Remove(item));

            var binding = new Binding
            {
                Path = new PropertyPath("Currenreplacedems"),
                Source = this,
                Mode = BindingMode.TwoWay,
                UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged,
            };
            SetBinding(ItemsSourceProperty, binding);
        }

19 View Source File : CustomListBoxItem.cs
License : MIT License
Project Creator : ABTSoftware

public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            var isGroup = (bool)this.GetValue(IsGroupProperty);
            UpdateGroupState(isGroup);
        }

19 View Source File : CollapsableGridSplitter.cs
License : MIT License
Project Creator : ABTSoftware

private void Collapse()
        {
            Grid parentGrid = base.Parent as Grid;
            int splitterIndex = int.MinValue;

            if (_gridCollapseDirection == GridCollapseDirection.Rows)
            {
                // Get the index of the row containing the splitter
                splitterIndex = (int)base.GetValue(Grid.RowProperty);

                // Determing the curent CollapseMode
                if (this.CollapseMode == GridSplitterCollapseMode.Next)
                {
                    // Save the next rows Height information
                    _savedGridLength = parentGrid.RowDefinitions[splitterIndex + 1].Height;
                    _savedActualValue = parentGrid.RowDefinitions[splitterIndex + 1].ActualHeight;

                    // Collapse the next row
                    if (IsAnimated)
                        AnimateCollapse(parentGrid.RowDefinitions[splitterIndex + 1]);
                    else
                        parentGrid.RowDefinitions[splitterIndex + 1].SetValue(RowDefinition.HeightProperty, new GridLength(0));
                }
                else
                {
                    // Save the previous row's Height information
                    _savedGridLength = parentGrid.RowDefinitions[splitterIndex - 1].Height;
                    _savedActualValue = parentGrid.RowDefinitions[splitterIndex - 1].ActualHeight;

                    // Collapse the previous row
                    if (IsAnimated)
                        AnimateCollapse(parentGrid.RowDefinitions[splitterIndex - 1]);
                    else
                        parentGrid.RowDefinitions[splitterIndex - 1].SetValue(RowDefinition.HeightProperty, new GridLength(0));
                }
            }
            else
            {
                // Get the index of the column containing the splitter
                splitterIndex = (int)base.GetValue(Grid.ColumnProperty);

                // Determing the curent CollapseMode
                if (this.CollapseMode == GridSplitterCollapseMode.Next)
                {
                    // Save the next column's Width information
                    _savedGridLength = parentGrid.ColumnDefinitions[splitterIndex + 1].Width;
                    _savedActualValue = parentGrid.ColumnDefinitions[splitterIndex + 1].ActualWidth;

                    // Collapse the next column
                    if (IsAnimated)
                        AnimateCollapse(parentGrid.ColumnDefinitions[splitterIndex + 1]);
                    else
                        parentGrid.ColumnDefinitions[splitterIndex + 1].SetValue(ColumnDefinition.WidthProperty, new GridLength(0));
                }
                else
                {
                    // Save the previous column's Width information
                    _savedGridLength = parentGrid.ColumnDefinitions[splitterIndex - 1].Width;
                    _savedActualValue = parentGrid.ColumnDefinitions[splitterIndex - 1].ActualWidth;

                    // Collapse the previous column
                    if (IsAnimated)
                        AnimateCollapse(parentGrid.ColumnDefinitions[splitterIndex - 1]);
                    else
                        parentGrid.ColumnDefinitions[splitterIndex - 1].SetValue(ColumnDefinition.WidthProperty, new GridLength(0));
                }
            }

        }

19 View Source File : CollapsableGridSplitter.cs
License : MIT License
Project Creator : ABTSoftware

private void Expand()
        {
            Grid parentGrid = base.Parent as Grid;
            int splitterIndex = int.MinValue;

            if (_gridCollapseDirection == GridCollapseDirection.Rows)
            {
                // Get the index of the row containing the splitter
                splitterIndex = (int)this.GetValue(Grid.RowProperty);

                // Determine the curent CollapseMode
                if (this.CollapseMode == GridSplitterCollapseMode.Next)
                {
                    // Expand the next row
                    if (IsAnimated)
                        AnimateExpand(parentGrid.RowDefinitions[splitterIndex + 1]);
                    else
                        parentGrid.RowDefinitions[splitterIndex + 1].SetValue(RowDefinition.HeightProperty, _savedGridLength);
                }
                else
                {
                    // Expand the previous row
                    if (IsAnimated)
                        AnimateExpand(parentGrid.RowDefinitions[splitterIndex - 1]);
                    else
                        parentGrid.RowDefinitions[splitterIndex - 1].SetValue(RowDefinition.HeightProperty, _savedGridLength);
                }
            }
            else
            {
                // Get the index of the column containing the splitter
                splitterIndex = (int)this.GetValue(Grid.ColumnProperty);

                // Determine the curent CollapseMode
                if (this.CollapseMode == GridSplitterCollapseMode.Next)
                {
                    // Expand the next column
                    if (IsAnimated)
                        AnimateExpand(parentGrid.ColumnDefinitions[splitterIndex + 1]);
                    else
                        parentGrid.ColumnDefinitions[splitterIndex + 1].SetValue(ColumnDefinition.WidthProperty, _savedGridLength);
                }
                else
                {
                    // Expand the previous column
                    if (IsAnimated)
                        AnimateExpand(parentGrid.ColumnDefinitions[splitterIndex - 1]);
                    else
                        parentGrid.ColumnDefinitions[splitterIndex - 1].SetValue(ColumnDefinition.WidthProperty, _savedGridLength);
                }
            }
        }

19 View Source File : ExampleHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static ICommand GetLoadedEventCommand(DependencyObject element)
        {
            return (ICommand) element.GetValue(LoadedEventCommandProperty);
        }

19 View Source File : ExampleHelpers.cs
License : MIT License
Project Creator : ABTSoftware

public static ICommand GetUnloadedEventCommand(DependencyObject element)
        { 
            return (ICommand) element.GetValue(UnloadedEventCommandProperty);
        }

19 View Source File : Clip.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetToBounds(DependencyObject depObj)
        {
            return (bool)depObj.GetValue(ToBoundsProperty);
        }

19 View Source File : CodeHighlighter.cs
License : MIT License
Project Creator : ABTSoftware

public static SourceLanguageType GetSourceLanguage(DependencyObject o)
        {
            return (SourceLanguageType)o.GetValue(SourceCodeProperty);
        }

19 View Source File : CodeHighlighter.cs
License : MIT License
Project Creator : ABTSoftware

public static string GetSourceCode(DependencyObject o)
        {
            return (string)o.GetValue(SourceCodeProperty);
        }

19 View Source File : RichTextBoxExtension.cs
License : MIT License
Project Creator : ABTSoftware

public static Paragraph Highlight(this RichTextBox rtb)
        {
            Paragraph paragraph = null;

            if (rtb != null)
            {
                var blocks =
#if SILVERLIGHT
                    rtb.Blocks;
#else
                    rtb.Doreplacedent.Blocks;
#endif
                blocks.Clear();

                paragraph = new Paragraph();
                var xif = new XamlInlineFormatter(paragraph);

                CodeColorizer cc;
                if (_colorizer != null && _colorizer.IsAlive)
                {
                    cc = (CodeColorizer) _colorizer.Target;
                }
                else
                {
                    cc = new CodeColorizer();
                    _colorizer = new WeakReference(cc);
                }

                var languageType = (SourceLanguageType) rtb.GetValue(CodeHighlighter.SourceLanguageProperty);
                ILanguage language = CreateLanguageInstance(languageType);

                var content = (string) rtb.GetValue(CodeHighlighter.SourceCodeProperty);
                cc.Colorize(content, language, xif, new VS2013DarkStyleSheet());

                blocks.Add(paragraph);
            }

            return paragraph;
        }

19 View Source File : RichTextBoxHelper.cs
License : MIT License
Project Creator : ABTSoftware

public static string GetText(DependencyObject o)
        {
            return (string) o.GetValue(TextProperty);
        }

19 View Source File : ContentPresenterHelper.cs
License : MIT License
Project Creator : ABTSoftware

public static string GetContentTemplate(DependencyObject element)
        {
            return (string) element.GetValue(ContentTemplateProperty);
        }

19 View Source File : FrameworkVisibilityManager.cs
License : MIT License
Project Creator : ABTSoftware

public static FrameworkVisibility GetVisibleIn(DependencyObject element)
        {
            return (FrameworkVisibility)element.GetValue(VisibleInProperty);
        }

19 View Source File : CustomRotateChartModifier.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetIsRotationEnabled(DependencyObject obj)
        {
            return (bool)obj.GetValue(IsRotationEnabledProperty);
        }

19 View Source File : CheckedChangeZoomExtentsBehaviour.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetEnableZoomExtentsOnChecked(DependencyObject element)
        {
            return (bool) element.GetValue(EnableZoomExtentsOnCheckedProperty);
        }

19 View Source File : SeriesExtensions.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetDrawLine(DependencyObject element)
        {
            return (bool) element.GetValue(DrawLineProperty);
        }

19 View Source File : SeriesExtensions.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetDrawMarker(DependencyObject element)
        {
            return (bool) element.GetValue(DrawMarkerProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetDefaultXAxis(DependencyObject element)
        {
            return (AxisBase) element.GetValue(DefaultXAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetAlternativeXAxis(DependencyObject element)
        {
            return (AxisBase) element.GetValue(AlternativeXAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetUseAlternateXAxis(DependencyObject element)
        {
            return (bool) element.GetValue(UseAlternateXAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetDefaultYAxis(DependencyObject element)
        {
            return (AxisBase) element.GetValue(DefaultYAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetAlternativeYAxis(DependencyObject element)
        {
            return (AxisBase) element.GetValue(AlternativeYAxisProperty);
        }

19 View Source File : TextElementEx.cs
License : MIT License
Project Creator : ABTSoftware

public static Brush GetForeground(DependencyObject element)
        {
            return (Brush)element.GetValue(ForegroundProperty);
        }

19 View Source File : AxisGridlineBehaviour.cs
License : MIT License
Project Creator : ABTSoftware

public static SolidColorBrush GetGridStroke(DependencyObject element)
        {
            return (SolidColorBrush)element.GetValue(GridStrokeProperty);
        }

19 View Source File : SurfaceMeshSelectionModifier.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetIncludeSeries(DependencyObject obj)
        {
            return (bool)obj.GetValue(IncludeSeriesProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetDefaultXAxis(DependencyObject element)
        {
            return (AxisBase)element.GetValue(DefaultXAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetAlternativeXAxis(DependencyObject element)
        {
            return (AxisBase)element.GetValue(AlternativeXAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetUseAlternateXAxis(DependencyObject element)
        {
            return (bool)element.GetValue(UseAlternateXAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetDefaultYAxis(DependencyObject element)
        {
            return (AxisBase)element.GetValue(DefaultYAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static AxisBase GetAlternativeYAxis(DependencyObject element)
        {
            return (AxisBase)element.GetValue(AlternativeYAxisProperty);
        }

19 View Source File : SwitchAxisTypeBehavior.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetUseAlternateYAxis(DependencyObject element)
        {
            return (bool)element.GetValue(UseAlternateYAxisProperty);
        }

19 View Source File : YAxisSameZeroLine.xaml.cs
License : MIT License
Project Creator : ABTSoftware

public static string GetSyncZeroLineGroup(DependencyObject element)
        {
            return (string) element.GetValue(SyncZeroLineGroupProperty);
        }

19 View Source File : ZoomOnVisibilityBehaviour.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetZoomExtentsOnVisibilityChanged(DependencyObject element)
        {
            return (bool) element.GetValue(ZoomExtentsOnVisibilityChangedProperty);
        }

19 View Source File : LineSeriesSource.cs
License : MIT License
Project Creator : ABTSoftware

public static float GetStrokeThickness(DependencyObject element)
        {
            return (float) element.GetValue(StrokeThicknessProperty);
        }

19 View Source File : LineSeriesSource.cs
License : MIT License
Project Creator : ABTSoftware

public static bool GetAntiAliasing(DependencyObject element)
        {
            return (bool) element.GetValue(AntiAliasingProperty);
        }

19 View Source File : DataGridExtension.cs
License : MIT License
Project Creator : ABTSoftware

public static ObservableCollection<DataGridColumn> GetColumns(DependencyObject obj)
        {
            return (ObservableCollection<DataGridColumn>)obj.GetValue(ColumnsProperty);
        }

See More Examples