CriticalCid Posted August 9, 2016 Author Share Posted August 9, 2016 I’m currently building my first theme and wondered if there’s a way to show the details of a platform like release date, developer, etc. and the notes separately? I know you can do it with the games views but I can't figure out how to do it with the platforms. Quote Link to comment Share on other sites More sharing options...
CriticalCid Posted August 12, 2016 Author Share Posted August 12, 2016 I figured out that the View calls the “FilterDeatilsView.xml” with the "Content="{Binding DetailsView}" command and uses it to show the platform details. I tried to edit it but it seems that I can’t show the details and notes separately because “Binding Path=Notes” doesn’t seem to work... Also I wondered if it would be possible to call my own .xaml files within another .xaml file through the “Content=Binding” command? As of now it seems that I just can use the already existing ones because nothing happens when I try to call a custom one. Maybe @Jason Carr could help? Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted August 12, 2016 Share Posted August 12, 2016 Hi Cid, I'll be doing a tutorial on data bindings soon. Unfortunately it's not as easy just replacing the name of the binding, as there has to be a property in the model (the code) that matches up to the binding. It sounds like we may need some new properties in the code itself in order to get you what you need (until we add proper plugin support, at least). I think all you'll really need though is a property for the Notes as well as the Details, which is really easy to add. I've put that on my short list. I also need to figure out how you'd be able to call your own .xaml files, as I don't think the binding method will work. That's gonna take some further research I think. 2 Quote Link to comment Share on other sites More sharing options...
CriticalCid Posted August 12, 2016 Author Share Posted August 12, 2016 Thanks Jason! Then I will be waiting for the tutorial on data bindings 1 Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted August 12, 2016 Share Posted August 12, 2016 Hi Cid, I just added two new properties to the filters view models: Notes and Details. So you should be able to add text blocks like this: <TextBlock Text="{Binding Path=Notes}" /> <TextBlock Text="{Binding Path=Details}" /> This will be out in a beta later today. Let me know if it's not working after the beta is out. 2 Quote Link to comment Share on other sites More sharing options...
CriticalCid Posted August 13, 2016 Author Share Posted August 13, 2016 Thanks Jason! The new properties are working great. Quote Link to comment Share on other sites More sharing options...
nosh Posted September 1, 2016 Share Posted September 1, 2016 On 8/12/2016 at 0:24 PM, Jason Carr said: Hi Cid, I just added two new properties to the filters view models: Notes and Details. So you should be able to add text blocks like this: <TextBlock Text="{Binding Path=Notes}" /> <TextBlock Text="{Binding Path=Details}" /> This will be out in a beta later today. Let me know if it's not working after the beta is out. Using these two textblocks works, but it forces you to turn off display notes in platform details. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted September 1, 2016 Share Posted September 1, 2016 Ah, sure. I think you should be able to modify the FilterDetailsView to hide Notes there. Does that work? Quote Link to comment Share on other sites More sharing options...
nosh Posted September 1, 2016 Share Posted September 1, 2016 1 minute ago, Jason Carr said: Ah, sure. I think you should be able to modify the FilterDetailsView to hide Notes there. Does that work? Not sure i am following, the OOB view just has one textblock bound to Details <TextBlock Name="Details" Text="{Binding Path=Details}" Width="{Binding ElementName=DockPanel, Path=ActualWidth}" FontFamily="Calibri" Foreground="White" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{Binding DetailsVisibility}" />. That returns both the details such as manufacture, plus the notes. If I want the detail fields and the notes in separate textblocks, you have add a new textblock and bind it to "Notes", but if you leave it that way, the notes actually display in both the new textblock and the existing textblock bound to "Details" so in order for it not to duplicate you have to go to settings and turn off display notes under platform details, this will hide the notes in the one bound to "Details". Hope that makes sense. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted September 2, 2016 Share Posted September 2, 2016 Ah, I see. I'm sorry, I was confusing the FilterDetailsView with the GameDetailsView. I get it now; so hmm, I guess the best solution would be to not use the FilterDetailsView at all and manually add whatever data you want using the new data binding features. Would that work? Quote Link to comment Share on other sites More sharing options...
nosh Posted September 3, 2016 Share Posted September 3, 2016 Yes I am actually using some of those selectedplatform properties you exposed, the only issue with that at the moment is I can't apply a transition to them or to anything else custom for that matter, unless it is in one of the shared views such as filterdetailsview. I definitely have a wish list going. [emoji4]Sent from my SAMSUNG-SM-N930A using Tapatalk 1 Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted September 3, 2016 Share Posted September 3, 2016 Ah, sure. That is possible but I need to better document it because it is a bit complicated. Will try and get to this next week. 2 Quote Link to comment Share on other sites More sharing options...
nosh Posted September 4, 2016 Share Posted September 4, 2016 That's great, should help a lot. I am going to get as far as I can with the views that I am working on and put together a list of requests. Fyi I am a c# guy but on the other end of the spectrum, web forms and mvc, I dont have a lot of experience with wpf but it's not much of a learning curve. So you are welcome to get technical with me.Sent from my SAMSUNG-SM-N930A using Tapatalk 1 Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted September 5, 2016 Share Posted September 5, 2016 Awesome, thanks @nosh. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.