Click here to Skip to main content
15,900,706 members
Home / Discussions / C#
   

C#

 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Robert Oujesky18-Apr-18 6:25
Robert Oujesky18-Apr-18 6:25 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 6:29
mveOriginalGriff18-Apr-18 6:29 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Robert Oujesky18-Apr-18 6:41
Robert Oujesky18-Apr-18 6:41 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Eddy Vluggen18-Apr-18 7:10
professionalEddy Vluggen18-Apr-18 7:10 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 8:02
mveOriginalGriff18-Apr-18 8:02 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Robert Oujesky18-Apr-18 8:49
Robert Oujesky18-Apr-18 8:49 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 9:15
mveOriginalGriff18-Apr-18 9:15 
QuestionHow can I add the distance value between the line(from point A to point B) in C#? Pin
Member 1378306217-Apr-18 22:27
Member 1378306217-Apr-18 22:27 
I have an Ink Canvas control on my application. Is it possible that whenever i draw a line, there's a value that appears between on that line by the use of C#?

Here is my code, XAML:
    <DockPanel>
        <StackPanel DockPanel.Dock="Bottom">
            <Button x:Name="ClearButton" Content="Clear" Click="ClearButton_Click"/>
            <Button x:Name="SaveButton" Content="Save" Click="SaveButton_Click"/>
        </StackPanel>
        <InkCanvas x:Name="DrawingPane" Cursor="Cross" Background="White"/>
    </DockPanel>


And here is my C# code:

    namespace WpfApp1
    {
        public partial class MainWindow : Window
        {
            public MainWindow()
            {
                InitializeComponent();
                this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                
            }
            private void ClearButton_Click(object sender, RoutedEventArgs e)
            {
                DrawingPane.Strokes.Clear();
            }
         }
     }

I hope you can help me out for this. Thank you.
AnswerRe: How can I add the distance value between the line(from point A to point B) in C#? Pin
OriginalGriff17-Apr-18 22:35
mveOriginalGriff17-Apr-18 22:35 
AnswerRe: How can I add the distance value between the line(from point A to point B) in C#? Pin
V.17-Apr-18 23:56
professionalV.17-Apr-18 23:56 
AnswerRe: How can I add the distance value between the line(from point A to point B) in C#? Pin
Gerry Schmitz18-Apr-18 6:03
mveGerry Schmitz18-Apr-18 6:03 
Questionhow to deploy your software (set up) Pin
ago248617-Apr-18 6:03
ago248617-Apr-18 6:03 
AnswerRe: how to deploy your software (set up) Pin
Richard MacCutchan17-Apr-18 6:11
mveRichard MacCutchan17-Apr-18 6:11 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 6:20
ago248617-Apr-18 6:20 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 6:38
ago248617-Apr-18 6:38 
GeneralRe: how to deploy your software (set up) Pin
Richard MacCutchan17-Apr-18 6:41
mveRichard MacCutchan17-Apr-18 6:41 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 6:52
ago248617-Apr-18 6:52 
GeneralRe: how to deploy your software (set up) Pin
Richard MacCutchan17-Apr-18 8:45
mveRichard MacCutchan17-Apr-18 8:45 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 22:35
ago248617-Apr-18 22:35 
GeneralRe: how to deploy your software (set up) Pin
Richard MacCutchan17-Apr-18 22:38
mveRichard MacCutchan17-Apr-18 22:38 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 22:57
ago248617-Apr-18 22:57 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 23:48
ago248617-Apr-18 23:48 
GeneralRe: how to deploy your software (set up) Pin
Richard MacCutchan17-Apr-18 23:56
mveRichard MacCutchan17-Apr-18 23:56 
GeneralRe: how to deploy your software (set up) Pin
ago248618-Apr-18 0:00
ago248618-Apr-18 0:00 
GeneralRe: how to deploy your software (set up) Pin
ago248618-Apr-18 0:01
ago248618-Apr-18 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.