Last active
January 30, 2023 08:50
-
-
Save Nia-TN1012/c7e3d2d2a6b525b372c0a89ac88c5cb4 to your computer and use it in GitHub Desktop.
Silverlight用のXAMLでカレンダーを出力するコードです。XAML以外は全てプロジェクト生成後のままです。やっていることはWPF用のXAMLと同じですが・・・
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 分離コードです。主役はXAMLです。 | |
using System.Windows.Controls; | |
namespace Silverlight { | |
public partial class MainPage : UserControl { | |
public MainPage() { InitializeComponent(); } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
名前 : Nia Tomonaka | |
Twitter : https://twitter.com/nia_tn1012 | |
--> | |
<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="Silverlight.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> | |
<sdk:Calendar /> | |
</UserControl> | |
<!-- | |
Calender.xaml | |
Copyright (c) 2014-2023 Nia T.N. Tech Lab. / Chronoir.net. | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GitHubのアカウント統合のため、Myoga1012→Nia-TN1012に移行しました。
旧URL: https://gist.github.com/Myoga1012/f0bc37c49a5587fbd09a