15,896,348 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 ChrisTopherus (Top 20 by date)
ChrisTopherus
8-Jan-13 15:19pm
View
sorry, that was the only serious sdk i found. maybe you can try something like:
http://stackoverflow.com/questions/8425593/c-sharp-httpwebrequest-post-login-to-facebook
ChrisTopherus
6-Jan-13 9:51am
View
Did you read:
http://www.codeproject.com/Articles/33661/Creating-a-Private-Installation-for-SQL-Compact
there might be a few hints for you...
ChrisTopherus
4-Jan-13 13:15pm
View
i can only give you a hint. in wcf, you can declare a request- and a responseformat. maybe there is something like that for your snippet...
ChrisTopherus
4-Jan-13 13:11pm
View
or myListBox.Visibility = Visibility.Hidden
in general: please try to post a snippet of code to questions like that!
ChrisTopherus
31-Dec-12 6:52am
View
Can you be a bit more precise? Maybe with a little source... The only thing i can say at the moment is: it's not allowed to divide anything by zero.
ChrisTopherus
28-Dec-12 18:35pm
View
first of all: THANK YOU FOR YOUR HELP :)
yes, my wcf call returns an address with the property address1, address2 etc.
i bind to the propertys of the viewmodel. i set the datacontext of my view with:
usercontrol.datacontext>
addressviewmodel/>
/usercontrol.datacontext>
when i call synchronus, then it works. i dont even have to call the raisepropertychange in the setter of the Address as discussed above.
ChrisTopherus
28-Dec-12 17:48pm
View
And exactly this is the confusing point. I thought the UI will update (adress1, address2, etc) when i raisepropertychanged on the whole Address but it wont...
ChrisTopherus
28-Dec-12 16:13pm
View
All servicefunctions/sql-statements etc. i use are "autogenerated" from a datacontract on the serverside. and the class Address has address1, address2, address3 to hold street and additional stuff... i know that this is not looking good^^
RaisePropertyChange(()=>address1) also works. The strange thing for me is, that the set of the propertys isn't called, when i update the whole object. with your info on your solution, i will call the raiseprop for all properties in the setter of the object:
#region Properties
public Address Address
{
get
{
return _address;
}
set
{
if(Address != value)
{
_address = value;
if(address1 != value.address1)
RaisePropertyChanged(() => address1);
if(address2 != value.address2)
RaisePropertyChanged(() => address2);
...
}
}
}
so i dont have it in method. do you think this is a good solution?
ChrisTopherus
28-Dec-12 15:16pm
View
Hi db7uk,
i will have a look at the NotifyPropertyWeaver. For the second part of your solution:
that is the part i do not understand. i raise the propertychangedevent in the setter of the property. please look at my edit on the question. maybe there is an other problem... ???
ChrisTopherus
28-Dec-12 12:03pm
View
Deleted
Hi,
i've done your described changes but alle the directorys still created after build...
ChrisTopherus
27-Dec-12 11:27am
View
Okay... as more as i read about mvvm as better it looks to me. my project will be wrapped in this pattern an then i will use the way you described. thank you!
ChrisTopherus
27-Dec-12 10:34am
View
And the declarative way is only possible over the mvvm pattern?
ChrisTopherus
27-Dec-12 10:14am
View
I'm reading this great article at the moment http://www.codeproject.com/Articles/100175/Model-View-ViewModel-MVVM-Explained and i think i will use this pattern.
But do you know, that there is no other way to bind via xaml for me? (so i can mark this question as answered...)
ChrisTopherus
27-Dec-12 9:36am
View
thank you for your help. PS: you can have a clean design without patterns like these ;)
ChrisTopherus
27-Dec-12 9:25am
View
this referes also to the mvvm model. might be that i have to change a lot... :(
ChrisTopherus
27-Dec-12 9:16am
View
Hi Oleksandr, thank you for this answer. I tried to fiddle your code into mine but i do not have the "RaisePropertyChanged" event.
And because of time, i am not able to learn the mvvm model at the moment... and i cant use the binding in the code, because i need to autogenerate a lot of the xaml-pages.
ChrisTopherus
24-Dec-12 7:18am
View
Yes. The mesage i always get when i try to delete the constraint is:
> ALTER TABLE [Customer]
DROP CONSTRAINT orderAddress_fk
The foreign key constraint does not exist. [ orderAddress_fk ]
But in the UI its still shown and i still can delete it via ui...???
ChrisTopherus
23-Dec-12 15:05pm
View
Hey Zoltán. It might be a litlle more confusing than yout thought. I can delete the foreign key via the UI. There must be something wrong with my delete query... again: thanks for your help!!!
ChrisTopherus
23-Dec-12 8:36am
View
okay there is. thank you for your reply. but my problem still exists. i have to delete the foreign key via query...
ChrisTopherus
22-Dec-12 18:22pm
View
I am using SQLSM Express 2008 and there is no option in the propertys window, allowing to define any constrains exapt of the primary key. But i know that the pk exists. there is an FS mark in the UI description of the columns and i cant delete it.
Show More