Skip to content

Instantly share code, notes, and snippets.

@Myoga1012
Last active January 30, 2023 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Myoga1012/f0bc37c49a5587fbd09a to your computer and use it in GitHub Desktop.
Save Myoga1012/f0bc37c49a5587fbd09a to your computer and use it in GitHub Desktop.
Silverlight用のXAMLでカレンダーを出力するコードです。XAML以外は全てプロジェクト生成後のままです。やっていることはWPF用のXAMLと同じですが・・・
// 分離コードです。主役はXAMLだよ。
using System.Windows.Controls;
namespace Silverlight {
public partial class MainPage : UserControl {
public MainPage() { InitializeComponent(); }
}
}
<!--
名前 : Myoga Screw-bright (旧名:Myoga S. Tomonaka)
Twitter : https://twitter.com/Myoga1012
-->
<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 Myoga-TN.net All Rights Reserved.
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