« first day (150 days earlier)      last day (3999 days later) » 

8:38 AM
morning all :)
 
morning guys
 
9:17 AM
morning
 
10:01 AM
morning
 
10:26 AM
quiet in here today ;P
 
11:06 AM
Play some music. It'll become less quiet :P
 
wish i could while i was at work, haha.
 
12:05 PM
Hi guys
 
Heyya
 
WPF question i hav listbox with stack panel and checkboxes
i want to wrap because i have removed my scrollbar
how do i do it because i see half of checkboxes n rest gets cutt off
 
have you used Grid Definitions as all?
 
how does it get cutt off ?
 
no grid
<ListBox ItemsSource="{Binding Programs, Mode=TwoWay}" SelectedValuePath ="{Binding ProgramID}" BorderThickness="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Top" Grid.ColumnSpan="2" HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="60">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" VerticalAlignment="Top">

</StackPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>

<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding ProgramDescription}" IsChecked="{Binding IsProgramChecked, Mode=TwoWay
i hav arund 20 programs so i see only 7-8 :(
 
12:12 PM
ok
so you removed the scrollbar
have an horizontal stack layout strategy
so you only see the first items, no the last ones
so you would want te replace the horizontal stack panel with a wrap panel ?
 
wrappanel m not able to get in namespaces which musing
m using*
 
you are using WPF 4.0 ?
 
is der any other workaround i can wrap my contents
 
no
you have to use a wrap panel
this code should work :
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel VerticalAlignment="Top">
</WrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
 
wrappanel m not able to get
:-(
 
12:16 PM
why ?
you should be
wrap panel is not in a specific namespace, it's in System.Windows.Controls, in the same place as StackPanel
if you can use StackPanel, you should be able to use WrapPanel
and it's been present since WPF 3.0
if you are doing WPF, there is absolutely no way you can't use it :)
 
wrappanel doesnot exist in namespace schemas.microsoft.com/client/2007
it gives we this error
 
well it's not a WPF namesapce
why do you use this namespace ?
 
WrapPanel comes under this namespace schemas.microsoft.com/winfx/2006/xaml/presentation which is included in my page still it is not available
 
12:34 PM
anybody could help me with this post ? stackoverflow.com/questions/15476203/…
 
12:46 PM
bubba I may be crazy but your only selecting one value ".take(1)"
 
@E.LDunn , I have many entries, and i want to have the latest entry edgar.. .
 
guys i dnt hav this dll microsoft.window.controls.dll
 
google and download it
and add reference in ur project
 
Google is you're friend!
 
@gregory.bmclub hey
 
12:57 PM
hey @Buba
 
how u doing.. where you Off on friday ?
 
Yeah good thanks, you? Yeah I did :).
 
I am good too. Wednesday should do a demo in front of my team
till wat I hav done..
:/
 
oh wow, goodluck! You feeling confident about it?
 
I hav to fix here and there. but feel better. not 100% confident.
thanks and how abt ur progress ?
 
1:23 PM
:)
 
1:35 PM
@shilpa : you don't need microsoft.window.controls.dll library (i'm not even sure taht exsits actually)
you need presentationFramework that is included with any WPF project
how did you create your project ?
with Visual Studio ?
 
mine is silverlight project
@Sisyphe Could you help which nuget package i can include in my project
 
Silverlight is NOT wpf :)
we are dedicated to WPF around here ^^
 
I KNW UI IS IN WPF HENCE I ASKD
 
no need to use Caps
UI is WPF ?
it's either Silverlight, or WPF, it can't be both
and even if Silverlight and WPF share a common core, it's really not the same thing
you have to be a little bit more precise in your questions/the data you provide if you want people to be able to help you
@shilpa : so waht are you using ? WPF or Silverlight ? And if you are using Silverlight, what version are you using ?
 
@Buba1947 yeah not too bad. just thinking what to do next! haha
 
1:45 PM
if it's silverlight : try adding this namespace : xmlns:tk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
and use <tk:WrapPanel/>
 
Is there a way to use a silverlight library on Phone and Desktop? i.e. imagetools.codeplex.com
 
Silverlight on Windows Phone ?
 
That's not an issue at all. But running them in WPF?
 
seems hard
you can run it in a webbrowser in desktop
 
It's about dlls :P
 
1:51 PM
ho sorry
didnt catch what you meant
you have a silverlight class library
that you want to reuse
in a WPF app ?
it should be possible
but may be not out of the box
 
posted on March 18, 2013 by Eric Lippert

Last time on FAIC we managed to finally state the rules of the monad pattern; of course, we've known for some time that the key parts of the pattern are the constructor helper, which we've been calling CreateSimpleM<T> and the … Continue reading →

 
WPF and Silverlight do no use same version of the framework
if you get the library source code you may be able to do something :)
but using it directly may not work
it will need some silverlight specific libraries
and you will end up with namespaces conflicts
but it's worth a try
get the library
create a WPF project
 
I'll work around by making an interface in PCL and implementing it in platform specific libs. I can't get assed to figure out everything like that again.
 
reference the assembly
add the missing assembly
and try compiling
worth a try :)
 
yes m trying
 
1:57 PM
@shilpa good luck
@RoelvanUden : What's PCL ? ^^
 
portable class library
 
looks interresting :)
@RoelvanUden : I didnt know that one as I didnt have to work cross platform for a long time :) thanks for sharing !
 
@Sisyphe You're welcome. It's a super restrictive set but it allows you write code that can be referenced from any project. It's really useful.
 
yeah looks usefull for some particular use cases
 
2:14 PM
@Sisyphe hey
 
hey @Buba1947 :)
 
@Sisyphe do u hav experience working on wpf charts ?
 
not specifically no ^^
 
can you do me a test bubba
 
@Sisyphe ok thanks :)
@E.LDunn in what edgar ?
 
2:17 PM
with your chart just want to check something
 
yes sure. go ahead
 
2 seconds to write it out
 
sure, waiting
 
    var ramList = (from c in db.UsageRAMs
                  orderby c.UsageRamID descending, c.Used,c.Available,c.Total
                  select c).Take(1);
    var myrams = new ListList<ramList>();
    myrams.add(new ramList() { Available = ramlist.Available });
    myrams.add(new ramList() { Available = ramlist.Used });
    this.serversUsageRAMsViewSource  = (CollectionViewSource)this.FindResource("ramView");
    serversUsageRAMsViewSource.Source = myrams;
may be some slight syntax errors I don't have your model
 
I am going to try now.. n get bak.. thanks mate
Oh no.. I am using IEnumerable<CLASSNAME>
not list edgar
 
2:27 PM
well just put myrams.AsEnumerable<UsageRAMs> or what ever the class is called
there is an error in what I posted ListList<ramList>(); should be ListList<UsageRAM>(); or again what ever the class is
 
i guess it should be List<UsageRAM>()
 
yea sounds right
 
will get bak
@E.LDunn i get this following. my Available and Used doesn pop up :-/
http://s24.postimage.org/5kdjc48qd/RAm_Err.png
 
replace take(!) with firstordefualt();
 
okay
the xaml is fine as this ?
<dvc:PieSeries ItemsSource="{Binding Source={StaticResource ramView}}"
DependentValuePath="Available"
IndependentValuePath="Used">
</dvc:PieSeries>
0 errors but same output.. my pie chart s not slicing :(
 
2:42 PM
anybody knows if it's possible to forbid StackOverflow room entering to some people ?
 
why what happened ?
 
don't kick me out sysphe :(
 
:P
there is a user that's getting on my nerves
two times that he/she has an innapropriate behavior here
 
haha.. who is that
 
shilpa
jumps in, ask strange questions, shout in Caps when he/she doesnt get a straight answer, get an answer and then just leave without saying anything
 
2:45 PM
i guessed..
 
I don't plan to ban him/her immediately but was wondering if it was something possible
 
show some mercy..
leav her for first tym :P
 
well yeah
but I don't have a lot of time to answer people around here and kinda regret when I loose it on people like that
 
;)
 
tats bad attitude.. @shilpa
@E.LDunn thanks for your time to write soemthing.. but i hav the same result
:(
 
2:48 PM
at least I should have some kinda personal list of people I know I d'ont want to loose time with
 
chillax
 
im gonna write out a quick and dirty example but im sure your IndependentValueBinding should be the name of the slice... give me a few minutes
 
sure.. i am waiting.
 
Common guys ! You can do it !
 
2:54 PM
@Sisyphe ^^
 
heyo
 
hey @Julien
 
howdy @Julien
 
3:13 PM
you want it like that buba?
 
exactly edgar
how did u do tat
 
    public partial class chartExamplexaml : Window
    {
        public chartExamplexaml()
        {
            InitializeComponent();
        }

        public override void OnApplyTemplate()
        {

            Ram.DataContext = new List<myvalues>() { new myvalues() { name = "Available", val = 75 },
                                                     new myvalues() { name = "Used", val = 111 } };

            base.OnApplyTemplate();
        }

    }

    public class myvalues
    {
        public string name { get; set; }
<dvc:Chart x:Name="Ram" Background="White" Foreground="Black" Grid.Column="1" Grid.Row="1">
    <dvc:Chart.Series>
        <dvc:PieSeries ItemsSource="{Binding}"
            DependentValuePath="val" IndependentValuePath="name" >
        </dvc:PieSeries>
    </dvc:Chart.Series>
</dvc:Chart>
 
Yes that is awesome..
 
I think @E.LDunn is a kind of new superhero
 
dankeeee Edgar
 
3:16 PM
haha no way
its just a mock up, i'm sure buba can do the rest :)
 
@E.LDunn but i should retreive the values from a DB. but this will serve as ma base
danke once again
 
exactly :)
 
You saved your place here for the moment @E.LDunn, I won't ban you... yet...
 
haha I hope not :) , kinda like it here
 
^^
 
3:22 PM
the power is going to @Sisyphe head a little - Haha ;P
 
yeah, it's soon going to be hell around here
 
whys that when?
 
hmm ?
 
it works perfect for me.. Thanks @E.LDunn :) gonna try with entities.. the monster
 
glad to hear it buba :)
 
3:33 PM
I see that you are in sir mode Dunn!
 
hey @JohanLarsson :]
 
Johan my friend how are you today :)
 
I'm good apart from the fact that I have improved my bot so much that it is now #6 instead of #1 :D
 
haha
 
3:37 PM
:)
 
even hand optimized parts of the code with magic numbers
 
4:07 PM
have a nice evening guys. cya tomor
Ciao
 
Cya !
 
cya later alligator.
 
in a while crocodile
 
lol ;P
 
:D
 
4:29 PM
ANTLR killed me...
 
4:53 PM
time to go bye guys :)
 
byebye :)
 
 
7 hours later…
11:43 PM
im hungry :(
 
@E.LDunn Then get some foods.
 
its midnight not really food eating time :)
 
maybe Roel can scale your appetite?
or skew it?
 
lol
 
I hate PNG so much right now.
 
11:54 PM
Y U HAET PNG
 
we must ask Lews if he hates png
he knows that stuff (hate)
 
png the image format?? thats a weird thing to hate
 
It's a big hurdle to get PNG decompression working as intended
 
I'm watching Downton Abbey, pretty dumb series but the sure know how to sir
Lordship Dunn?
 

« first day (150 days earlier)      last day (3999 days later) »