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
19
Source : VirtualizingWrapPanel .cs
with MIT License
from 944095635
with MIT License
from 944095635
private static int GetVirtualItemIndex(DependencyObject obj)
{
return (int)obj.GetValue(VirtualItemIndexProperty);
}
19
Source : StockChartHelper.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetShowTooltipLabel(DependencyObject element)
{
return (bool) element.GetValue(ShowTooltipLabelProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetUseAlternateYAxis(DependencyObject element)
{
return (bool) element.GetValue(UseAlternateYAxisProperty);
}
19
Source : ScrollViewerExtensions.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetCanContentScroll(DependencyObject element)
{
return (bool) element.GetValue(CanContentScrollProperty);
}
19
Source : TextBoxHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static object GereplacedermarkContent(DependencyObject element)
{
return (object) element.GetValue(WatermarkContentProperty);
}
19
Source : TextBoxHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static DataTemplate GereplacedermarkContentTemplate(DependencyObject element)
{
return (DataTemplate) element.GetValue(WatermarkContentTemplateProperty);
}
19
Source : TextBoxHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetIsShowingWatermark(DependencyObject element)
{
return (bool) element.GetValue(IsShowingWatermarkProperty);
}
19
Source : TextBoxHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetLoseFocusOnEscape(DependencyObject element)
{
return (bool) element.GetValue(LoseFocusOnEscapeProperty);
}
19
Source : TextBoxHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetClearButton(DependencyObject element)
{
return (bool) element.GetValue(ClearButtonProperty);
}
19
Source : TextBoxHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static CornerRadius GetCornerRadius(DependencyObject element)
{
return (CornerRadius)element.GetValue(CornerRadiusProperty);
}
19
Source : LineSeriesSource.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static IEnumerable<IDataSeries> GetDataSeries(UIElement element)
{
return (IEnumerable<IDataSeries>)element.GetValue(DataSeriesProperty);
}
19
Source : Navigator.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static Guid GetStartPage(DependencyObject element)
{
return (Guid)element.GetValue(StartPageProperty);
}
19
Source : Navigator.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static Guid GetExampleStartPage(DependencyObject element)
{
return (Guid)element.GetValue(ExampleStartPageProperty);
}
19
Source : EndlessItemsControl.cs
with MIT License
from ABTSoftware
with MIT License
from 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
Source : EndlessItemsControl.cs
with MIT License
from ABTSoftware
with MIT License
from 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
Source : CustomListBoxItem.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
var isGroup = (bool)this.GetValue(IsGroupProperty);
UpdateGroupState(isGroup);
}
19
Source : CollapsableGridSplitter.cs
with MIT License
from ABTSoftware
with MIT License
from 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
Source : CollapsableGridSplitter.cs
with MIT License
from ABTSoftware
with MIT License
from 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
Source : ExampleHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static ICommand GetLoadedEventCommand(DependencyObject element)
{
return (ICommand) element.GetValue(LoadedEventCommandProperty);
}
19
Source : ExampleHelpers.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static ICommand GetUnloadedEventCommand(DependencyObject element)
{
return (ICommand) element.GetValue(UnloadedEventCommandProperty);
}
19
Source : Clip.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetToBounds(DependencyObject depObj)
{
return (bool)depObj.GetValue(ToBoundsProperty);
}
19
Source : CodeHighlighter.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static SourceLanguageType GetSourceLanguage(DependencyObject o)
{
return (SourceLanguageType)o.GetValue(SourceCodeProperty);
}
19
Source : CodeHighlighter.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static string GetSourceCode(DependencyObject o)
{
return (string)o.GetValue(SourceCodeProperty);
}
19
Source : RichTextBoxExtension.cs
with MIT License
from ABTSoftware
with MIT License
from 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
Source : RichTextBoxHelper.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static string GetText(DependencyObject o)
{
return (string) o.GetValue(TextProperty);
}
19
Source : ContentPresenterHelper.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static string GetContentTemplate(DependencyObject element)
{
return (string) element.GetValue(ContentTemplateProperty);
}
19
Source : FrameworkVisibilityManager.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static FrameworkVisibility GetVisibleIn(DependencyObject element)
{
return (FrameworkVisibility)element.GetValue(VisibleInProperty);
}
19
Source : CustomRotateChartModifier.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetIsRotationEnabled(DependencyObject obj)
{
return (bool)obj.GetValue(IsRotationEnabledProperty);
}
19
Source : CheckedChangeZoomExtentsBehaviour.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetEnableZoomExtentsOnChecked(DependencyObject element)
{
return (bool) element.GetValue(EnableZoomExtentsOnCheckedProperty);
}
19
Source : SeriesExtensions.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetDrawLine(DependencyObject element)
{
return (bool) element.GetValue(DrawLineProperty);
}
19
Source : SeriesExtensions.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetDrawMarker(DependencyObject element)
{
return (bool) element.GetValue(DrawMarkerProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetDefaultXAxis(DependencyObject element)
{
return (AxisBase) element.GetValue(DefaultXAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetAlternativeXAxis(DependencyObject element)
{
return (AxisBase) element.GetValue(AlternativeXAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetUseAlternateXAxis(DependencyObject element)
{
return (bool) element.GetValue(UseAlternateXAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetDefaultYAxis(DependencyObject element)
{
return (AxisBase) element.GetValue(DefaultYAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetAlternativeYAxis(DependencyObject element)
{
return (AxisBase) element.GetValue(AlternativeYAxisProperty);
}
19
Source : TextElementEx.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static Brush GetForeground(DependencyObject element)
{
return (Brush)element.GetValue(ForegroundProperty);
}
19
Source : AxisGridlineBehaviour.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static SolidColorBrush GetGridStroke(DependencyObject element)
{
return (SolidColorBrush)element.GetValue(GridStrokeProperty);
}
19
Source : SurfaceMeshSelectionModifier.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetIncludeSeries(DependencyObject obj)
{
return (bool)obj.GetValue(IncludeSeriesProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetDefaultXAxis(DependencyObject element)
{
return (AxisBase)element.GetValue(DefaultXAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetAlternativeXAxis(DependencyObject element)
{
return (AxisBase)element.GetValue(AlternativeXAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetUseAlternateXAxis(DependencyObject element)
{
return (bool)element.GetValue(UseAlternateXAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetDefaultYAxis(DependencyObject element)
{
return (AxisBase)element.GetValue(DefaultYAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static AxisBase GetAlternativeYAxis(DependencyObject element)
{
return (AxisBase)element.GetValue(AlternativeYAxisProperty);
}
19
Source : SwitchAxisTypeBehavior.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetUseAlternateYAxis(DependencyObject element)
{
return (bool)element.GetValue(UseAlternateYAxisProperty);
}
19
Source : YAxisSameZeroLine.xaml.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static string GetSyncZeroLineGroup(DependencyObject element)
{
return (string) element.GetValue(SyncZeroLineGroupProperty);
}
19
Source : ZoomOnVisibilityBehaviour.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetZoomExtentsOnVisibilityChanged(DependencyObject element)
{
return (bool) element.GetValue(ZoomExtentsOnVisibilityChangedProperty);
}
19
Source : LineSeriesSource.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static float GetStrokeThickness(DependencyObject element)
{
return (float) element.GetValue(StrokeThicknessProperty);
}
19
Source : LineSeriesSource.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static bool GetAntiAliasing(DependencyObject element)
{
return (bool) element.GetValue(AntiAliasingProperty);
}
19
Source : DataGridExtension.cs
with MIT License
from ABTSoftware
with MIT License
from ABTSoftware
public static ObservableCollection<DataGridColumn> GetColumns(DependencyObject obj)
{
return (ObservableCollection<DataGridColumn>)obj.GetValue(ColumnsProperty);
}
See More Examples