15,888,351 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Shai Vashdi (Top 23 by date)
Shai Vashdi
20-May-14 12:32pm
View
You most welcome, please mark the question as answered.
Shai Vashdi
19-May-14 8:49am
View
I still don't understand... please clarify.
Shai Vashdi
16-May-14 7:14am
View
Are you sure that the method UpdatePropertyGrid is being called? Please put a break point there to verify...
Shai Vashdi
16-May-14 4:54am
View
Hi Snprani,
Thank you. The example I've wrote is based on most of the code you wrote above. Clearly the problem is related to the code of the TreeView. Please share the code.
Shai Vashdi
15-May-14 14:14pm
View
I've showed you how to change the window location above. Just register to the Window State changed event, and then change the size and location
Shai Vashdi
15-May-14 9:54am
View
The last example that I've wrote above, is working?
Shai Vashdi
12-May-14 10:40am
View
P.S. It's more likely to assume that it's not working because of different Windows version/definitions, after all... SystemColors are the Windows defined colors.
Shai Vashdi
12-May-14 9:53am
View
Try on VS2010, if it's not working there maybe it's a different problem.
Shai Vashdi
12-May-14 3:36am
View
Hi Snprani,
I've checked some of your code and for me it works fine.
public class FieldEntityViewModel
{
public FieldEntityViewModel()
{
}
FieldEntity _fieldEntity = new FieldEntity();
[Category("Settings")]
[DisplayName("Field Name")]
[Description("Field Name")]
public string FieldName
{
get { return _fieldEntity.FieldName; }
set
{
_fieldEntity.FieldName = value;
}
}
[Category("Location & Size")]
[DisplayName("X Position")]
[Description("X Position of the rubberband region")]
public double X
{
get { return Math.Round(_fieldEntity.X); }
set
{
_fieldEntity.X = value;
}
}
[Category("Location & Size")]
[DisplayName("Y Position")]
[Description("Y Position of the rubberband region")]
public double Y
{
get { return Math.Round(_fieldEntity.Y); }
set
{
_fieldEntity.Y = value;
}
}
[Category("Location & Size")]
[DisplayName("Width")]
[Description("Width of rubberband rectangle area")]
public double Width
{
get { return Math.Round(_fieldEntity.Width); }
set
{
_fieldEntity.Width = value;
}
}
[Category("Location & Size")]
[DisplayName("Height")]
[Description("Height of rubberband rectangle area")]
public double Height
{
get { return Math.Round(_fieldEntity.Height); }
set
{
_fieldEntity.Height = value;
}
}
}
I can't understand, what is the problem?
Shai Vashdi
10-May-14 17:27pm
View
When you are using an automatic properties you need to use Property Definitions:
[Category("Information")]
[DisplayName("First Name")]
[Description("This property uses a TextBox as the default editor.")]
Otherwise, you would have to build a mechanism based on reflection which is more complicated...
Shai Vashdi
8-May-14 7:59am
View
Hi, in order to help you I still need a code sample.
Shai Vashdi
6-May-14 7:19am
View
Can you please clarify with a code example?
Shai Vashdi
3-May-14 9:31am
View
You can just easily write it in WPF and than host it in Win-Form.
Shai Vashdi
3-May-14 6:17am
View
Hi,
Just create a class (View-Model) that is the DataContext of the TabItem. Every time you need to create a TabItem give him the instance of the this View-Model class as the DataContext.
Shai Vashdi
3-May-14 5:48am
View
Thank you :)
Shai Vashdi
3-May-14 5:39am
View
Yes you are right, but every time that I give an answer that more of "giving directions" rather than "spoon feeding" I get Down-Voted...
Shai Vashdi
30-Apr-14 7:05am
View
Deleted
<pre lang="xml"><Style x:Key="{x:Type ProgressBar}"
TargetType="{x:Type ProgressBar}">
<setter property="Template">
<setter.value>
<controltemplate targettype="{x:Type ProgressBar}">
...
</Style></pre>
Shai Vashdi
29-Apr-14 2:54am
View
No, I don't have an example for that. But I remember I've found samples for that in the past. Just search in google "ProgressBar Control-Template".
Shai Vashdi
28-Apr-14 14:17pm
View
Yes, you can create a progress bar with "rectangular bars" using Control-Template.
Shai Vashdi
23-Apr-14 3:31am
View
Can you write down all of the code and not just a segment?
Shai Vashdi
21-Apr-14 10:12am
View
Thank you, Yes your are right! The brush is a solid brush & the slider value is double. I just wanted to show him how to easily convert these values.
Best Regards,
Shai
Shai Vashdi
18-Apr-14 15:22pm
View
WPF has a special structure for that called: LogicalTreeHelper.
http://msdn.microsoft.com/en-us/library/system.windows.logicaltreehelper.aspx
Shai Vashdi
17-Apr-14 11:13am
View
Reason for my vote of 5 \n Great article
Show More