Hello.
I am using a XamScheduleView.
JournalPresenter is displayed above JournalPresenter.StartLocal is even one minute earlier than ActivityPresenter.StartLocal, but I think how to display below ActivityPresenter always JournalPresenter?
<ig:XamScheduleView.Resources> <Style TargetType="igP:ScheduleActivityPanel"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate> <StackPanel /> </ControlTemplate> </Setter.Value> </Setter> </Style> </ig:XamScheduleView.Resources>
I tried to set the style to try, but there is no change in behavior. I look at the code, but it would be useless if you do not change the implementation of ScheduleActivityPanel?
Hello,
After working on this and doing some research, "Fixed position of JournalPresenter" has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
Hello Stefan.
I appreciate your opinion.Provisional correspondence, It corresponded with displayed separately in each of Calendar Appointments and Journals.Divide the Calendar, Background is different, so it is a little troubled.Although I hope can unify the Background for each the Resource.--;
http://cdn-ak.f.st-hatena.com/images/fotolife/h/hilapon/20140828/20140828121449.png
Thanks.
Then, it is although many things were tried. i was disappointment to bind Metadata. (--;Then, it wrote as follow code-behind.
-------------------------------Private Class HeaderInfo Property Border As Border Property CalenderId As String Property IsParent As Boolean Property ResourceId As StringEnd Class
Private _HeaderInfos As New List(Of HeaderInfo)
Private Sub CalendarHeaderVertical_Loaded(sender As Object, e As RoutedEventArgs) Dim header = TryCast(sender, CalendarHeaderVertical) Me.AddHeaderInfo(header)End Sub
Private Sub AddHeaderInfo(header As CalendarHeaderVertical) If header.Calendar Is Nothing Then Return
Dim border = TryCast(Utilities.GetDescendantFromType(header, GetType(Border), True), Border) Dim info = New HeaderInfo() With { .Border = border, .CalenderId = header.Calendar.Id, .IsParent = Not header.Calendar.Id.Contains("J"), .ResourceId = header.Calendar.OwningResourceId }
If _HeaderInfos.Where(Function(i) i.CalenderId = info.CalenderId).Count = 0 Then HeaderInfos.Add(info) End If Me.SetCalendarHeaderBackground()End Sub
Private Sub SetCalendarHeaderBackground() For Each info In _HeaderInfos Dim parent = _HeaderInfos.Where(Function(i) i.ResourceId = info.ResourceId AndAlso i.IsParent) If parent.Count <> 0 Then info.Border.Background = parent.First().Border.Background End If Next End Sub-------------------------------
This is Result View.It became the expected results a little. :)
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thank you. It's very helpful to your sample.However, it is regrettable your sample, but all Resources will become the same Background. I am looking at now, "generic.shared.xaml". I hope to set for each resource the ComputedBackground・・・I will try so that they refer to the sample of the following thread, and allowed to bind to the template.
http://ko.infragistics.com/community/forums/p/48151/297124.aspx#297124
<Style TargetType="igSchedulePrim:CalendarHeaderVertical"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="igSchedulePrim:CalendarHeaderVertical"> <Border BorderBrush="{TemplateBinding ComputedBorderBrush}" BorderThickness="1" Background="{Binding Metadata[Background]}" Padding="{TemplateBinding Padding}" igPrim:XamlHelper.SnapsToDevicePixels="True"> ・・・・・・</Style>
I have created a sample project for you with the functionality you want. Basically I created a Style for the CalendarHeaderVErtical element and handle its Loaded event. In the handler I change the Background of a border inside its template. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.