Adding Custom UI to a Canvas [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
So I want to create a UIElement which will act like a graph. I could add specific points to the graph and it will be rendered on the screen. For ease I want to be able to just add it to my canvese children like so:
this.InkCanvas.Children.Add(this.MainGraph);
So my question is can I somehow do this and if yes then how.
Help is much appreciated.

Why not just use the Chart control from WinRT XAML Toolkit?
If you want to do it yourself, you'll need to create a custom control. There's a nice tutorial on Tim Heuer's blog to get you started. You might also want to take a look at the sources of the Chart control from WinRT XAML Toolkit.

Related

how can I create designed properties [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
how can I create designed properties in user control like DataBindings property of TextBox control
Can someone help me with a link or video tutorial
You can try out http://msdn.microsoft.com/en-us/library/a19191fh.aspx wich will help you in creating designtime properties. Look especially at DesignerSerializationVisibilityAttribute.

Displaying data in list for windows phone [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have two variables 'name' and 'amount' for about 100 items.
FYI item is a class and name and amount are its variables.
Now i have to display all my items as a list, with name in the right and amount in left of each row in my windows phone app.
what would be the right way to do it??
Create a new app that uses the "Databound Application" template and you'll get something very close to your needs that should be easy to modify for your exact requirements and provide a useful learning source.

Is it possible to change the background image of a button when you click it? C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is it possible to change the background image of a button when you click it? I'm using C# on Windows Forms Application.
Yes it is possible. Just set the BackgroundImage property of the button on it's click event.
Try this,
button1.BackgroundImage = Image.FromFile("ImageFilepath");
button1.BackgroundImageLayout = ImageLayout.Stretch;
background-size property of CSS3 should work for you i.e.,
background-size:cover or background-size:100%

How to Add Resize Handle in C# or VB.Net [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I have the resize handles (the little squares or circles on the corners) during run time in my controls? Is there a component that allow me to have it? Or someone has a piece of code to do it?
If you mean windows form applications, Try these links:
http://www.codeproject.com/Articles/17245/Runtime-Control-Resizer
http://www.codeproject.com/Articles/24096/Drawing-Resizable-Controls-at-Runtime
http://www.codeproject.com/Articles/13184/Runtime-resizable-controls
You mean something else, Comment this answer to talk about.
Hope to be helpful

How to make a form show up like on Paint.NET [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am trying to figure out how to make a form show up like is on the Paint.NET Program, like the History, Colors, Etc
Like where they fade out over where the painting is.
Is there any way that this can be done?
Any help would be appreciated.
both Winforms Form and WPF / Silverlight Window have an Opacity property. Set that to something below 1.

Categories

Resources