Ejemplo n.º 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     myController = this.Resources["myController"] as ImageStackAlignatorController;
     System.ComponentModel.DependencyPropertyDescriptor pixelChanged = System.ComponentModel.DependencyPropertyDescriptor.FromProperty
                                                                           (ImagePresenterDX.PixelCoordinateProperty, typeof(ImagePresenterDX));
     pixelChanged.AddValueChanged(this.imagePresenter, new EventHandler(this.PixelChangedHandler));
 }
Ejemplo n.º 2
0
        public Localize()
        {
            System.ComponentModel.DependencyPropertyDescriptor pdIsAvailable = System.ComponentModel.DependencyPropertyDescriptor.FromProperty
                                                                                   (LanguageProperty, typeof(FrameworkElement));

            pdIsAvailable.AddValueChanged(this, async(o, a) =>
            {
                if (LocalizationService == null)
                {
                    return;
                }
                if (Id == null)
                {
                    return;
                }
                await UpdateAsync(Language, LocalizationService, Id, StringFormat);
            });
        }
Ejemplo n.º 3
0
 public void SetupMarginsManager(FlowDocument document, Thickness margin)
 {
     docpadding = margin;
     System.ComponentModel.DependencyPropertyDescriptor dpd = System.ComponentModel.DependencyPropertyDescriptor.FromProperty(FlowDocument.PagePaddingProperty, typeof(FlowDocument));
     dpd.AddValueChanged(document, new EventHandler(SetPadding));
 }