public WhiteComboBoxPeer(ComboBox owner)
     : base(owner)
 {
     whitePeer = WhitePeer.CreateForValueProvider(this, owner, () => owner.SelectedItem == null ? string.Empty : owner.SelectedItem.ToString(),
                                                  delegate(string value)
                                                      {
                                                          foreach (ComboBoxItem item in owner.Items)
                                                          {
                                                              if (Equals(item.Name, value))
                                                                  item.IsSelected = true;
                                                          }
                                                      });
 }
 public WhiteDocumentPageViewPeer(DocumentPageView owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #3
0
 public WhiteButtonPeer(Button button)
     : base(button)
 {
     whitePeer = WhitePeer.Create(this, button);
 }
 public WhiteFlowDocumentPageViewerPeer(FlowDocumentPageViewer owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #5
0
 public WhiteCheckBoxPeer(CheckBox owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #6
0
 public WhiteTabItemPeer(TabItem owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteHyperlinkPeer(Hyperlink owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteTreeViewPeer(TreeView owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteListBoxPeer(ListBox owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #10
0
 public WhiteSliderPeer(Slider owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #11
0
 public WhiteScrollBarPeer(ScrollBar owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteInkCanvasPeer(InkCanvas owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteViewport3DPeer(Viewport3D owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public void SetUp()
 {
     commandSerializer = new CustomCommandSerializer();
     var testAutomationPeer = new TestAutomationPeer();
     whitePeer = WhitePeer.CreateForValueProvider(testAutomationPeer, null, () => value, s => value = s);
 }
Пример #15
0
 public WhiteThumbPeer(Thumb owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #16
0
 public WhiteListViewPeer(ListView owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteStatusBarItemPeer(StatusBarItem owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #18
0
 public WhiteMediaElementPeer(MediaElement owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #19
0
 public WhiteProgressBarPeer(ProgressBar owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteExpanderPeer(Expander owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteToggleButtonPeer(ToggleButton owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #22
0
 public WhiteMenuPeer(Menu owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #23
0
 public WhiteTextBoxPeer(TextBox textBox)
     : base(textBox)
 {
     whitePeer = WhitePeer.CreateForValueProvider(this, textBox, () => textBox.Text, value => textBox.Text = value);
 }
Пример #24
0
 public WhiteInkPresenterPeer(InkPresenter owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #25
0
 public WhiteFramePeer(Frame owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteRepeatButtonPeer(RepeatButton owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #27
0
 public WhiteToolTipPeer(ToolTip owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 public WhiteSeparatorPeer(Separator owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #29
0
 public WhiteTableCellPeer(TableCell owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
Пример #30
0
 public WhiteContextMenuPeer(ContextMenu owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }