Q:

Make click on last element

How to make click on last element? 
Explanation : user click on button and move mouse in mode of click to another button. So click should be executed for last button, not for first one.
In WPF I have tried all possible events to get this (MouseUp seems to be right choice for this, but this doesn't do what I expect).
How to resolve this problem? 

UPD: 2 Buttons in xaml:
<Button Grid.Column="1" Grid.Row="3" Click="ButtonThigh_OnClick" >
                        <Grid Width="150" Height="75">
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition />
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="{Binding Path=TrackingThighCircumference, Mode=OneWay}"/>
                            <TextBlock MouseRightButtonDown="Thigh_EditStarted" Height="65" Grid.RowSpan="2">
                                <TextBox Name="sizeThigh" Background="Transparent" Height="40" IsEnabled="False" ContextMenu="{x:Null}" ContextMenuService.IsEnabled="false" DataObject.Pasting="TextBox_Pasting" MaxLength="6" PreviewTextInput="TextBox_PreviewTextInput" LostFocus="TextBox_LostFocus" KeyUp="TextBox_KeyUp" Tag="ThighCircumferenceUI" Text="{Binding Path=ThighCircumferenceUI, Mode=TwoWay}"></TextBox>
                                <LineBreak/>
                                <TextBlock Name="ThighLb" Text="{x:Static strings:Resource.Thigh}"/><Span>&#160;(</Span><Span><TextBlock Text="{Binding ElementName=MeasurenentText, Path=Text}"/></Span><Span>)</Span>
                            </TextBlock>
                        </Grid>
                    </Button>
                    <Button Grid.Column="0" Grid.Row="4" Click="ButtonWaist_OnClick" >
                        <Grid Width="150" Height="75">
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition />
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="{Binding Path=TrackingJacketWaistCircumference, Mode=OneWay}"/>
                            <TextBlock Grid.Row="1" MouseRightButtonDown="Waist_EditStarted">
                                <TextBox Name="sizeWaist" Background="Transparent" Height="40" IsEnabled="False" ContextMenu="{x:Null}" ContextMenuService.IsEnabled="false" DataObject.Pasting="TextBox_Pasting" MaxLength="6" PreviewTextInput="TextBox_PreviewTextInput" LostFocus="TextBox_LostFocus" KeyUp="TextBox_KeyUp" Tag="JacketWaistCircumferenceUI" Text="{Binding Path=JacketWaistCircumferenceUI, Mode=TwoWay}"></TextBox>
                                <LineBreak/>
                                <TextBlock Name="WaistLb" Text="{x:Static strings:Resource.Waist}"/><Span>&#160;(</Span><Span><TextBlock Text="{Binding ElementName=MeasurenentText, Path=Text}"/></Span><Span>)</Span>
                            </TextBlock>
                        </Grid>
                    </Button>

Button Clicks : 
private void ButtonThigh_OnClick(object sender, RoutedEventArgs e)
    {
        _resultViewModel.SelectMeasurement(si => si.ThighCircumference, vm => vm.ThighImg);
    }

    private void ButtonWaist_OnClick(object sender, RoutedEventArgs e)
    {
        _resultViewModel.SelectMeasurement(si => si.JacketWaistCircumference, vm => vm.WaistImg);
    }

A:

You can try it on buttons:
    private void button1_Click(object sender, RoutedEventArgs e)
    {
        MessageBox.Show("1");
    }
    private void button2_Click(object sender, RoutedEventArgs e)
    {
        MessageBox.Show("2");
    }

    private void Button1_OnPreviewMouseUp(object sender, MouseButtonEventArgs e)
    {
        button1_Click(sender,e);
    }
    private void Button2_OnPreviewMouseUp(object sender, MouseButtonEventArgs e)
    {
        button2_Click(sender,e);
    }

    private void Button1_OnPreviewMouseDown(object sender, MouseButtonEventArgs e)
    {
        e.Handled = true;
    }
    private void Button2_OnPreviewMouseDown(object sender, MouseButtonEventArgs e)
    {
        e.Handled = true;
    }

After that, your PreviewMouseUp will work as you expect:

