nero_lux Posted October 13, 2009 at 01:54 PM Report Share #291512 Posted October 13, 2009 at 01:54 PM Boa Tarde, estou a tentar criar um UserControl da DataGrid e não consigo associar ao meu UserControl algumas propriedades tais como ItemsSource, Columns etc... Alguem podia-me dar alguma ajuda? Link to comment Share on other sites More sharing options...
fLaSh_PT Posted October 13, 2009 at 03:24 PM Report Share #291531 Posted October 13, 2009 at 03:24 PM Deves criar uma nova classe e herdar a classe DataGridView, depois estendes com teus métodos.. Algo tipo isto: public class DataGridViewExt : DataGridView { // colocas teus métodos e propriedades.. } Compr. Making the impossible possible and pwing the world on db at a time. Link to comment Share on other sites More sharing options...
nero_lux Posted October 13, 2009 at 04:04 PM Author Report Share #291537 Posted October 13, 2009 at 04:04 PM Boas, obrigado pela ajuda mas não sei se estamos a falar do mesmo. Eu não quero criar uma nova classe quero criar um UserControl em WPF. Link to comment Share on other sites More sharing options...
saramgsilva Posted October 21, 2009 at 09:54 PM Report Share #292810 Posted October 21, 2009 at 09:54 PM Boas, Queres criar um UserControl que contém uma dataGrid? Tens que adicionar no xaml o namespace onde está a dataGrid. podes explicar melhor o que queres fazer? bom trabalho tofas www.saramgsilva.com As minhas apps no WP7 Marketplace Youtube : Galinho - Windows Phone 7.5 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now