« first day (2046 days earlier)      last day (2892 days later) » 

4:00 PM
I just want the list with the file path
I think the query is well build
I dont know
 
where are you assigning anything to a list?
I don't think the code you posted has that error
 
.Select(x => new {x.Directory, Date = x.Token[1], Version = version}) creates that anonymous type, if you just want a string return that
 
I just want the files path from lastVersion
 
I think your code is broken quite badly
actually it might work
but it's not good form
 
hmmm Im not handy with linq
 
4:04 PM
multiple selects and wheres in a single linq statement is difficult to read
 
I've used for a similar thing
to get the most recent update number and path out of a directorie that had several directories named like: update_14, update_15
thats why I think that might work for what I need
 
@Mr.Toxy after that code, try something like lastVersion.Select(x => x.Directory)?
 
Are WCF services still a good approach to make a service that is accessible in most situations?
 
@CuddleBunny after the select you mentioned?
 
after the orderby
 
4:05 PM
ok I will try that
 
@WilliamMariager I prefer REST
WCF has a tendency to use highly specific protocols
 
@CuddleBunny nope its not working, I think that the .select has to be before the OrderBy
 
@KendallFrey I thought WCF had REST support?
 
@Mr.Toxy if you put it before the orderby, the type won't have the version property anymore
 
Anybody know Membership Reboot? I keep getting "Invalid Property Name Whatever"
 
4:07 PM
Is there any way to explicitly test for thread safety, or do I just run my code a whole bunch and if it doesn't crash I can hope I'm good?
 
You can make RESTful services in WCF I think. I don't know how though.
 
@CuddleBunny it doesnt let me put it after the order by
 
@Sidney The best way to analyze thread safety is by reading the code
 
@Mr.Toxy is there an error?
 
it says "; expected" after the order by
 
4:08 PM
Yeah, I did that. Just hope I didn't miss anything.
 
You shouldn't be able to put ANY more linq chains after an order by
 
@Sidney The next best way is to get someone else to read it
 
@Mr.Toxy oh, found something missing. Try:
var lastVersion = new DirectoryInfo(Directoria).EnumerateFiles()
            .Where(d => d.Name.ToLower().EndsWith(".sql"))
            .Select(d => new {Directory = d, Token = d.Name.Split('_')})
            .Where(x => x.Token.Length == 3 && Version.TryParse(x.Token[2], out version))
            .Select(x => new { Directory = x.Directory, Date = x.Token[1], Version = version})
            .OrderByDescending(x => x.Version)
			.Select(x => x.Directory);
 
@Jakotheshadows whyever not?
 
Since it is often the case that linq is used to indirectly query databases, and ORDER BY is the last processed clause in any query
 
4:09 PM
that's a pointless restriction
 
So how should linq to sql be handled then
if someone puts a where / select after an order by
 
@CuddleBunny ok that query has no erros, but It still says I cant convert System.FileInfo to list<string>
 
@Jakotheshadows makes sense.
 
maybe change the type of lastVersion?
however I think this would be the fastest an easiest way to order them
using linq that is
 
@Mr.Toxy okay, basically here is what you have: [{ Directory: "someDirectory", Date: "someDate", Version: "someVersion"}, { Directory: "someOtherDirectory", Date: "someDate", Version: "someVersion"}, ...]
but you want ["someDirectory", "someOtherDirectory"]
 
4:13 PM
.Select(x => new { Directory = x.Directory, Date = x.Token[1], Version = version })
yes this select
 
Why not just keep lastVersion as is, and don't try to make it a List<String>?
 
you're sayin to do just this?
  var lastVersion = new DirectoryInfo(Directoria).EnumerateFiles()
                        .Where(d => d.Name.ToLower().EndsWith(".sql"))
                        .Select(d => new { Directory = d, Token = d.Name.Split('_') })
                        .Where(x => x.Token.Length == 3 && Version.TryParse(x.Token[2], out version))
                        .OrderByDescending(x => x.Version)
                        .Select(x => x.Directory);
If I comment that select, the orderby gives me an error
 
can't do that because the type from the second Where doesn't have a Version property.
 
the problem here, I think, its just converting lastVersion to a list
.Where(x => x.Token.Length == 3 && Version.TryParse(x.Token[2], out version))
 
it is because you can't do String directory = { Directory: "someDirectory", Date: "someDate", Version: "someVersion"};
 
4:17 PM
yeah
I actually just need the "someDirectory"
var lastVersion = new DirectoryInfo(Directoria).EnumerateFiles() maybe changing this?
 
no
you need everything you have before the orderby in order to get what you want
 
yes I have in mind that the query is well built for what I need
can you implicitly say you just want "someDirectory" and take all the rest?
 
I don't know why you can't put .Select(x => x.Directory) after the orderby. IOrderedEnumerable has Select.
 
I can it works
the code is like this
 
what is the output?
 
4:20 PM
   var lastVersion = new DirectoryInfo(Directoria).EnumerateFiles()
                        .Where(d => d.Name.ToLower().EndsWith(".sql"))
                        .Select(d => new { Directory = d, Token = d.Name.Split('_') })
                        .Where(x => x.Token.Length == 3 && Version.TryParse(x.Token[2], out version))
                        .Select(x => new { Directory = x.Directory, Date = x.Token[1], Version = version })
                        .OrderByDescending(x => x.Version)
                        .Select(x => x.Directory);
it just doesnt let me convert the lastVersion
 
what is the error when you run that?
 
Error CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<System.IO.FileInfo>' to 'System.Collections.Generic.List<string>'
thats the error
 
ah
got it
 
its because of what you said
 
Directory isn't a string
 
4:22 PM
its has a whole bunch of things
like date and version
 
try changing the last line to something like .Select(x => x.Directory.FullName);
 
wow
 
or .Select(x => x.Directory.Directory);
 
it worked
:D
 
whatever of those gets you what you want
could even change .Select(d => new { Directory = d, Token = d.Name.Split('_') }) to .Select(d => new { Directory = d.Directory, Token = d.Name.Split('_') }) if you want
forgot d would be FileInfo D:
because of EnumerateFiles
 
4:25 PM
 
alright, out for lunch
 
get youself an awesome lunch good Sir
 
4:43 PM
Does anyone have tips on customizing the [Authorize] Attribute for an MVC project?
I've searched this quite a bit, It seems like maybe I can override the OnAuthorization() method or SubClass the AuthorizeCore method?
Is this possible?
 
user47589
customize it how
 
user47589
why do you want to customize it
 
I've done it before, and iirc I overrided the AuthorizeCore method
 
@Amy Idk. All I really need to to create some sort of Authorization.
We have our own Users class and Roles classes stored in a db. The user is Authenticated by a separate AuthenticationUtility based on Request.ServerVariables.

So I think all I need to do is check that they are who they say they are (call the AuthenticatioUtility) and then go to the Db.. find that user, check its roles, and see if the role is allowed to get to the requested page/resource
So maybe I dont even need the [Authorize] attribute? maybe I should create my own entirely custom one?
 
user47589
set up Membership to work with your db. Authorize works with Membership or Identity automatically. all it does is check whether the user has a group or claim
 
user47589
4:50 PM
or make a custom Role provider
 
user47589
you don't need to customize authorize for this at all
 
user47589
it doesn't care where the users auth data comes from. it gets it from Membership or Identity
 
user47589
set up authentication first.
 
@Amy is membership seperate from identity? It doesnt seem like Identity is something we should use.
 
user47589
then set up your authorization
 
user47589
4:51 PM
yes they're different things
 
user47589
that's why i keep saying Membership or Identity
 
alrighty
 
5 min to go yey
c ya tomorrow
bye
 
@Amy the thing is, we dont really need to manage the users and their passwords or memembership it is all handled by our "AuthenticationUtility"
 
user47589
that doesn't matter. you just need a RoleProvider from Membership
 
user47589
4:58 PM
the default should work fine, if not, just make your own
 
user47589
5 year old asp.net membership tutorials will tell you everything you need to know
 
lol im trying to find one
 
user47589
this is an older asp.net tech
 
user47589
Identity was created to replace it
 
i see
 
user47589
5:00 PM
Membership doesn't handle web 2.0 that well. can't link accounts from various services
 
Identity is way better
create a new MVC project and identity is already set up for you
 
user47589
agree, but its overkill if all you need is auth
 
guys i have this
<ScrollViewer x:Name="ScrollBotoes" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" Height="400" Width="720" Margin="62,222,218,66">
        <WrapPanel x:Name="panelbotoes" HorizontalAlignment="Left" Height="400" VerticalAlignment="Top" Width="{Binding ElementName=ScrollBotoes, Path=ViewportWidth}"/>
    </ScrollViewer>
 
you can set the auth in the IdentityConfig though
 
how can i scroll it with buttons
 
5:01 PM
@AndréMarques did you even answer my question from earlier?
 
its like using entity framework to look at a ERD
but it works
 
@Squiggle didnt saw the question
 
srsly please stop asking the same question without responding to questions asked of you
 
@Squiggle what was it
 
I was asking why you needed to scroll like this
 
5:02 PM
@Squiggle its a project for my intership i need to do it like this
 
@Amy everything with membership I see seems to want me to create a separate database for the membership stuff
 
user47589
you don't have to do that, of course
 
user47589
it just wants a database is all
 
@AndréMarques that's a terrible excuse :)
 
user47589
you have a database already.
 
5:03 PM
@Squiggle dude its true
 
@AndréMarques the best approach would be to scroll to specific elements (like rows?) using msdn.microsoft.com/en-us/library/ms598110.aspx
anything else violates responsive design principles.
that's going to be the best answer you're going to get here. All other answers to your question have been given, and you've told us they don't work.
 
@Squiggle im not understanding anything i cant scroll the scroll view?
 
was that question?
 
@Amy I dont see anything that seems right for this.
 
5:23 PM
mmm membershipprovider
 
If I want to check if an object is visible, would this be the correct way to do it? if(cbBoxAmmo.Visibility == Visibility.Visible)
Never mind. Tested it and it works
 
@icecub sorta..
if(object.Visible)
{

}
 
@Michael Well if there's a better way to do it, I'd love to hear it
 
@icecub It just depends how you are trying to use it
whatever works for what you are trying to accomplish.
 
Trying to check the visibility of a ComboBox. It already tells me I can't use your method as ComboBox does not contain a defenition for Visible
 
user47589
5:39 PM
Visible is used in Winforms. WPF uses Visibility
 
Ye I'm using wpf
 
Wow I just realized that Object.Visible will be false if the object is not "shown" yet. even if the visible property is set to true;
wtf that seems odd
well.. idk sorta.
 
I have no idea. I'm still learning C# and developing all kinds of projects in the meantime. Even though most stuff is still way out of my league, I'm having lots of fun messing around with it
 
6:22 PM
Hey people. Does anyone know of a simple easy to implement property to enable something like shadow text or background text in a wpf textbox? (the textbox that says "username" in gray before you click on in to type in your username)
 
I would use a placeholder for that with an example name. Usually it is something like "Jane Doe, John Smith, etc...".
!!bing mdn placeholder
=/
@CapricaSix - If you can't bing, or google, what good are you?
 
but a placeholder first need to be cleared first :/
 
user47589
until she's powered back up she makes a great hat/coat rack
 
sup kids
 
@Amy - Blast! I forgot my hat and coat today :)
@Codeman - yo
@betarunex - What do you mean need to be cleared? If you start typing, then it goes away.
 
6:32 PM
@TravisJ is there such a property for a textbox named placeholder?
 
yes
well, wpf uses html elements right?
 
user47589
not really
 
user47589
the controls are similar but its not html
 
oh, hrm
stupid wpf
 
it uses xaml. xml based stuff.
 
user47589
6:34 PM
its really simple to do though
 
user47589
just google "wpf textbox placeholder"
 
@Codeman yo
 
@Amy I did. But I'm looking for a simple implementation. not an essay :/
 
user47589
lol, well
 
user47589
good luck in that case
 
6:40 PM
@betarunex I've never done WPF, but don't WPF controls have an onfocus and on blur event handler?
 
Yea they do. I wanted a simpler solution but meh, I'll just do the annoying onfocus stuff by hand every time I have to do something like this.
 
user47589
sometimes problems don't have simple solutions
 
@betarunex Why not inherit your control into a different class and give an onfocus property?
That way you could just use the new control whenever you need it.
 
So are we back to our normal schedule or not yet?
 
user47589
normal schedule?
 
6:47 PM
@Sidney Thanks. But i dont always work on the same computers. Might keep it on a flash or something. but it just seems like something i would've imagined wpf to include a simple implementation of like it does in html
 
2 days ago, by Codeman
Anyone who feels upset by this - come back on Monday when things cool down. You will thank yourself for it :)
 
It's been a while since I've messed with HTML, but I explicitely remember it's placeholder being implimented through a third party library someone else wrote.
@kush Tempers have simmered down, but there's still a slack room.
 
@Sidney ok thanks
 
It is just the room's reputation that has been tarnished. Mostly from the meta post.
Please, be careful posting on meta in the future. It is not a sounding board.
That post drew a lot of ire from otherwise impartial users.
 
@Sidney where is this slack room
 
user47589
6:52 PM
@Jakotheshadows send an email with the subject "slack" to coctothorpecastle@gmail.com
 
user47589
and you'll get an invite
 
that a bot email?
 
user47589
one of us made it, i'm not sure who
 
A few people have the password I believe.
 
user47589
a couple of us have access to it, so we can invite people in. as far as we know, we have to have an email to send an invite.
 
6:55 PM
@Amy I kept looking into the membership thing and I just dont get it or how I could get it to work with our app.

But I am able to do what I want by creating a customAuthorizeAttribute : AuthorizeAttribute and overriding the AuthorizeCore() / HandleUnauthorizedRequest methods.
The only issue is that AuthorizeAttribute has public named parameters (Roles, Users, Order) that I will never make use of.
 
@Amy that's correct.
We didn't want to have to force anyone to post an email address publicly if they didn't want to
 
user47589
yeah
 
When I googled "Hiding inherited properties" everyone says its bad and against OOP, which I get... but in this case it seems almost necessary
 
no reason to go overboard with the oop religion
if there's something your application needs then forget dogma
 
@TravisJ Yea I never post on meta
I never even go there
 
6:59 PM
@NicolásCarlo yeah, but usually when you are butting heads with OOP principles there is a good chance you are doing something wrong.
 
I have no idea if im doing something wrong
 
I think i have literally been to meta twice in the like 7 years I have been using this site
 
@NicolásCarlo I dunno, when I think like this I usually spend anywhere from 3 hours to three days trying to work it out, spend another three hours trying to come up with something that goes with the dogma, and usually pick the dogma-consistent approach.
 
maybe 5 years idk
 
7:00 PM
@Michael that's not entirely true, oop is popular now, it may not be in 5 years, that's how all software dogma goes
 
Now I am thinking back about all the things I may or may not have written in this room. I'll be in my trash can for now.
 
I don't like that place, mostly because I don't understand why people are so angry all the time
 
user47589
Kush = Oscar the Grouch = confirmed
 
@Failsafe - Well, meta is a sort of amplifier. It is the heart of community moderation policy. Basically, it is the political facet of Stack Overflow and many people are opinionated when it comes to that. So that is why you see a lot of heated back and forth.
 
@Sidney i used to totally go nuts over "is this OOP"? once i found out about data oriented design stuff got much easier and saner to write
 
7:01 PM
@TravisJ I feel like a lot of people there don't actually use SO
 
@Failsafe I don't know about others but right now I'm angry because this book doesn't have complete implementation of what I need. mods: no offense intended
 
@Failsafe - Because of the low reputation? Yeah sometimes I think that too. The flip side of that is the argument that those people are the ones who are handling flags and reviewing the content that no one wants to deal with. A common term used is "janitors".
 
Like the people who browse /r/all and sort by new on reddit
 
I am not familiar with reddit. It isn't very safe for work, and to be honest a very large amount of information there is inaccurate.
If they didn't have the AMA's then they wouldn't have made it so far.
 
making money is difficult and lets face it it applies here as well... the main reason we want to be inoffensive is so that advertisers don't shy away
 
7:07 PM
well you dont want your boss to see profanity and porn on your screen as they pass by too
 
^^ Depends on which boss. =P
 
@misha130 who is posting porn? Why does this example keep being brought up?
 
True dat.
 
cause i am doing an extreme example
plus its to be expected that things might escalate
 
But it's irrelevant. You don't want to have bears in your office either. But it's not happening.
 
7:12 PM
if there is 0 moderation(again extreme example)
dude, I dont care, I dont want to talk about it
hell I got suspended too today, I just dont care
 
thats hyperbole, no one's posting porn, no one's planning on posting porn, drop this already. no wonder the meta post went nowhere, this is the thing people jump on without actually addressing the situation
 
So is there anyway to hide or override named parameters? or properties
 
it happened on friday, still people are throwing stuff around that has got NOTHING to do with what actually happened. can we drop it already? its off topic
@Michael what do you mean by hide?
 
@Michael - Reflection can access anything.
 
@NicolásCarlo AuthorizeAttribute class has properties / named parameters

I am creating a customAuthorizeAttribute : AuthorizeAttribute
I dont make use of the Users, Roles, or Order properties that AuthorizeAttribute has.. so I dont want them to show up in my CustomAuthorizeAttribute
for some reason It doesnt let me ever override those properties
 
7:19 PM
although i realize you might have already read that
 
I did. lol i will read again
 
Yeah, It doesnt help because these properties arnt virtual.. so I cant override them
Oh well.. I guess
 
yeah i guess if you can't override them you can't override them
 
7:53 PM
Hi, anyone using C#.Net with mono on linux? I'm trying to EPPlus to open encrypted xlsx file but I got error with ole32.dll not found. It works when file is not encrypted with password. I'm using mono 3.8 with linux. Anyone can help and point me in right direction?
 
@piotrekkr I have, mono isn't perfect and doesn't have everything. It may be missing something you need. I do see a fork that supports mono though, maybe give it a looksee? epplusmono.codeplex.com
 
@CuddleBunny I didn't know there was mono fork. I'll try it. Thank you
Ehh this codeplex site, source code and documentation browser is somehow broken. It's a pain to use it.
 
anyone who uses telerik scheduler know how to display the description on the card in the scheduler rather than within the popup?
 
@NicolásCarlo kendoui or rad?
 
@CuddleBunny kendoui
 
8:09 PM
@NicolásCarlo can you just use templates/mvvm?
 
@CuddleBunny scheduler expects an vm that implements ISchedulerEvent, it has title and description set and it only displays the title on the card. we speaking about the same thing
?
 
@CuddleBunny TEMPLATES! thanks, it was right there all along
 
Maybe someone had similar problem with getting viewmodel from view. I am using asp-for for setting values in viewmodel, but when i send viewmodel to post method all my values are null. What can cause this behaviour?
 
8:16 PM
piping is screwed up? where be thy code?
 
for example I have JobPlace field in viewmodel and I`m using this line <input placeholder="Job Place" asp-for="JobPlace" /> for initialize it. Maybe this is the wrong way to do it?
 
Are you passing over a model to the razor view?
 
Is anyone partial to any html/js/css preprocessing tools? Looking to have a configuration where changing something and running a build (probably through gulp) would replace some tokens with a value.
could probably just do a string replace, but maybe there is something fancy?
 
@CuddleBunny - "preprocessing"? You mean like templating?
 
yeah, like templating
but changing a setting could trigger a few changes in multiple file types, like adding/removing an html element, setting some flags in js, or even styles in css
 
8:27 PM
What dev environment are you working in?
 
windows/VS code/gulp/npm/typescript/less
no server side component, except might have a node.js server for dev time debugging and unit tests
 
@CuddleBunny - hm, I am not sure :(
Use VS to regex your code base :P
after ensuring it was backed up of course
 
end goal would be tooling for a large internal framework
yeah, if I don't find anything I'll do something along those lines I'm sure
 
@juanvan I`m passing only a viewmodel, which is a part of model
 
would pipe it through to a bin folder or something so I don't lose any source
something like this might do it: npmjs.com/package/gulp-preprocess
 
8:36 PM
I have this in form load but I don't see a messagebox.. why?
i'll put the code here..
Button[] buttons = new Button[5];

for (int i = 0; i < 5; i++)
buttons[i].Click += delegate(object s, EventArgs args) { MessageBox.Show(i.ToString()); };

buttons[1].PerformClick();
Ah I see I needed for(int i=0; i<5; i++) buttons[i] = new Button(); too
 
@PaulJ does it display anything?
 
8:54 PM
when im debugging all the values of viewmodel is null and there arent any errors. The form displays perfectly, also I can send it to post method (breakpoint risen in that method)
 
Hello all
Someone can help a newbie a bit to deal with ASP.Net MVC?
can't figure out how to do what I want
 
@FoggyFinder, what are you trying to do?
 
I want to fill an array through a form, whose size is set by the user.
Now I have that:
public class SomeInput
    {
        public int Some { get; set; }
        public double[][] SomeArray { get; set; }
    }

    public class SomeOutput
    {
        public double[] SomeVector { get; set; }
    }
in IndexController:
    public ActionResult Index()
    {
        return View();
    }
    [HttpGet]
    public ViewResult Some()
    {
        return View(new SomeInput { Some = 0, SomeArray = null });
    }
    [HttpPost]
    public ViewResult Some(SomeInput some)
    {
        if (some == null) //some always is null
            return View("Some", some);
        else if (some.SomeArray == null)
            return View("SomeI", some);
        else
            return View("SomeO", DoSomething.doSomething(some));
    }
Some.cshtml:
    @using (Html.BeginForm())
    {
         <p>Some: @Html.TextBoxFor(x => x.Some) </p>
         <input type="submit" value="Click" />
    }
 
the modelbinder uses the name attribute to fill in the viewmodel accepted in the actionresult. as long as the name matches the properties of the model, the binding will work. all that is left is to create the proper names in the view on the input elements, and ensure they match to the model
using helpers will not work in a dynamic view and as a result you must use javascript
the html helpers are executed in the scope of c# code, and essentially return only a string that is used when first composing the page. once a page has loaded the helpers are no longer in scope and are no longer capable of being used
 
9:11 PM
hm
 
If you want to bind to an array, you have to use an <input> per array element
You'll need JavaScript to make this work with a dynamic array size
 
If you have a Select on the front end view, and you have an IEnumerable model. How would you bind that to the dropdown?
 
Lets say a user wants to input [[0 1 2][3 4 5][6 7 8]]. The input form will need to look like <input name="some[0][0]" value="0" /><input name="some[0][1]" value="1" /> etc
@Greg, Html.DropdownList
 
....
 
9:18 PM
I don't want to use Html.DropdownList I want to simply bind my data source to a native select. Because won't that Html.DropdownList do some weird shit.
 
@EthanReesor no, no - the error is earlier
 
If you use Html.DropdownList, you need to Select your query into a list of SelectListItems
Perhaps experiment with passing an IList instead of an IEnumerable
OH
 
Some SomeInput always null, regardless of what I input in @Html.TextBoxFor(x => x.Some)
 
Sorry, I was missing the picture. If you want to bind a <select> to an action's parameter, just set the <select>'s name attribute to the parameter name
@FoggyFinder, what does your POST request look like?
 
@EthanReesor But I'm rendering the View, not passing from View back to Controller.
 
9:22 PM
@EthanReesor how can I see it?
 
@Greg, is your issue with data flow server => client or client => server?
 
Server => Client
                var dropdowns = FraudService.GetDropdownData();
                var fraudReport = FraudService.GetFraudReports(user.Values.Get("BranchId"));

                var model = new FraudModelViewModel(dropdowns, fraudReport);
                return View(model);
 
In the browser, open the inspector and go to the Network tab. Submit the form. Select the first entry. There should be headers shown there.
 
public FraudDropdownModel(IList<FraudWeight> fraudWeight, IList<FraudType> fraudType, IList<FraudHeight> fraudHeight, IList<FraudEthnicity> fraudEthnicity, IList<FraudAge> fraudAge)
{
    this.fraudWeight = fraudWeight;
    this.fraudType = fraudType;
    this.fraudHeight = fraudHeight;
    this.fraudEthnicity = fraudEthnicity;
    this.fraudAge = fraudAge;
}
So dropdowns contains several objects that contain those List, now I want to bind them to a dropdown.
 
@Greg, So you want a total of 5 <select>s?
 
9:26 PM
Yeah, bind each of those list to a correlating select.
Yeah.
 
Basically you'll want to Select each list into an IEnumerable<SelectListItem>
 
Basically I want <asp:DropDownList DataSource="" datakey="" datavalue="">
 
I forgot to ask, are you using MVC? Because if not, then I don't know.
 
I'm using Model View Controller, I just posted a Web Form implementation of exactly what I want.
 
9:30 PM
For MVC, @Html.DropdownList("fraudWeight", Model.Select(x => new SelectListItem { Value = x.IdentifierString, Text = x.UserFriendlyText }) should work
Sorry, Model.dropdowns.fraudWeight.Select( ... )
 
@EthanReesor Thank you.
That was kind of what I was trying to decipher.
 
Happy to be of help
 
Doesn't populate, but... hm.
Typo, got it.
Thank you.
 
Can someone help be, I'm creating a custom control and everything is working fine, only the image source doesn't get applied in xaml:
 Source="{TemplateBinding ImageSource}"
in xaml^^ and in c#
 public string ImageSource
        {
            get { return (string)GetValue(ImageSourceProperty); }
            set { SetValue(ImageSourceProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ImageSource.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ImageSourceProperty =
            DependencyProperty.Register("ImageSource", typeof(string), typeof(ChallengePresentationGrid), new PropertyMetadata("/Assets/Push.png"));
 
9:51 PM
@MatthiasHerrmann Are you setting it, or just relying on the default?
and are you actually using it as a string? (since you have it defined as a string)?
because if your "source" property expects an ImageSource, you need to make the property an ImageSource (and the default)
otherwise, you'll get binding errors int he output window (check - they probably exist and say "can't bind string to imagesource")
 
@ReedCopsey Yes I was using string as the datatype, ty I'll change that, I guess that should be the error
 

« first day (2046 days earlier)      last day (2892 days later) »