Пример #1
0
            private static void OnShapeGeometryChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
            {
                DataGeometry data     = (DataGeometry)d;
                Geometry     geometry = (Geometry)e.NewValue;

                data.Geometry = geometry;
            }
Пример #2
0
            private static void OnSymbolChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
            {
                DataGeometry data   = (DataGeometry)d;
                Symbol       symbol = (Symbol)e.NewValue;

                data.Symbol = symbol;
            }
Пример #3
0
        protected override GraphicsDataSource.DataObject CreateDataPoint(object dataContext)
        {
            DataGeometry data = new DataGeometry();

            data.Graphic.Attributes["DataContext"] = dataContext;
            var Dynamic = dataContext as Shape;

            data.Graphic.Symbol = Dynamic.Symbol;
            return(data);
        }