« first day (510 days earlier)      last day (3639 days later) » 

5:51 AM
Anyone still awake?
 
 
5 hours later…
10:23 AM
@BrockHensley NICE you got 1337 points!!!!!!!!!!
 
11:06 AM
Morning people & no @CCInc not at 5 -- earliest i've seen people speak is around 8:30am -- though people really start talking from 9:30 onwards
 
11:20 AM
Morns
 
 
1 hour later…
12:34 PM
haha thanks @furier
 
^^
 
12:54 PM
can somebody please help me and have a look here
I have no idea why the designer refuses to show the data returned by the FakeService
if I just register the FakeService with the unity container and run the app it works perfect
 
hi
guys I have a problem can any1 solve it?
My app crashes in phone but works perfect in emulator
android'
please reply me
 
this is not an android channel @akky777
 
1:33 PM
@akky777 you may want to address that in Android Room
Do note that its a moderated room, and you'll need to request access and then give them a proper question to work with. The kinda sentence you pasted here will be dealt with harshly if you do it there
Furier: is your ViewModel actually getting resolved?
you're also missing the implementation class of VM, so I can't tell if your bindings messed up somehow
 
1:53 PM
member for 1 year, 1 month
damn I missed my cakeday
 
Maverik
the designer instantiate everything as far as i know just as if it was running
so then i thought it would resolve the correct service
Maverik ill add the VM
@Maverik updated gist
 
2:39 PM
jeez @CCInc you're a night owl
 
2:55 PM
@furier you're right about the assumption of creating instances
I'm not sure sorry, i can't spot anything wrong with your code
 
im here
:/ me neither
neither can my colleagues
 
3:09 PM
I have a ScrollViewer that holds a list of Checkboxes - is there an easy way to Group the checkboxes based on a property?
<ItemsControl ItemsSource="{Binding CheckList}">
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <WrapPanel Orientation="Horizontal" />
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <CheckBox IsChecked="{Binding IsChecked}" IsEnabled="{Binding IsEnabled}" Margin="0,0,5,0">
                <TextBlock Text="{Binding Content}" />
            </CheckBox>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
 
3:29 PM
its so leeeeeeeeeeeeeeet when you speak @BrockHensley!!!!!!!!!!!!!!
 
3:41 PM
Buyback receipt by some reasons sometimes does not work properly because of empty Receipt's Transaction Number -Russian developer
 
@BrockHensley you could just sort on IsChecked?
otherwise pretty sure you can add a GroupDescription to group on IsChecked
 
What, using ListCollectionView ?
 
suppposed you can use that
but i was thinking CollectionViewSource in xaml
 
Sorry not familiar
 
4:21 PM
hmm so I have ListCollectionView 1/2 working -- it groups them but the groups have no titles
and each update the list doubles :x
 
hmm
dunno what you've done - but you're definitely doing it from code :D
i had assumed you'll just google CVS up
 
I have a working LCV in another view that works just fine but doing same thing over here only groups them but has no label heh
 
well something must be different 0_o
 
<ItemsControl.GroupStyle>
    <GroupStyle>
        <GroupStyle.HeaderTemplate>
            <DataTemplate>
                <StackPanel>
                    <TextBlock Text="{Binding Title}" />
                </StackPanel>
            </DataTemplate>
        </GroupStyle.HeaderTemplate>
        <GroupStyle.ContainerStyle>
            <Style TargetType="{x:Type GroupItem}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type GroupItem}">
Groups it by Title as expected, but doesn't actually show Title ...
 
set a background color on TextBlock in header template
if you can see the color, your bindings messed up
 
4:30 PM
Yep no bg color
ohhhhh
Name.Title
Apparently Name is the GroupDescription (object)
Now to fix the appending content instead of overwriting :x
Fin.
 
5:07 PM
anybody experienced with .net xpath queries?
i'm trying to get an XElement of html->head->title sequence to be retrieved with "/html/head/title" but it keeps giving me null
nothing except "//title" responds
oddly .Element("head").Element("title") works fine -- so xpaths being stupid somehow
 
5:32 PM
what are your guys' take on application feedback? lets say user opens a corrupt file... would you implement a service that shows a dialog box or go about it a different way? Eventually I would not only like to show a dialog, but i would like to dump error messages to files too
 
mm not sure i understand the question
 
user opens corrupt file
i need to tell them file is corrupt
 
@BrockHensley zagstudio.com/blog/387 for future reference
dialog away
 
just MessageBox.Show? seems ugly...
don't leave me yet @Mav!
 
well if you're in standard wpf chrome - sure
i've started to put effort into doing everything with (MahApps.)metro so i tend to create custom stuff for that
 
5:47 PM
like a custom dialog box your saying right? I just figured MessageBox.Show kinda relates to the view.
like, I shouldn't be doing that in the VM
@ReedCopsey would you agree with Mav? got any input?
 
I typically build a service for showing messages
it may use MessageBox.Show
though normally I end up with a custom dialog since I want to display more info
 
do you have a link to a good tutorial for something like that? maybe this one?
 
yeah - his stuff is a bit complicated sometimes, but that's how you'd do it with MVVM Light
 
what approach should be taken for a "global logger" as well
i.e. corrupt file is open. dialog box (which we are currently discussing showing dialog saying corrupt file) to tell user. same text of dialog box is displayed in a richtextbox (or something of that sort) and the error message + details is logged to a file
and is there a tutorial for when you're not using MVVM Light 0_o
 
6:14 PM
@NETscape if a method asks for user input or does something that can fail, I make the method return bool and on failure handle it with a custom dialog and/or loop to do the dialog again for e.g. if file is corrupt display corrupt message and return to file select dialog so they don't have to repeat any steps to try again.
Unless you don't want to auto loop on failure and just want to stop.
and error handling, I have global Unhandled exception handlers for anything that isn't done in a try / catch
public App()
{
    // UnhandledException Handlers
    AppDomain currentDomain = AppDomain.CurrentDomain;
    currentDomain.UnhandledException += LogUtil.UnhandledExceptionEventHandler;
    Current.DispatcherUnhandledException += LogUtil.UnhandledExceptionEventHandler;
    Dispatcher.UnhandledException += LogUtil.UnhandledExceptionEventHandler;
    TaskScheduler.UnobservedTaskException += LogUtil.UnhandledExceptionEventHandler;
public static void AddLogEntry(string message, LogCategory logCategory, LogStatus logStatus = LogStatus.None,
    Employee employee = null, string destinationOverride = null, [CallerMemberName] string method = null,
    [CallerFilePath] string filePath = null,
    [CallerLineNumber] int lineNumber = 0)
and for special sauce:
// Where to save log?
if (!string.IsNullOrEmpty(destinationOverride))
{
    switch (destinationOverride.ToLower())
    {
        case "db":
            LogMessageToDatabase(db, entry);
            return;
        case "appdata":
            LogMessageToAppData(message);
            return;
        case "winevt":
            LogMessageToEventLogs(message);
            return;
    }
}
 
@BrockHensley thanks. did you make LogUtil it's own project?
 
public static class LogUtil
 
right. just wondering if you made it portable for other apps too
 
I copy/paste classes if I need in another project
I realize I could make it a custom control
But, sometimes KIS is better eh?
public static class LogUtil
{
    public static void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs args)
    public static void UnhandledExceptionEventHandler(object sender, DispatcherUnhandledExceptionEventArgs args)
    public static void UnhandledExceptionEventHandler(object sender, UnobservedTaskExceptionEventArgs args)
    public static void CustomExceptionHandler(Exception e)
    public static void AutoSendLogToSupport(Log log)
I have a Log model
 
Just Dirt.WPF.LogUtil it. sell it for millions
 
6:23 PM
Sorry netscape, i did actually mean ServiceLocator -> IDialogService -> Message.Show route
 
have you ran into any problems with that method brock? seems like a good idea because I have forgot to add useful/needed try/catch
 
Naw they are great they catch everything
Background threads etc
I have experienced where they catch too much, if that's possible, but it's rare and mainly because of how we are doing threads wrong.
 
haha, awesome
isn't it awesome how it is known things are done wrong but it's just like "meh" f
 
6:37 PM
in all aspects of our world
 
and thanks Mav
 
7:05 PM
@CCInc did you find help last night?
 
Nope
The thing to the left... the list of equations. I want something like that but don't know how to get started.
I think I'd want a grid and then make a template for the equation, and then wehn the user adds an equation just make a copy of the template?
 
7:25 PM
List of equations using ItemTemplate so you dont have to repeat code?
 
So I'd use an itemtemplate for each equation and then just make copies of the itemtemplate?
 
you'd create an itemtemplate
 
<ItemsControl ItemsSource="{Binding MyList}">
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <Button Content="{Binding Content}" />
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>
 
that'll will be automatically, if you will
 
Unless you can't template the different equations as they have different properties?
 
7:33 PM
then what brock said
You'll probably have to extend TextBox control
 
Hm. Yeah, I'd need a textbox, but can't I just make a template that includes the textbox? (so then the user could enter an equation but I could reuse my gui code)
 
Yeah replace my <Button>
 
(which will have to format the text, i.e. typing x^2, your control will have to superscript the 2 and remove the ^)
 
2
Q: Creating a Circular GUI

RichSo one of my latest side projects is developing a application detection and populating assistant. Programmatically I am absolutely fine populating the backend code for what I want accomplished. But I've run into a road block on the GUI. I need a GUI that is a Quarter circle that extends from the ...

 
awesome, thanks guys
 
7:35 PM
@Feeds, please, we are trying to have a discussion.
 
lol
 
8:28 PM
@NETscape yeah I really am
 
 
3 hours later…
11:48 PM
Anybody done much to create a pack URI at runtime?
@JohanLarsson Weren't you doing that at one point?
 

« first day (510 days earlier)      last day (3639 days later) »