Meta tags:
Headings (most frequently used words):
windows, store, apps, 2012, october, tuesday, quick, tip, the, generic, saturday, january, 26, 2013, 16, wednesday, 10, monday, 08, september, 18, about, me, links, linkedin, blog, archive, lockscreen, applications, sneaky, selected, item, in, collectionviewsource, getting, app, version, number, connectivity, dropped, control, to, take, that, worry, from, your, brow, panorama, ish, gridview, using, service, layer, simple, httpclient, request, response, debugger,
Text of the page (most frequently used words):
the (99), you (45), that (35), #windows (28), and (24), for (22), response (22), your (20), store (18), this (17), content (16), apps (15), request (15), new (15), from (14), app (12), code (12), can (12), handler (12), october (11), 2012 (11), string (11), control (11), var (10), get (10), here (9), debug (9), using (9), september (8), unknown (8), httpclient (8), with (8), there (8), inspectorhandler (8), service (8), one (8), connectivity (8), version (8), upplagd (7), simple (7), all (7), key (7), use (7), progress (7), net (6), comments (6), tuesday (6), when (6), just (6), http (6), eiffel (6), 20tower (6), bingmapskey (6), genericservicelayer (6), way (6), connectivitypages (6), about (5), etiketter (5), development (5), have (5), but (5), format (5), inspector (5), public (5), client (5), await (5), json (5), cookiecontainer (5), much (5), what (5), item (5), connectivitypopup (5), applicationmodel (5), package (5), current (5), january (4), xaml (4), into (4), requests (4), example (4), result (4), details (4), are (4), perhaps (4), want (4), grab (4), cancellationtoken (4), readasstringasync (4), writeline (4), method (4), getasync (4), create (4), post (4), take (4), more (4), tip (4), generic (4), gridview (4), panorama (4), something (4), then (4), usoniandream (4), selected (4), collectionviewsource (4), awesome (3), july (3), november (3), april (3), may (3), lockscreen (3), 2013 (3), web (3), phone (3), not (3), really (3), below (3), once (3), some (3), now (3), available (3), class (3), httpmessagehandler (3), else (3), null (3), dev (3), virtualearth (3), rest (3), locations (3), async (3), above (3), void (3), reportedprogress (3), put (3), also (3), make (3), they (3), john (3), michael (3), hauck (3), jerry (3), nixon (3), show (3), out (3), lot (3), quick (3), least (3), framework (3), binding (3), pages (3), backgroundimagestretch (3), assets (3), png (3), backgroundimagepath (3), event (3), connectivitypopuppage (3), page (3), handle (3), user (3), will (3), february (2), june (2), applications (2), archive (2), asp (2), view (2), complete (2), posts (2), deal (2), pain (2), other (2), often (2), find (2), therefore (2), wrote (2), little (2), said (2), add (2), output (2), usage (2), would (2), interesting (2), debugger (2), fairly (2), useful (2), far (2), well (2), source (2), zip (2), containing (2), project (2), ready (2), messageprocessinghandler (2), innerhandler (2), httprequestmessage (2), wait (2), requesturi (2), tostring (2), httpresponsemessage (2), requestmessage (2), statuscode (2), return (2), endif (2), override (2), protected (2), xml (2), httpclienthandler (2), baseaddress (2), system (2), uri (2), text (2), fire (2), private (2), set (2), full (2), has (2), viewmodel (2), approach (2), present (2), int (2), implement (2), easily (2), done (2), uses (2), genericservicelayersample (2), true (2), setting (2), shouldn (2), than (2), idea (2), possible (2), say (2), layer (2), monday (2), wish (2), give (2), credit (2), where (2), know (2), techniques (2), see (2), background (2), accomplished (2), layout (2), bit (2), thanks (2), ish (2), how (2), custom (2), likely (2), written (2), wednesday (2), needs (2), doesn (2), issues (2), flipviewindicator (2), callisto (2), space (2), resides (2), somewhere (2), boring (2), properties (2), default (2), handled (2), visually (2), context (2), could (2), requirements (2), good (2), many (2), application (2), first (2), standard (2), saturday (2), inc, theme, powered, blogger, august, december, 2006, march, 2007, 2008, 2009, blog, linkedin, skandia, skandiabanken, microsoft, platform, mvc, hub, samples, github, locationservices, links, profile, subscribe, atom, home, older, debugging, sometimes, huge, times, big, regardless, case, hand, myself, digging, responses, helper, let, introduce, definition, outputs, window, configuration, straight, forward, continue, normally, screenshot, button, pressed, fires, url, ouputs, textbox, basic, objects, ouput, effective, under, hood, work, art, does, job, quite, being, tool, library, compiled, referenced, processrequest, processresponse, base, btngo_click_1, sender, routedeventargs, tbcontent, insert, proper, bing, maps, otherwise, access, denied, allocate, handlers, append, declare, object, hook, downloaded, proven, valuable, adventures, currently, embarking, probably, property, running, makes, notifypropertychanged, visual, notification, changed, info, listen, methods, exposed, which, enables, report, made, iasyncoperationwithprogress, tresult, httpcontent, formurlencodedcontent, keyvaluepair, putasync, innercontent, someinnercontent, pass, via, passing, parameters, structured, normal, syntax, sample, responsemodel, myeiffeltowermodel, mapped, model, note, previous, usecookies, datasource, whatever, reference, dll, extract, away, repetitive, task, sending, hello, another, helpful, building, connected, internet, reusable, consuming, urls, walk, park, comment, feel, free, modify, got, balls, deserved, thank, authors, community, effort, sharing, experimental, playful, perfect, help, observe, images, moves, slower, foreground, voila, mission, won, dig, sourcecode, dive, serve, hot, oven, bake, both, together, minutes, nicer, effect, recap, recipie, sweet, cake, included, marriage, variablesizedwrapgrid, prettier, found, search, end, discussions, called, parallax, did, article, cought, eye, was, took, created, sort, cudos, him, parallaxconverter, tweak, somewhat, similar, feeling, suits, turn, inside, change, invert, anyway, handling, dependent, since, tim, heuer, uniformtofill, maybe, hal, uniform, ohno, instead, styled, homer, simpson, customize, liking, minimalistic, yes, fired, takes, care, telling, appropriate, thread, simply, travelling, action, through, dispatcher, runasync, isopen, observablecollection, windowsstore, controls, title, _imagepath, description, defaultviewmodel, lorem, ipsum, ante, mediumgray, tried, dicefeud, yet, placed, handles, hassle, supply, place, behind, scenes, attaches, networking, networkinformation, networkstatuschanged, pops, overlay, across, entire, screen, looses, guts, consists, along, dependency, template, flipview, grid, popup, back, concern, houldn, steal, time, spend, implementing, ideas, should, these, automagically, creating, meaningful, hopefully, while, lost, letting, happened, error, suppose, gives, messagedialog, publishing, loss, matter, curse, certification, reason, them, prevents, experience, going, haywire, fair, game, usually, people, swallow, few, exceptions, fool, proof, unhandledexception, bothered, reading, download, dropped, worry, brow, major, minor, build, revision, need, information, getting, number, imagine, fetch, data, depending, navigate, call, twice, passed, parameter, selecteditem, selectionchanged, listview, assigning, fundamental, difference, mark, collection, collections, itemssource, sneaky, moment, instagram, initially, placeholder, port,
Text of the page (random words):
d e v e l o p m e n t d e v e l o p m e n t saturday january 26 2013 lockscreen applications at the moment i ve written the instagram lockscreen application for windows phone 8 but there s a lot more on the way this post is initially a placeholder for more content there is a port for windows 8 on the way but there is something else in progress something awesome upplagd av unknown kl saturday january 26 2013 no comments tuesday october 16 2012 windows store apps quick tip the sneaky selected item in collectionviewsource when assigning an itemssource there is a fundamental difference in collectionviewsource vs standard collections using a collectionviewsource will mark the first item as selected using a standard collection will not imagine if you will a listview where you handle selectionchanged and fetch data from somewhere depending on what item is selected if you re using a collectionviewsource and navigate to the page you ll fire that call twice first for the default selected item then for the passed in parameter that you re likely using to the set selecteditem that is all upplagd av unknown kl tuesday october 16 2012 no comments windows store apps quick tip getting the app version number if you need to get the version information of your app from code the details you want resides in windows applicationmodel package current id version for example to get a full version string you could use the below code string format 0 1 2 3 windows applicationmodel package current id version major windows applicationmodel package current id version minor windows applicationmodel package current id version build windows applicationmodel package current id version revision that is all upplagd av unknown kl tuesday october 16 2012 no comments etiketter development windows store apps wednesday october 10 2012 windows store apps a generic connectivity dropped control to take that worry from your brow if you can t be bothered reading the text and just want the code it s available for download here one of the requirements when publishing your windows store app is that the app needs to handle connectivity loss no matter how much you curse at the certification requirements that one is there for a good reason as many of them are and it prevents the user experience from going haywire so it s fair game not much you can say about that usually what people do here is add a handler to the application unhandledexception event and swallow as many few of the exceptions they can good on you now your app is fool proof or is it what about letting your user know something happened visually well you could show a messagedialog with the details of that error i suppose that at least gives a bit of context back to connectivity this shouldn t be a concern this houldn t steal time from you that you can spend on implementing all your ideas this should just be handled one way to handle these issues automagically is by creating a generic control that can visually present meaningful hopefully but up to you context to your user while the app has lost connectivity therefore i give you connectivitypopup connectivitypopup is a custom control that pops up an overlay across the entire screen when your app looses connectivity the guts of the control consists of a popup control containing a grid with a flipview and flipviewindicator from the awesome callisto framework along with some dependency properties and a control template once placed on your page it handles the hassle of connectivity for you all you have to do is supply it with at least one connectivitypopuppage and place the control on your page s behind the scenes it then attaches to the windows networking connectivity networkinformation networkstatuschanged event var connectivitypages new observablecollection usoniandream windowsstore controls connectivitypopuppage new connectivitypopuppage title have you tried dicefeud yet _imagepath assets mediumgray png description lorem ipsum ante this defaultviewmodel connectivitypages connectivitypages once that event is fired and handled it takes care of telling the ui to show the control on the appropriate thread this is accomplished simply by travelling the action of setting isopen true through dispatcher runasync the default layout of the control is fairly minimalistic and yes boring usoniandream connectivitypopup pages binding connectivitypages but it doesn t have to be boring you can customize it using backgroundimagepath and backgroundimagestretch properties to your liking perhaps you instead want to create a homer simpson styled one usoniandream connectivitypopup backgroundimagepath assets ohno png backgroundimagestretch uniform pages binding connectivitypages or maybe hal resides somewhere in the void of space in your app usoniandream connectivitypopup backgroundimagepath assets space png backgroundimagestretch uniformtofill pages binding connectivitypages the control is dependent on tim heuer s callisto framework since it uses the flipviewindicator from that framework this is just my take on handling connectivity issues in a generic way if it suits your needs go grab it then use it if it doesn t go grab it anyway then turn it inside out change it invert it upplagd av unknown kl wednesday october 10 2012 no comments etiketter development windows store apps xaml monday october 08 2012 windows store apps a panorama ish gridview the idea is simple take a gridview tweak it to see if it s possible to get a somewhat similar feeling as the panorama control for windows phone if you search for panorama and windows store you ll likely end up in discussions about something called parallax background at least that s what i did one article that cought my eye was this one written by john michael hauck he took an interesting approach and created a parallaxconverter to sort it all out cudos to him that s the one i m using in this example also included in this marriage of a lot of techniques is the tip from jerry nixon on how to use a variablesizedwrapgrid and custom gridview to make it a little prettier found here so quick recap of the recipie for this sweet cake implement panorama ish effect thanks to john michael hauck make the item layout a bit nicer thanks to jerry nixon bake both together for 20 minutes ready to serve hot from the oven i won t dig into details of the code in this post you have the sourcecode available for that if you wish to dive in if you observe the images below you ll see that the background moves much slower than the gridview in the foreground voila mission accomplished this is an experimental playful and far from perfect code it s just here to show you that it can be done and that there are techniques out there that can help you a lot feel free to grab the code in this zip archive use or modify it as you wish if you got the balls to give credit where credit is deserved go thank jerry nixon john michael hauck and the other authors in the community for the effort they put into sharing what they know upplagd av unknown kl monday october 08 2012 1 comment etiketter development windows store apps xaml tuesday september 18 2012 windows store apps using a generic service layer another perhaps helpful tip when building windows store apps that are connected in some way to the internet you can easily create a reusable service layer for your web requests that make consuming async http urls more of a walk in the park with that said say hello to the genericservicelayer for windows store apps the idea is simple extract away as much as possible from the often repetitive task of sending web requests in a windows store app usage reference the dll project in your viewmodel datasource whatever create a genericservicelayer use it in your code setting up a genericservicelayer in your code shouldn t take much more than this public class genericservicelayersample private genericservicelayer service null public genericservicelayersample cookiecontainer cookiecontainer new cookiecontainer httpmessagehandler handler new httpclienthandler cookiecontainer cookiecontainer usecookies true handler new inspectorhandler handler var client new httpclient handler baseaddress new system uri http dev virtualearth net rest v1 locations service new genericservicelayer client note that the code above also uses the inspectorhandler i wrote about in the previous post now to use it it s really as simple as public async void sample get a string response var response await service getasync eiffel 20tower o json key bingmapskey get a json net mapped model var responsemodel await service getasync myeiffeltowermodel eiffel 20tower o json key bingmapskey passing in parameters content is done in a structured way using the normal syntax for example pass in content via put and get a string response httpcontent content new formurlencodedcontent new new keyvaluepair string string someinnercontent innercontent var response service putasync eiffel 20tower o json key bingmapskey content the methods get post put exposed in the genericservicelayer all implement iasyncoperationwithprogress tresult int which easily enables you to also report progress on the requests made get a string response and listen for progress var response service getasync eiffel 20tower o json key bingmapskey int reportedprogress 0 response progress info progress reportedprogress progress the above reportedprogress would probably be a property in your viewmodel or the approach you re running with that makes use of notifypropertychanged so that it d present a visual progress notification in your app when changed perhaps you ll find this useful it has proven valuable in the adventures of windows store apps i m currently embarking on full source code can be downloaded here upplagd av unknown kl tuesday september 18 2012 no comments etiketter development windows store apps xaml windows store apps a simple httpclient request response debugger here s the deal debugging is a pain sometimes a huge pain other times it s not that big of a deal regardless of the case at hand i often find myself digging into the requests and responses of the httpclient so therefore i wrote this little helper so with that said let me introduce you to inspectorhandler for windows store apps it s simple really inspectorhandler is a messageprocessinghandler that you can add to your httpclient definition that outputs the request response from the httpclient to the debug output window when you re in debug configuration usage is really straight forward hook up the handler create the httpclient you re set continue using the httpclient just as you normally would with await readasstringasync and all that private async void btngo_click_1 object sender routedeventargs e declare http handler httpmessagehandler handler new httpclienthandler append the inspector handler handler new inspectorhandler handler allocate a http client on the above handlers var client new httpclient handler baseaddress new system uri http dev virtualearth net rest v1 locations fire request var response await client getasync eiffel 20tower o xml key bingmapskey insert a proper bing maps key here otherwise you ll just get the access denied view output result tbcontent text await response content readasstringasync below is a screenshot of a example app that once the button is pressed fires a get request to the http dev virtualearth net rest v1 locations eiffel 20tower o xml key bingmapskey url and ouputs the result into a textbox and some basic interesting details from the request response objects are now available in the ouput of the debugger there you have it simple fairly effective and perhaps useful under the hood the inspectorhandler is far from a work of art but it does the job quite well for being a simple debug tool here s the complete source code public class inspectorhandler messageprocessinghandler public inspectorhandler httpmessagehandler innerhandler base innerhandler protected override httprequestmessage processrequest httprequestmessage request cancellationtoken cancellationtoken if debug if request content null var content request content readasstringasync content wait debug writeline string format inspector 0 request 1 2 request method request requesturi tostring content result else debug writeline string format inspector 0 request 1 request method request requesturi tostring endif return request protected override httpresponsemessage processresponse httpresponsemessage response cancellationtoken cancellationtoken if debug if response content null var content response content readasstringasync content wait debug writeline string format inspector 0 response 1 2 response requestmessage method response statuscode content result else debug writeline string format inspector 0 response 1 2 response requestmessage method response statuscode endif return response if you want it you can grab it here as a zip containing the class library project ready to be compiled referenced upplagd av unknown kl tuesday september 18 2012 no comments etiketter development windows store apps xaml older posts home subscribe to posts atom about me unknown view my complete profile links locationservices for windows phone code samples on github app hub asp net asp net mvc microsoft web platform skandiabanken skandia linkedin blog archive 2013 1 january 1 lockscreen applications 2012 30 october 4 september 2 june 1 may 16 april 7 2009 16 november 1 october 13 september 1 may 1 2008 5 september 1 july 1 april 1 february 2 2007 36 november 1 october 5 september 2 july 6 june 3 may 4 april 4 march 3 february 3 january 5 2006 41 december 11 november 8 october 6 september 4 august 5 july 7 awesome inc theme powered by blogger
|