# ReloadCodeBehind

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/reload_events/struct-reloadcodebehind/

**struct** · [`ferroui-markup-xaml`](/docs/0.5.0/api/ferroui-markup-xaml/) · v0.5.0

```rust
struct ReloadCodeBehind
```

The preserved instance used for code-behind method resolution. It is separate
from the detached population target; neither constructors nor live setters run.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/reload_events.rs#L182)

## Members

- [`new`](#function-new)
- [`root_for`](#function-root_for)
- [`services`](#function-services)
- [`prepare`](#function-prepare)

<a id="function-new"></a>

### new

```rust
fn new(root: &Ref<FerroObject>, candidate: &Ref<FerroObject>) -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/reload_events.rs#L188)

<a id="function-root_for"></a>

### root_for

```rust
fn root_for(self: &Self, object: &Ref<FerroObject>) -> Option<Ref<FerroObject>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/reload_events.rs#L195)

<a id="function-services"></a>

### services

```rust
fn services(self: &Rc<Self>, fallback: Rc<dyn IServiceProvider>) -> Rc<dyn IServiceProvider>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/reload_events.rs#L208)

<a id="function-prepare"></a>

### prepare

```rust
fn prepare(self: &Rc<Self>, old: Rc<EventGeneration>) -> Result<HandlerChange, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/reload_events.rs#L217)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
