Re: Do you clean your Xaml?
I ask because I wanted to know if you found it helped you learn xaml better?
Re: Do you clean your Xaml?
I dont get ya, do you mean do we go through and delete what the designer has put in there?
Re: Do you clean your Xaml?
Yeah if its not needed, like names and that also, do you format your xaml to make it more readable?
Re: Do you clean your Xaml?
One thing I dont like about the XAML editor is that it does not tidy itself up like the VB editor. I mean it doesnt insert tabs in the right places automatically when you delete something to make it more readable like it would in VB.NET code. So yes, I do spend a fair amount of time tidying up my XAML to make it more readable... but then I delete some of it and have to spend ages tidying it up again so get bored of that quite quickly and it becomes a mess again :D
I dont find that the designer sticks much unnecessary stuff in there to be honest so I rarely actually remove something the designer has inserted as that usually brakes something :P
Re: Do you clean your Xaml?
I use the split view a lot.... when I'm messing with the properties, I tend to jsut do it right in the XAML rather than the properties window... So far I haven't found anything unnecessary, unlike what I get when I build a webform in VS. So far, I haven't experienced a problem with the indents eitehr, but then I've only scratched the surface.
-tg
Re: Do you clean your Xaml?
I like to work with the Xaml too but felt that maybe I was overdoing it simply because I tend to hook events and set properties in Xaml. I just find it a good idea to clean as I go reagarding the Xaml of a window.
Re: Do you clean your Xaml?
Yeah I use the split view all the time, and I do try to do as much in XAML as I can as thats the whole idea of it really isnt it, to keep all the UI stuff in there. However at the moment as I am not particularly adept I do have to admit to using the MouseEnter and MouseLeave events in my code-behind file instead of XAML triggers for some controls :P You just get that little extra bit of control as you can do things like check to see if an animation is already running and check other variable values etc
Re: Do you clean your Xaml?
I agree, I also would like to stress the idea of the code behind is still to enhance the UI. I tend to pass the logic of to other objects outside of the window declaration, that way I don't feel as guilty writing code behind ha ha!
Re: Do you clean your Xaml?
I try to do everything in the XAML, but I'm stilll very new to WPF, so sometimes I have to find other ways to find out how I can do what I want to do. But clean up the XAML? Most certainly....