« first day (17 days earlier)      last day (4932 days later) » 

9:00 PM
how can content be null by default it has already a content
 
that's what I'm trying to read through your source and figure out
you should have something in the tabcontrol already
 
do you mind if isend to you the solution
so u cud see it ur self? :)
might be helpful if u can see the output and how it runs
 
I'll give it a try
my email is my nick here at gmail
@Shogun this is where I toss my unhandled exceptions (meaning, I'll catch 'em so I can deal with 'em later ... yay pokemon!) dotnetpad.net/ViewPaste/SquyQULDjEqbyQT5oE4V3w#c0,c5,c7,c13,
 
@drachenstern what are you telling me
besides gotta catch em all
 
sent, please check ur email. :)
 
9:08 PM
@Shogun oh I was showing you how I handled my "if this file doesn't exist"
that's my "errhandler" class in the first incarnation
the second is a little more bristling
but it's tied to the db and not to the filesystem, so I've still gotta finish it
because apparently with newer versions of windows you can't just write to the systemlog :(
 
oh ok thanks
man we just had this really weird jQuery bug
 
do share
 
i could not reproduce it, but our QA could reproduce it on TWO diff machines
then it went away
 
caching
 
i doubt it
nothing has changed at all...
 
9:10 PM
received ir drach?
 
@lnluis not yet
 
drachenste@gmail.com?
 
rn
you're missing an rn
 
isn't that weird
 
click on my picture
@Shogun indeed it is
and it resolved itself?
 
9:12 PM
no explaination at all
 
I still maintain it was a bad cached something
 
on two diff machines, yeah
 
there
 
but wasn't happening on FF
at the time that it was happening on the two IEs on diff machines..
so creepy
 
true
 
9:12 PM
i could not replicate on my win7 or xp test machines..
and he had it going on two isolated boxes, and then suddenly it stopped
 
hence my supposition
 
there is ALWAYS a reason for everything in computers
 
if you can reproduce it in the future, press ctrl-f5 twice and see what happens
 
have u received it drach
 
yes @lnluis
 
9:13 PM
but why would it be cached like that
that shouldn't happen ever
 
no, a bad cache
need to recache
 
just maybe a hiccup in the line?
screwed up the final page jQuery code?
 
i have a button there thats where i want to navigate just for testing purpose
 
so then the cache was from the ISP
 
9:14 PM
no
just a hiccup
 
2 diff machines though
 
why would it cache on one and the other the same way
 
I get it from time to time and people want to get mad at me
or I have it happen with CSS stylesheets
 
<3 technology
 
9:15 PM
and so when they call me over to reproduce and see the test case I reach over and hit <ctrl><f5> and walk away and they just look at me dumbfounded
I'm like "server client glitch"
 
huh
i wish my QA guy was not 4 hours away so i could do that
 
lol
 
how was it drach
 
so my brother said that at his work (university) where he is the lead mac tech, they are requiring suddenly that he has a office 2010 certification, however they said he cannot study on the clock, and if he fails it the first time he has to pay for subsequent attempts...
tell me that is not wrong, he even went to HR and they said sorry it's legal
REQUIRING to get something for WORK but then you can't work on it unless you are AT HOME... wow...
 
9:18 PM
if they want to mandate that he gets a certification, then they should provide time for him to study on the job
I would think
 
exactly what I said
but apparently it's legal so... shafted
people suck man
 
:(
 
anyways, I'm out of here, see ya guys
thanks for all your help drach
 
cya
drach? how was it
 
working @lnluis
@lnluis you're replacing test1 with test aren't you?
 
9:27 PM
putting the control test to test1
since test1 contains the frame
 
you left out part of your code when you described it
public partial class MainPageRightMainFrame : Page to void button1_Click to page.Content = new test();
 
well was trying to describe it
 
no wonders you can't get test1 back out of the page.Content ...
 
so how do i do it
 
I don't even see how you're navigating right now
but to the point, hang on
 
9:30 PM
when user click a button shud go to the next page
 
you can't do what you want
 
basically if its on frame control there shud be 2 arrows visible when u start navigating
 
you're destroying stuff that you don't think you're destroying
I don't think you know what's happening with your own code
 
yea i guess so
im confused
 
because when you click on "vendor" for instance, you're blowing the frame away
it's gone
by the time I get to test the frame1 in test1 doesn't even exist anymore
 
9:31 PM
no its inside the frame
 
I'm not guessing, I've got your whole codeblock
I'll repeat
I'm ... not ... guessing
I can read sourcecode
 
   this.frame1.Content = new MainPageRightMainFrame();
 
MainPageRightMainFrame -> void button1_Click -> TabItem page = MW.tabControl.SelectedItem as TabItem; -> page.Content = new test();
 
hmm
 
right there, the frame1 is gone
you just blew it out of the water
 
9:33 PM
test = frame1
check test.xaml
thats the frame
 
I did
but you're not listening
you've gone and replaced it before you think you have, or rather, you don't think you have
 
i see
 
you're replacing stuff at the tabcontent level, you need to be replacing it two steps lower
 
how will i do it? ;-s
 
you need to insert another container object
 
9:34 PM
meaning..?
 
something that knows how to handle replacing the frame content and not the tab content
 
so i should not put tab content on mainwindow
but rather insert another container object?
 
or in other words, everytime you get to TabItem page = MW.tabControl.SelectedItem as TabItem you need to go one step further
you need to get the frame under that tabItem
I would put a container in each TabItem that only had a frame in it, and then I would find the MW.tabControl.SelectedItem.Container and have the Container navigate to each new form
 
im sorry if i dont easily absorb what ur saying
its been like 16 hours awake trying to figure out lol 5:37 am here.
 
lol, so goto bed and try again tomorrow
my point is you need to consider where test1 exists and what it's content should be
 
9:38 PM
;-s
 
step through it in a debugger
examine mainwindow in a debugger
 
dont know how to use a debugger
 
oh then you're going to have issues
 
lol
im just a student
trying to learn WPF.
 
well, I can tell you exactly what the problem is, but I think you've gotten in too deep and you need to start a rewrite ... especially if you're trying to learn it. because you're replacing stuff that you don't even understand that you're replacing it
 
9:41 PM
what part do i have to rewrite?
ALL?
 
lol, not quite, but anywhere that deals with that frame and the navigation
have you written out on paper exactly how the frame works and when things should be replaced therein?
I know that we don't like to write on paper when we have the computer, and it's easier to just start writing code, but in my office I still have a whiteboard, a stack of pens, and some pads of paper
 
I would put a container in each TabItem that only had a frame in it, and then I would find the MW.tabControl.SelectedItem.Container and have the Container navigate to each new form. --- Meaning to say, in each tab Item there's only one frame and i use that frame to navigate?
 
you need to consider exactly which parts of your program are going to handle navigation, and which are going to handle business UI elements
 
And yes, i would like to write on walls or whitepaper better for me to think and design.
 
yes, because that is what you told me you wanted the program to do ... do you understand how I took your words and turned them into a design?
in each tabitem there is only one frame
and the frame is responsible for navigation
 
9:48 PM
no
it instantiates a new frame
 
no to which part?
 
using the usercontrol test.xaml
 
no to "obviously you don't understand how I intend my design" or "no I don't see how my words turned into that"?
 
so everytime i add a new tab theres a new instant of test.xaml frame
 
what is the tabcontrol?
it's a holder element ... nothing about tabcontrol dictates that it will know about a frame or how to use a frame
you want to use a frame in between tabcontrol and the forms
so you have to put one in there
 
9:50 PM
i did?
each tabitem has its own frame
 
you did, until you replaced the TabItem.Content
 
i dont want to create static frames like create 5 frame controls for 5 tab items
so i made a user control so its dynamic
 
as soon as you did TabItem page = ... and THEN page.Content = new test()
kabloom
this really needs a whiteboard to explain
look, take a piece of paper
write on there tabcontrol
then put underneath of it test1
then underneath that write frame
then underneath that put a big question mark
now, use a marker and scratch out everything but tabcontrol, and then write test
because as soon as you put test into tabitem.content, you've gotten rid of the frame
 
ooo im getting you now
your correct.
 
so make a control that can sit inside tabitem "page" that only knows about frames and nothing else
and then tell that control that you want to navigate left or right or up or down or in or out or around or blue or green or whatever
and then when you want to give a new place to navigate to, then you tell that control, that lives inside "page"
 
9:55 PM
yea i have a code mistake there i instantly put the other control without the frame into the page content
 
yep
glad you see it, now you can fix it
you do need another control there, but it doesn't need to be complex
 
so ill add a new user control that only have frame right
 
yep
that's what I would do
 
i already have it
that's test1?
 
and I would do that only because that's what you told me the design dictated
yes, I think so
I closed the project like 30 minutes ago
 
9:58 PM
lol okay 1 se
 
so long as test1 is a frame inside a control, yes
 
this is what i dont like on myself
if i dont get things done i cant sleep
HA!
its working now! i fixed it
thank you so much drach
i can go to sleep
this was the thing that i wanted to happen, i just didnt notice that i was loading content directly. this is whats not goo when ur always testing and hit back the next day
 
sorry was afk
back
yep, I always advocate sleeping on the problem, even if sleep is hard to find
wb@Shogun
 
anyway i shall rest and continue and finish the UI
btw last question
 
10:10 PM
am I implementing MVVM pattern correctly?
 
you're asking the wrong guy
 
rofl
 
I don't do patterns, but I know how things should look to be right
 
well if ur familliar with MVC
 
not really
 
10:11 PM
ooo hmm
 
everyone keeps talking about it, but I'm so used to imperative ...
 
do u think im doing it right atm?
 
thnx just loaded us up on this iPad I picked up the other day, the mobile version of this chat is great
 
old school and all that
I do think you're doing it right
I think what you have looks good
 
separating controls
 
10:11 PM
@Shogun yep, it's nice isn't it
 
i guess so
 
about ti rock some fallout new Vegas >:}
 
@lnluis see that's not what I call MVC, that's just what I call separation of logic
if they're the same thing, so be it
 
not yet implemeting MVC/MVVM
no data access layer / business logic yet
all current logics are for the UI
separate class for the DL and BL
but normally if ur doing a system thats the first thing u wud do right, design first the UI then do the DA then business logic
 
well, so that depends on what I'm doing
I do like UI design first
 
10:14 PM
yes its hard to do data manipulation / business logic without UI
anyway, goodmorning 6:14 am. sigh
time to sleep.
i really dont want to code at mornings its boring. hehe gdnyt tyvm drach. :)
 
your welcome have a good night
 
 
2 hours later…
11:51 PM
night room, ttyl
 
20 rep was easier than I thought, hi guys, nice to finally meet you!
 

« first day (17 days earlier)      last day (4932 days later) »