1
Reply

Data binding

JOHN JOHNNNY

JOHN JOHNNNY

Oct 17 2014 6:31 AM
792
Good day
 
I have questions i need to ask
1. the xaml below shows text block and its content, what if i dont want the content to show in xaml but in code behind i.e xaml.cs how will i achieve this with data binding
.......................
<Grid>
<ScrollViewer>
<TextBlock TextWrapping="Wrap" FontSize="20" Height="2800">
<Run FontWeight="Bold">VESSEL OF HONOUR?</Run><LineBreak/><LineBreak/>
<Run FontWeight="Bold">Memorise:</Run> If a man therefore purge himself from these, he shall be a vessel unto honour, sanctified, and meet for the master's use, and prepared unto every good work. 2 Timothy 2:21<LineBreak/><LineBreak/>
<Run FontWeight="Bold">Read:</Run> 2 Timothy 2:20-21<LineBreak/>
20 But in a great house there are not only vessels of gold and of silver, but also of wood and of earth; and some to honour, and some to dishonour.<LineBreak/>
21 If a man therefore purge himself from these, he shall be a vessel unto honour, sanctified, and meet for the master's use, and prepared unto every good work.<LineBreak/><LineBreak/>
<Run FontWeight="Bold">Bible in one year:</Run> Ezekiel 35:1-37:14; Psalm 74:1-11<LineBreak/><LineBreak/>
<Run FontWeight="Bold">Message:</Run><LineBreak/>
Our God is a God of purpose and plan. He does not do anything just for the sake of doing it. When He wanted to create man in Genesis 1:26 He said:<LineBreak/><LineBreak/>
“...Let us make man in our image, after our likeness: and let them have dominion over the fish of the sea, and over the fowl of the air, and over the cattle, and over all the earth, and over every creeping thing that creepeth upon the earth.”<LineBreak/><LineBreak/>
Also, when God sent His only begotten Son to the world, it was for this purpose:<LineBreak/><LineBreak/>
”…for he shall save his people from their sins.”<LineBreak/>
Matthew 1:21c<LineBreak/><LineBreak/>
In the same vein, when God saved you and called you to Himself, it was for a purpose. You are not in Church just to add to the numbers. Every child of God must find out the purpose of God for his or her life within the community of believers. Also, every child of God must ensure that he or she is qualified to perform such duties as required of honourable vessels. While some vessels are shameful and ignoble, there are others that are glorious and majestic. The striking thing about this truth is that it is inevitable to have both honourable and shameful vessels in the Church! The task before every sincere child of God is to ensure that he or she is a vessel of honour. <LineBreak/><LineBreak/>
How can one be a vessel of honour? The memory verse for today answers this question. Every child of God must purge himself or herself of anything sinful. Jesus Christ gave the standard we must attain to be vessels of honour when he said in Matthew 5:48:<LineBreak/><LineBreak/>
“Be ye therefore perfect, even as your Father which is in heaven is perfect.”<LineBreak/><LineBreak/>
How can we practically attain this? Part of the process required is found in 2 Corinthians 6:14-18, which says that we should not touch the unclean thing but rather, we should separate ourselves from the world of darkness. A vessel of honour according to the Psalmist does not walk in the counsel of the ungodly, nor stand in the way of sinners, nor sit in the seat of the scornful (Psalm 1:1). Beloved, if you want to be used of God for good works, be ready to pay the price of a true disciple and live holy. The Lord will not only use you, He will also reward you handsomely according to Mark 10:28-30. Our Lord Jesus Christ promised a hundredfold return of everything we consider good that we have left for the sake of serving Him, alongside with eternal life.<LineBreak/><LineBreak/>
<Run FontWeight="Bold">Action Point:</Run>Examine your life to know what you need to purge from it, and pray that God will make you a vessel of honour in His vineyard.
</TextBlock>
</ScrollViewer>
</Grid> 
......................
2. How to dynamically do this in c# alone and rendered/appear in xaml
3.  can you recommend a step by step tutorials on data binding
 
Regards

Upload Source Code  Select only zip and rar file.
Answers (1)