MixtureTransferRule |
MixtureTransferRule works with all mixture in a lab. If the Source mixture have any amount it will be transffered to the Destination mixture at TransferSpeed liter per second
< Rules > <MixtureTransferRule Source="{Binding CurrentElement, ElementId=Placeholder_Funnel, Converter=DefaultMixture}" Destination="{Binding CurrentElement, ElementId=Burrete_Placeholder, Converter=DefaultMixture}" TransferSpeed="0.01" /> </Rules>
Mixture transfer rule at the above will transfer 0.01 litter per second of mixture from the current element of Funnel to the current element of Burrete
< Rules > <MixtureTransferRule Source="{Binding CurrentElement, ElementId=Placeholder_Funnel, Converter=DefaultMixture}" Destination="{Binding CurrentElement, ElementId=Burrete_Placeholder, Converter=DefaultMixture}" TransferSpeed=""{Binding Source={FieldValue TransferSpeedControl, Scope={Binding ElementId=TransferController}}, Converter=ToDouble}"" /> </Rules>
Mixture transfer rule at the above allows TransferSpeed to bind to a field value