Skip to content
Snippets Groups Projects
Commit c35fb7fa authored by developer3's avatar developer3
Browse files

Added Clear Screen button to clear LOG text box

parent 450633c9
No related merge requests found
...@@ -27,5 +27,6 @@ ...@@ -27,5 +27,6 @@
<TextBox x:Name="txtOut" TextWrapping="Wrap" Text="" Margin="10,197,10,10" IsReadOnly="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollMode="Enabled" Background="{x:Null}" IsTapEnabled="False" IsRightTapEnabled="False" IsHoldingEnabled="False" IsDoubleTapEnabled="False" ManipulationMode="None"/> <TextBox x:Name="txtOut" TextWrapping="Wrap" Text="" Margin="10,197,10,10" IsReadOnly="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollMode="Enabled" Background="{x:Null}" IsTapEnabled="False" IsRightTapEnabled="False" IsHoldingEnabled="False" IsDoubleTapEnabled="False" ManipulationMode="None"/>
<Button x:Name="bRdCardID" Content="Get Card ID" HorizontalAlignment="Left" Margin="180,120,0,0" VerticalAlignment="Top" Width="140" Click="bRdCardID_Click"/> <Button x:Name="bRdCardID" Content="Get Card ID" HorizontalAlignment="Left" Margin="180,120,0,0" VerticalAlignment="Top" Width="140" Click="bRdCardID_Click"/>
<Button x:Name="bClearLog" Content="Clear Screen" HorizontalAlignment="Left" Margin="180,160,0,0" VerticalAlignment="Top" Width="140" Click="bClearLog_Click"/>
</Grid> </Grid>
</Page> </Page>
...@@ -118,5 +118,10 @@ namespace Test_uFCoder_lib ...@@ -118,5 +118,10 @@ namespace Test_uFCoder_lib
prnl(s); prnl(s);
} }
} }
private void bClearLog_Click(object sender, RoutedEventArgs e)
{
txtOut.Text = String.Empty;
}
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment